1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
8 variable wildcard pattern and check `.code()`:
9 \
10 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
11 \
12 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
13 Unhandled(crate::error::sealed_unhandled::Unhandled),
14}
15impl ::std::fmt::Display for Error {
16 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
17 match self {
18 Error::Unhandled(_) => {
19 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
20 write!(f, "unhandled error ({code})")
21 } else {
22 f.write_str("unhandled error")
23 }
24 }
25 }
26 }
27}
28impl From<::aws_smithy_types::error::operation::BuildError> for Error {
29 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
30 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
31 source: value.into(),
32 meta: ::std::default::Default::default(),
33 })
34 }
35}
36impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
37 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
38 match self {
39 Self::Unhandled(inner) => &inner.meta,
40 }
41 }
42}
43impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_address_transfer::AcceptAddressTransferError, R>> for Error
44where
45 R: Send + Sync + std::fmt::Debug + 'static,
46{
47 fn from(
48 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_address_transfer::AcceptAddressTransferError, R>,
49 ) -> Self {
50 match err {
51 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
52 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
53 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
54 source: err.into(),
55 }),
56 }
57 }
58}
59impl From<crate::operation::accept_address_transfer::AcceptAddressTransferError> for Error {
60 fn from(err: crate::operation::accept_address_transfer::AcceptAddressTransferError) -> Self {
61 match err {
62 crate::operation::accept_address_transfer::AcceptAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
63 }
64 }
65}
66impl<R>
67 From<
68 ::aws_smithy_runtime_api::client::result::SdkError<
69 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError,
70 R,
71 >,
72 > for Error
73where
74 R: Send + Sync + std::fmt::Debug + 'static,
75{
76 fn from(
77 err: ::aws_smithy_runtime_api::client::result::SdkError<
78 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError,
79 R,
80 >,
81 ) -> Self {
82 match err {
83 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
84 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
85 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
86 source: err.into(),
87 }),
88 }
89 }
90}
91impl From<crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError> for Error {
92 fn from(err: crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError) -> Self {
93 match err {
94 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError::Unhandled(inner) => {
95 Error::Unhandled(inner)
96 }
97 }
98 }
99}
100impl<R>
101 From<
102 ::aws_smithy_runtime_api::client::result::SdkError<
103 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError,
104 R,
105 >,
106 > for Error
107where
108 R: Send + Sync + std::fmt::Debug + 'static,
109{
110 fn from(
111 err: ::aws_smithy_runtime_api::client::result::SdkError<
112 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError,
113 R,
114 >,
115 ) -> Self {
116 match err {
117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
120 source: err.into(),
121 }),
122 }
123 }
124}
125impl From<crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError> for Error {
126 fn from(err: crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError) -> Self {
127 match err {
128 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError::Unhandled(inner) => {
129 Error::Unhandled(inner)
130 }
131 }
132 }
133}
134impl<R>
135 From<
136 ::aws_smithy_runtime_api::client::result::SdkError<
137 crate::operation::accept_transit_gateway_client_vpn_attachment::AcceptTransitGatewayClientVpnAttachmentError,
138 R,
139 >,
140 > for Error
141where
142 R: Send + Sync + std::fmt::Debug + 'static,
143{
144 fn from(
145 err: ::aws_smithy_runtime_api::client::result::SdkError<
146 crate::operation::accept_transit_gateway_client_vpn_attachment::AcceptTransitGatewayClientVpnAttachmentError,
147 R,
148 >,
149 ) -> Self {
150 match err {
151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
154 source: err.into(),
155 }),
156 }
157 }
158}
159impl From<crate::operation::accept_transit_gateway_client_vpn_attachment::AcceptTransitGatewayClientVpnAttachmentError> for Error {
160 fn from(err: crate::operation::accept_transit_gateway_client_vpn_attachment::AcceptTransitGatewayClientVpnAttachmentError) -> Self {
161 match err {
162 crate::operation::accept_transit_gateway_client_vpn_attachment::AcceptTransitGatewayClientVpnAttachmentError::Unhandled(inner) => {
163 Error::Unhandled(inner)
164 }
165 }
166 }
167}
168impl<R>
169 From<
170 ::aws_smithy_runtime_api::client::result::SdkError<
171 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
172 R,
173 >,
174 > for Error
175where
176 R: Send + Sync + std::fmt::Debug + 'static,
177{
178 fn from(
179 err: ::aws_smithy_runtime_api::client::result::SdkError<
180 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
181 R,
182 >,
183 ) -> Self {
184 match err {
185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188 source: err.into(),
189 }),
190 }
191 }
192}
193impl From<crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError> for Error {
194 fn from(
195 err: crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
196 ) -> Self {
197 match err {
198 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
199 }
200 }
201}
202impl<R>
203 From<
204 ::aws_smithy_runtime_api::client::result::SdkError<
205 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
206 R,
207 >,
208 > for Error
209where
210 R: Send + Sync + std::fmt::Debug + 'static,
211{
212 fn from(
213 err: ::aws_smithy_runtime_api::client::result::SdkError<
214 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
215 R,
216 >,
217 ) -> Self {
218 match err {
219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
222 source: err.into(),
223 }),
224 }
225 }
226}
227impl From<crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError> for Error {
228 fn from(err: crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError) -> Self {
229 match err {
230 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
231 Error::Unhandled(inner)
232 }
233 }
234 }
235}
236impl<R>
237 From<
238 ::aws_smithy_runtime_api::client::result::SdkError<
239 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
240 R,
241 >,
242 > for Error
243where
244 R: Send + Sync + std::fmt::Debug + 'static,
245{
246 fn from(
247 err: ::aws_smithy_runtime_api::client::result::SdkError<
248 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
249 R,
250 >,
251 ) -> Self {
252 match err {
253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
256 source: err.into(),
257 }),
258 }
259 }
260}
261impl From<crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError> for Error {
262 fn from(err: crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError) -> Self {
263 match err {
264 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError::Unhandled(inner) => {
265 Error::Unhandled(inner)
266 }
267 }
268 }
269}
270impl<R>
271 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError, R>>
272 for Error
273where
274 R: Send + Sync + std::fmt::Debug + 'static,
275{
276 fn from(
277 err: ::aws_smithy_runtime_api::client::result::SdkError<
278 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError,
279 R,
280 >,
281 ) -> Self {
282 match err {
283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
286 source: err.into(),
287 }),
288 }
289 }
290}
291impl From<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError> for Error {
292 fn from(err: crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError) -> Self {
293 match err {
294 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
295 }
296 }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>>
299 for Error
300where
301 R: Send + Sync + std::fmt::Debug + 'static,
302{
303 fn from(
304 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>,
305 ) -> Self {
306 match err {
307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
310 source: err.into(),
311 }),
312 }
313 }
314}
315impl From<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError> for Error {
316 fn from(err: crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError) -> Self {
317 match err {
318 crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
319 }
320 }
321}
322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>> for Error
323where
324 R: Send + Sync + std::fmt::Debug + 'static,
325{
326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>) -> Self {
327 match err {
328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
331 source: err.into(),
332 }),
333 }
334 }
335}
336impl From<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError> for Error {
337 fn from(err: crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError) -> Self {
338 match err {
339 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
340 }
341 }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>> for Error
344where
345 R: Send + Sync + std::fmt::Debug + 'static,
346{
347 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>) -> Self {
348 match err {
349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352 source: err.into(),
353 }),
354 }
355 }
356}
357impl From<crate::operation::allocate_address::AllocateAddressError> for Error {
358 fn from(err: crate::operation::allocate_address::AllocateAddressError) -> Self {
359 match err {
360 crate::operation::allocate_address::AllocateAddressError::Unhandled(inner) => Error::Unhandled(inner),
361 }
362 }
363}
364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>> for Error
365where
366 R: Send + Sync + std::fmt::Debug + 'static,
367{
368 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>) -> Self {
369 match err {
370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373 source: err.into(),
374 }),
375 }
376 }
377}
378impl From<crate::operation::allocate_hosts::AllocateHostsError> for Error {
379 fn from(err: crate::operation::allocate_hosts::AllocateHostsError) -> Self {
380 match err {
381 crate::operation::allocate_hosts::AllocateHostsError::Unhandled(inner) => Error::Unhandled(inner),
382 }
383 }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>> for Error
386where
387 R: Send + Sync + std::fmt::Debug + 'static,
388{
389 fn from(
390 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>,
391 ) -> Self {
392 match err {
393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
396 source: err.into(),
397 }),
398 }
399 }
400}
401impl From<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError> for Error {
402 fn from(err: crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError) -> Self {
403 match err {
404 crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
405 }
406 }
407}
408impl<R>
409 From<
410 ::aws_smithy_runtime_api::client::result::SdkError<
411 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
412 R,
413 >,
414 > for Error
415where
416 R: Send + Sync + std::fmt::Debug + 'static,
417{
418 fn from(
419 err: ::aws_smithy_runtime_api::client::result::SdkError<
420 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
421 R,
422 >,
423 ) -> Self {
424 match err {
425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
428 source: err.into(),
429 }),
430 }
431 }
432}
433impl From<crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError> for Error {
434 fn from(err: crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError) -> Self {
435 match err {
436 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError::Unhandled(
437 inner,
438 ) => Error::Unhandled(inner),
439 }
440 }
441}
442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>> for Error
443where
444 R: Send + Sync + std::fmt::Debug + 'static,
445{
446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>) -> Self {
447 match err {
448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
451 source: err.into(),
452 }),
453 }
454 }
455}
456impl From<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError> for Error {
457 fn from(err: crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError) -> Self {
458 match err {
459 crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
460 }
461 }
462}
463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>>
464 for Error
465where
466 R: Send + Sync + std::fmt::Debug + 'static,
467{
468 fn from(
469 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>,
470 ) -> Self {
471 match err {
472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
475 source: err.into(),
476 }),
477 }
478 }
479}
480impl From<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError> for Error {
481 fn from(err: crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError) -> Self {
482 match err {
483 crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
484 }
485 }
486}
487impl<R>
488 From<
489 ::aws_smithy_runtime_api::client::result::SdkError<
490 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
491 R,
492 >,
493 > for Error
494where
495 R: Send + Sync + std::fmt::Debug + 'static,
496{
497 fn from(
498 err: ::aws_smithy_runtime_api::client::result::SdkError<
499 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
500 R,
501 >,
502 ) -> Self {
503 match err {
504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
507 source: err.into(),
508 }),
509 }
510 }
511}
512impl From<crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError> for Error {
513 fn from(err: crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError) -> Self {
514 match err {
515 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
516 }
517 }
518}
519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>> for Error
520where
521 R: Send + Sync + std::fmt::Debug + 'static,
522{
523 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>) -> Self {
524 match err {
525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528 source: err.into(),
529 }),
530 }
531 }
532}
533impl From<crate::operation::associate_address::AssociateAddressError> for Error {
534 fn from(err: crate::operation::associate_address::AssociateAddressError) -> Self {
535 match err {
536 crate::operation::associate_address::AssociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
537 }
538 }
539}
540impl<R>
541 From<
542 ::aws_smithy_runtime_api::client::result::SdkError<
543 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
544 R,
545 >,
546 > for Error
547where
548 R: Send + Sync + std::fmt::Debug + 'static,
549{
550 fn from(
551 err: ::aws_smithy_runtime_api::client::result::SdkError<
552 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
553 R,
554 >,
555 ) -> Self {
556 match err {
557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
560 source: err.into(),
561 }),
562 }
563 }
564}
565impl From<crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError> for Error {
566 fn from(err: crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError) -> Self {
567 match err {
568 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
569 Error::Unhandled(inner)
570 }
571 }
572 }
573}
574impl<R>
575 From<
576 ::aws_smithy_runtime_api::client::result::SdkError<
577 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
578 R,
579 >,
580 > for Error
581where
582 R: Send + Sync + std::fmt::Debug + 'static,
583{
584 fn from(
585 err: ::aws_smithy_runtime_api::client::result::SdkError<
586 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
587 R,
588 >,
589 ) -> Self {
590 match err {
591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
594 source: err.into(),
595 }),
596 }
597 }
598}
599impl From<crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError> for Error {
600 fn from(err: crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError) -> Self {
601 match err {
602 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError::Unhandled(inner) => Error::Unhandled(inner),
603 }
604 }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError, 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::associate_dhcp_options::AssociateDhcpOptionsError, 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::associate_dhcp_options::AssociateDhcpOptionsError> for Error {
621 fn from(err: crate::operation::associate_dhcp_options::AssociateDhcpOptionsError) -> Self {
622 match err {
623 crate::operation::associate_dhcp_options::AssociateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
624 }
625 }
626}
627impl<R>
628 From<
629 ::aws_smithy_runtime_api::client::result::SdkError<
630 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
631 R,
632 >,
633 > for Error
634where
635 R: Send + Sync + std::fmt::Debug + 'static,
636{
637 fn from(
638 err: ::aws_smithy_runtime_api::client::result::SdkError<
639 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
640 R,
641 >,
642 ) -> Self {
643 match err {
644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
647 source: err.into(),
648 }),
649 }
650 }
651}
652impl From<crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError> for Error {
653 fn from(err: crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError) -> Self {
654 match err {
655 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
656 Error::Unhandled(inner)
657 }
658 }
659 }
660}
661impl<R>
662 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError, R>>
663 for Error
664where
665 R: Send + Sync + std::fmt::Debug + 'static,
666{
667 fn from(
668 err: ::aws_smithy_runtime_api::client::result::SdkError<
669 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError,
670 R,
671 >,
672 ) -> Self {
673 match err {
674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677 source: err.into(),
678 }),
679 }
680 }
681}
682impl From<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError> for Error {
683 fn from(err: crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError) -> Self {
684 match err {
685 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
686 }
687 }
688}
689impl<R>
690 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError, R>>
691 for Error
692where
693 R: Send + Sync + std::fmt::Debug + 'static,
694{
695 fn from(
696 err: ::aws_smithy_runtime_api::client::result::SdkError<
697 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError,
698 R,
699 >,
700 ) -> Self {
701 match err {
702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
705 source: err.into(),
706 }),
707 }
708 }
709}
710impl From<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError> for Error {
711 fn from(err: crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError) -> Self {
712 match err {
713 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
714 }
715 }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>> for Error
718where
719 R: Send + Sync + std::fmt::Debug + 'static,
720{
721 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>) -> Self {
722 match err {
723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726 source: err.into(),
727 }),
728 }
729 }
730}
731impl From<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError> for Error {
732 fn from(err: crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError) -> Self {
733 match err {
734 crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
735 }
736 }
737}
738impl<R>
739 From<
740 ::aws_smithy_runtime_api::client::result::SdkError<
741 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
742 R,
743 >,
744 > for Error
745where
746 R: Send + Sync + std::fmt::Debug + 'static,
747{
748 fn from(
749 err: ::aws_smithy_runtime_api::client::result::SdkError<
750 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
751 R,
752 >,
753 ) -> Self {
754 match err {
755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
758 source: err.into(),
759 }),
760 }
761 }
762}
763impl From<crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError> for Error {
764 fn from(err: crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError) -> Self {
765 match err {
766 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
767 }
768 }
769}
770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>>
771 for Error
772where
773 R: Send + Sync + std::fmt::Debug + 'static,
774{
775 fn from(
776 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>,
777 ) -> Self {
778 match err {
779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782 source: err.into(),
783 }),
784 }
785 }
786}
787impl From<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError> for Error {
788 fn from(err: crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError) -> Self {
789 match err {
790 crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
791 }
792 }
793}
794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>> for Error
795where
796 R: Send + Sync + std::fmt::Debug + 'static,
797{
798 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>) -> Self {
799 match err {
800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
803 source: err.into(),
804 }),
805 }
806 }
807}
808impl From<crate::operation::associate_route_server::AssociateRouteServerError> for Error {
809 fn from(err: crate::operation::associate_route_server::AssociateRouteServerError) -> Self {
810 match err {
811 crate::operation::associate_route_server::AssociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
812 }
813 }
814}
815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>> for Error
816where
817 R: Send + Sync + std::fmt::Debug + 'static,
818{
819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>) -> Self {
820 match err {
821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
824 source: err.into(),
825 }),
826 }
827 }
828}
829impl From<crate::operation::associate_route_table::AssociateRouteTableError> for Error {
830 fn from(err: crate::operation::associate_route_table::AssociateRouteTableError) -> Self {
831 match err {
832 crate::operation::associate_route_table::AssociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
833 }
834 }
835}
836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>>
837 for Error
838where
839 R: Send + Sync + std::fmt::Debug + 'static,
840{
841 fn from(
842 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>,
843 ) -> Self {
844 match err {
845 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
846 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
847 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
848 source: err.into(),
849 }),
850 }
851 }
852}
853impl From<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError> for Error {
854 fn from(err: crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError) -> Self {
855 match err {
856 crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
857 }
858 }
859}
860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>>
861 for Error
862where
863 R: Send + Sync + std::fmt::Debug + 'static,
864{
865 fn from(
866 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>,
867 ) -> Self {
868 match err {
869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872 source: err.into(),
873 }),
874 }
875 }
876}
877impl From<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError> for Error {
878 fn from(err: crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError) -> Self {
879 match err {
880 crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
881 }
882 }
883}
884impl<R>
885 From<
886 ::aws_smithy_runtime_api::client::result::SdkError<
887 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
888 R,
889 >,
890 > for Error
891where
892 R: Send + Sync + std::fmt::Debug + 'static,
893{
894 fn from(
895 err: ::aws_smithy_runtime_api::client::result::SdkError<
896 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
897 R,
898 >,
899 ) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError> for Error {
910 fn from(err: crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError) -> Self {
911 match err {
912 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
913 Error::Unhandled(inner)
914 }
915 }
916 }
917}
918impl<R>
919 From<
920 ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError,
922 R,
923 >,
924 > for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<
930 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError,
931 R,
932 >,
933 ) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError> for Error {
944 fn from(err: crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError) -> Self {
945 match err {
946 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError::Unhandled(inner) => {
947 Error::Unhandled(inner)
948 }
949 }
950 }
951}
952impl<R>
953 From<
954 ::aws_smithy_runtime_api::client::result::SdkError<
955 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError,
956 R,
957 >,
958 > for Error
959where
960 R: Send + Sync + std::fmt::Debug + 'static,
961{
962 fn from(
963 err: ::aws_smithy_runtime_api::client::result::SdkError<
964 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError,
965 R,
966 >,
967 ) -> Self {
968 match err {
969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
972 source: err.into(),
973 }),
974 }
975 }
976}
977impl From<crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError> for Error {
978 fn from(err: crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError) -> Self {
979 match err {
980 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError::Unhandled(inner) => {
981 Error::Unhandled(inner)
982 }
983 }
984 }
985}
986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>>
987 for Error
988where
989 R: Send + Sync + std::fmt::Debug + 'static,
990{
991 fn from(
992 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>,
993 ) -> Self {
994 match err {
995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
998 source: err.into(),
999 }),
1000 }
1001 }
1002}
1003impl From<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError> for Error {
1004 fn from(err: crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError) -> Self {
1005 match err {
1006 crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
1007 }
1008 }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>> for Error
1011where
1012 R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014 fn from(
1015 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>,
1016 ) -> Self {
1017 match err {
1018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1021 source: err.into(),
1022 }),
1023 }
1024 }
1025}
1026impl From<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError> for Error {
1027 fn from(err: crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError) -> Self {
1028 match err {
1029 crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
1030 }
1031 }
1032}
1033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>> for Error
1034where
1035 R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037 fn from(
1038 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>,
1039 ) -> Self {
1040 match err {
1041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1044 source: err.into(),
1045 }),
1046 }
1047 }
1048}
1049impl From<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError> for Error {
1050 fn from(err: crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError) -> Self {
1051 match err {
1052 crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
1053 }
1054 }
1055}
1056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>> for Error
1057where
1058 R: Send + Sync + std::fmt::Debug + 'static,
1059{
1060 fn from(
1061 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>,
1062 ) -> Self {
1063 match err {
1064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1067 source: err.into(),
1068 }),
1069 }
1070 }
1071}
1072impl From<crate::operation::attach_internet_gateway::AttachInternetGatewayError> for Error {
1073 fn from(err: crate::operation::attach_internet_gateway::AttachInternetGatewayError) -> Self {
1074 match err {
1075 crate::operation::attach_internet_gateway::AttachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1076 }
1077 }
1078}
1079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>> for Error
1080where
1081 R: Send + Sync + std::fmt::Debug + 'static,
1082{
1083 fn from(
1084 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>,
1085 ) -> Self {
1086 match err {
1087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1090 source: err.into(),
1091 }),
1092 }
1093 }
1094}
1095impl From<crate::operation::attach_network_interface::AttachNetworkInterfaceError> for Error {
1096 fn from(err: crate::operation::attach_network_interface::AttachNetworkInterfaceError) -> Self {
1097 match err {
1098 crate::operation::attach_network_interface::AttachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
1099 }
1100 }
1101}
1102impl<R>
1103 From<
1104 ::aws_smithy_runtime_api::client::result::SdkError<
1105 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1106 R,
1107 >,
1108 > for Error
1109where
1110 R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112 fn from(
1113 err: ::aws_smithy_runtime_api::client::result::SdkError<
1114 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1115 R,
1116 >,
1117 ) -> Self {
1118 match err {
1119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1122 source: err.into(),
1123 }),
1124 }
1125 }
1126}
1127impl From<crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError> for Error {
1128 fn from(err: crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError) -> Self {
1129 match err {
1130 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError::Unhandled(inner) => {
1131 Error::Unhandled(inner)
1132 }
1133 }
1134 }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>> for Error
1137where
1138 R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>) -> Self {
1141 match err {
1142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1145 source: err.into(),
1146 }),
1147 }
1148 }
1149}
1150impl From<crate::operation::attach_volume::AttachVolumeError> for Error {
1151 fn from(err: crate::operation::attach_volume::AttachVolumeError) -> Self {
1152 match err {
1153 crate::operation::attach_volume::AttachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
1154 }
1155 }
1156}
1157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>> for Error
1158where
1159 R: Send + Sync + std::fmt::Debug + 'static,
1160{
1161 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>) -> Self {
1162 match err {
1163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1166 source: err.into(),
1167 }),
1168 }
1169 }
1170}
1171impl From<crate::operation::attach_vpn_gateway::AttachVpnGatewayError> for Error {
1172 fn from(err: crate::operation::attach_vpn_gateway::AttachVpnGatewayError) -> Self {
1173 match err {
1174 crate::operation::attach_vpn_gateway::AttachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1175 }
1176 }
1177}
1178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>>
1179 for Error
1180where
1181 R: Send + Sync + std::fmt::Debug + 'static,
1182{
1183 fn from(
1184 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>,
1185 ) -> Self {
1186 match err {
1187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1190 source: err.into(),
1191 }),
1192 }
1193 }
1194}
1195impl From<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError> for Error {
1196 fn from(err: crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError) -> Self {
1197 match err {
1198 crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
1199 }
1200 }
1201}
1202impl<R>
1203 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError, R>>
1204 for Error
1205where
1206 R: Send + Sync + std::fmt::Debug + 'static,
1207{
1208 fn from(
1209 err: ::aws_smithy_runtime_api::client::result::SdkError<
1210 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError,
1211 R,
1212 >,
1213 ) -> Self {
1214 match err {
1215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1218 source: err.into(),
1219 }),
1220 }
1221 }
1222}
1223impl From<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError> for Error {
1224 fn from(err: crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError) -> Self {
1225 match err {
1226 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
1227 }
1228 }
1229}
1230impl<R>
1231 From<
1232 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError, R>,
1233 > for Error
1234where
1235 R: Send + Sync + std::fmt::Debug + 'static,
1236{
1237 fn from(
1238 err: ::aws_smithy_runtime_api::client::result::SdkError<
1239 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError,
1240 R,
1241 >,
1242 ) -> Self {
1243 match err {
1244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1247 source: err.into(),
1248 }),
1249 }
1250 }
1251}
1252impl From<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError> for Error {
1253 fn from(err: crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError) -> Self {
1254 match err {
1255 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
1256 }
1257 }
1258}
1259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>> for Error
1260where
1261 R: Send + Sync + std::fmt::Debug + 'static,
1262{
1263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>) -> Self {
1264 match err {
1265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1268 source: err.into(),
1269 }),
1270 }
1271 }
1272}
1273impl From<crate::operation::bundle_instance::BundleInstanceError> for Error {
1274 fn from(err: crate::operation::bundle_instance::BundleInstanceError) -> Self {
1275 match err {
1276 crate::operation::bundle_instance::BundleInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1277 }
1278 }
1279}
1280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>> for Error
1281where
1282 R: Send + Sync + std::fmt::Debug + 'static,
1283{
1284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>) -> Self {
1285 match err {
1286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1289 source: err.into(),
1290 }),
1291 }
1292 }
1293}
1294impl From<crate::operation::cancel_bundle_task::CancelBundleTaskError> for Error {
1295 fn from(err: crate::operation::cancel_bundle_task::CancelBundleTaskError) -> Self {
1296 match err {
1297 crate::operation::cancel_bundle_task::CancelBundleTaskError::Unhandled(inner) => Error::Unhandled(inner),
1298 }
1299 }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>>
1302 for Error
1303where
1304 R: Send + Sync + std::fmt::Debug + 'static,
1305{
1306 fn from(
1307 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>,
1308 ) -> Self {
1309 match err {
1310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1313 source: err.into(),
1314 }),
1315 }
1316 }
1317}
1318impl From<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError> for Error {
1319 fn from(err: crate::operation::cancel_capacity_reservation::CancelCapacityReservationError) -> Self {
1320 match err {
1321 crate::operation::cancel_capacity_reservation::CancelCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1322 }
1323 }
1324}
1325impl<R>
1326 From<
1327 ::aws_smithy_runtime_api::client::result::SdkError<
1328 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1329 R,
1330 >,
1331 > for Error
1332where
1333 R: Send + Sync + std::fmt::Debug + 'static,
1334{
1335 fn from(
1336 err: ::aws_smithy_runtime_api::client::result::SdkError<
1337 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1338 R,
1339 >,
1340 ) -> Self {
1341 match err {
1342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1345 source: err.into(),
1346 }),
1347 }
1348 }
1349}
1350impl From<crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError> for Error {
1351 fn from(err: crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError) -> Self {
1352 match err {
1353 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1354 }
1355 }
1356}
1357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>> for Error
1358where
1359 R: Send + Sync + std::fmt::Debug + 'static,
1360{
1361 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>) -> Self {
1362 match err {
1363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1366 source: err.into(),
1367 }),
1368 }
1369 }
1370}
1371impl From<crate::operation::cancel_conversion_task::CancelConversionTaskError> for Error {
1372 fn from(err: crate::operation::cancel_conversion_task::CancelConversionTaskError) -> Self {
1373 match err {
1374 crate::operation::cancel_conversion_task::CancelConversionTaskError::Unhandled(inner) => Error::Unhandled(inner),
1375 }
1376 }
1377}
1378impl<R>
1379 From<
1380 ::aws_smithy_runtime_api::client::result::SdkError<
1381 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1382 R,
1383 >,
1384 > for Error
1385where
1386 R: Send + Sync + std::fmt::Debug + 'static,
1387{
1388 fn from(
1389 err: ::aws_smithy_runtime_api::client::result::SdkError<
1390 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1391 R,
1392 >,
1393 ) -> Self {
1394 match err {
1395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1398 source: err.into(),
1399 }),
1400 }
1401 }
1402}
1403impl From<crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError> for Error {
1404 fn from(err: crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError) -> Self {
1405 match err {
1406 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
1407 }
1408 }
1409}
1410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>> for Error
1411where
1412 R: Send + Sync + std::fmt::Debug + 'static,
1413{
1414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>) -> Self {
1415 match err {
1416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1419 source: err.into(),
1420 }),
1421 }
1422 }
1423}
1424impl From<crate::operation::cancel_export_task::CancelExportTaskError> for Error {
1425 fn from(err: crate::operation::cancel_export_task::CancelExportTaskError) -> Self {
1426 match err {
1427 crate::operation::cancel_export_task::CancelExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1428 }
1429 }
1430}
1431impl<R>
1432 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError, R>>
1433 for Error
1434where
1435 R: Send + Sync + std::fmt::Debug + 'static,
1436{
1437 fn from(
1438 err: ::aws_smithy_runtime_api::client::result::SdkError<
1439 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError,
1440 R,
1441 >,
1442 ) -> Self {
1443 match err {
1444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1447 source: err.into(),
1448 }),
1449 }
1450 }
1451}
1452impl From<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError> for Error {
1453 fn from(err: crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError) -> Self {
1454 match err {
1455 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError::Unhandled(inner) => Error::Unhandled(inner),
1456 }
1457 }
1458}
1459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>> for Error
1460where
1461 R: Send + Sync + std::fmt::Debug + 'static,
1462{
1463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>) -> Self {
1464 match err {
1465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1468 source: err.into(),
1469 }),
1470 }
1471 }
1472}
1473impl From<crate::operation::cancel_import_task::CancelImportTaskError> for Error {
1474 fn from(err: crate::operation::cancel_import_task::CancelImportTaskError) -> Self {
1475 match err {
1476 crate::operation::cancel_import_task::CancelImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1477 }
1478 }
1479}
1480impl<R>
1481 From<
1482 ::aws_smithy_runtime_api::client::result::SdkError<
1483 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1484 R,
1485 >,
1486 > for Error
1487where
1488 R: Send + Sync + std::fmt::Debug + 'static,
1489{
1490 fn from(
1491 err: ::aws_smithy_runtime_api::client::result::SdkError<
1492 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1493 R,
1494 >,
1495 ) -> Self {
1496 match err {
1497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1500 source: err.into(),
1501 }),
1502 }
1503 }
1504}
1505impl From<crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError> for Error {
1506 fn from(err: crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError) -> Self {
1507 match err {
1508 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
1509 }
1510 }
1511}
1512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>>
1513 for Error
1514where
1515 R: Send + Sync + std::fmt::Debug + 'static,
1516{
1517 fn from(
1518 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>,
1519 ) -> Self {
1520 match err {
1521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1524 source: err.into(),
1525 }),
1526 }
1527 }
1528}
1529impl From<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError> for Error {
1530 fn from(err: crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError) -> Self {
1531 match err {
1532 crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1533 }
1534 }
1535}
1536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>>
1537 for Error
1538where
1539 R: Send + Sync + std::fmt::Debug + 'static,
1540{
1541 fn from(
1542 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>,
1543 ) -> Self {
1544 match err {
1545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1548 source: err.into(),
1549 }),
1550 }
1551 }
1552}
1553impl From<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError> for Error {
1554 fn from(err: crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError) -> Self {
1555 match err {
1556 crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1557 }
1558 }
1559}
1560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>> for Error
1561where
1562 R: Send + Sync + std::fmt::Debug + 'static,
1563{
1564 fn from(
1565 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>,
1566 ) -> Self {
1567 match err {
1568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1571 source: err.into(),
1572 }),
1573 }
1574 }
1575}
1576impl From<crate::operation::confirm_product_instance::ConfirmProductInstanceError> for Error {
1577 fn from(err: crate::operation::confirm_product_instance::ConfirmProductInstanceError) -> Self {
1578 match err {
1579 crate::operation::confirm_product_instance::ConfirmProductInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1580 }
1581 }
1582}
1583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>> for Error
1584where
1585 R: Send + Sync + std::fmt::Debug + 'static,
1586{
1587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>) -> Self {
1588 match err {
1589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592 source: err.into(),
1593 }),
1594 }
1595 }
1596}
1597impl From<crate::operation::copy_fpga_image::CopyFpgaImageError> for Error {
1598 fn from(err: crate::operation::copy_fpga_image::CopyFpgaImageError) -> Self {
1599 match err {
1600 crate::operation::copy_fpga_image::CopyFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
1601 }
1602 }
1603}
1604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>> for Error
1605where
1606 R: Send + Sync + std::fmt::Debug + 'static,
1607{
1608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>) -> Self {
1609 match err {
1610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1613 source: err.into(),
1614 }),
1615 }
1616 }
1617}
1618impl From<crate::operation::copy_image::CopyImageError> for Error {
1619 fn from(err: crate::operation::copy_image::CopyImageError) -> Self {
1620 match err {
1621 crate::operation::copy_image::CopyImageError::Unhandled(inner) => Error::Unhandled(inner),
1622 }
1623 }
1624}
1625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>> for Error
1626where
1627 R: Send + Sync + std::fmt::Debug + 'static,
1628{
1629 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>) -> Self {
1630 match err {
1631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1634 source: err.into(),
1635 }),
1636 }
1637 }
1638}
1639impl From<crate::operation::copy_snapshot::CopySnapshotError> for Error {
1640 fn from(err: crate::operation::copy_snapshot::CopySnapshotError) -> Self {
1641 match err {
1642 crate::operation::copy_snapshot::CopySnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1643 }
1644 }
1645}
1646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>> for Error
1647where
1648 R: Send + Sync + std::fmt::Debug + 'static,
1649{
1650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>) -> Self {
1651 match err {
1652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1655 source: err.into(),
1656 }),
1657 }
1658 }
1659}
1660impl From<crate::operation::copy_volumes::CopyVolumesError> for Error {
1661 fn from(err: crate::operation::copy_volumes::CopyVolumesError) -> Self {
1662 match err {
1663 crate::operation::copy_volumes::CopyVolumesError::Unhandled(inner) => Error::Unhandled(inner),
1664 }
1665 }
1666}
1667impl<R>
1668 From<
1669 ::aws_smithy_runtime_api::client::result::SdkError<
1670 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1671 R,
1672 >,
1673 > for Error
1674where
1675 R: Send + Sync + std::fmt::Debug + 'static,
1676{
1677 fn from(
1678 err: ::aws_smithy_runtime_api::client::result::SdkError<
1679 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1680 R,
1681 >,
1682 ) -> Self {
1683 match err {
1684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1687 source: err.into(),
1688 }),
1689 }
1690 }
1691}
1692impl From<crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError> for Error {
1693 fn from(err: crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError) -> Self {
1694 match err {
1695 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
1696 }
1697 }
1698}
1699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>>
1700 for Error
1701where
1702 R: Send + Sync + std::fmt::Debug + 'static,
1703{
1704 fn from(
1705 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>,
1706 ) -> Self {
1707 match err {
1708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1711 source: err.into(),
1712 }),
1713 }
1714 }
1715}
1716impl From<crate::operation::create_capacity_reservation::CreateCapacityReservationError> for Error {
1717 fn from(err: crate::operation::create_capacity_reservation::CreateCapacityReservationError) -> Self {
1718 match err {
1719 crate::operation::create_capacity_reservation::CreateCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1720 }
1721 }
1722}
1723impl<R>
1724 From<
1725 ::aws_smithy_runtime_api::client::result::SdkError<
1726 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1727 R,
1728 >,
1729 > for Error
1730where
1731 R: Send + Sync + std::fmt::Debug + 'static,
1732{
1733 fn from(
1734 err: ::aws_smithy_runtime_api::client::result::SdkError<
1735 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1736 R,
1737 >,
1738 ) -> Self {
1739 match err {
1740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743 source: err.into(),
1744 }),
1745 }
1746 }
1747}
1748impl From<crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError> for Error {
1749 fn from(err: crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError) -> Self {
1750 match err {
1751 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError::Unhandled(inner) => {
1752 Error::Unhandled(inner)
1753 }
1754 }
1755 }
1756}
1757impl<R>
1758 From<
1759 ::aws_smithy_runtime_api::client::result::SdkError<
1760 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError,
1761 R,
1762 >,
1763 > for Error
1764where
1765 R: Send + Sync + std::fmt::Debug + 'static,
1766{
1767 fn from(
1768 err: ::aws_smithy_runtime_api::client::result::SdkError<
1769 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError,
1770 R,
1771 >,
1772 ) -> Self {
1773 match err {
1774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1777 source: err.into(),
1778 }),
1779 }
1780 }
1781}
1782impl From<crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError> for Error {
1783 fn from(err: crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError) -> Self {
1784 match err {
1785 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
1786 }
1787 }
1788}
1789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>> for Error
1790where
1791 R: Send + Sync + std::fmt::Debug + 'static,
1792{
1793 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>) -> Self {
1794 match err {
1795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1798 source: err.into(),
1799 }),
1800 }
1801 }
1802}
1803impl From<crate::operation::create_carrier_gateway::CreateCarrierGatewayError> for Error {
1804 fn from(err: crate::operation::create_carrier_gateway::CreateCarrierGatewayError) -> Self {
1805 match err {
1806 crate::operation::create_carrier_gateway::CreateCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1807 }
1808 }
1809}
1810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>>
1811 for Error
1812where
1813 R: Send + Sync + std::fmt::Debug + 'static,
1814{
1815 fn from(
1816 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>,
1817 ) -> Self {
1818 match err {
1819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1822 source: err.into(),
1823 }),
1824 }
1825 }
1826}
1827impl From<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError> for Error {
1828 fn from(err: crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError) -> Self {
1829 match err {
1830 crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1831 }
1832 }
1833}
1834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>> for Error
1835where
1836 R: Send + Sync + std::fmt::Debug + 'static,
1837{
1838 fn from(
1839 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>,
1840 ) -> Self {
1841 match err {
1842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1845 source: err.into(),
1846 }),
1847 }
1848 }
1849}
1850impl From<crate::operation::create_client_vpn_route::CreateClientVpnRouteError> for Error {
1851 fn from(err: crate::operation::create_client_vpn_route::CreateClientVpnRouteError) -> Self {
1852 match err {
1853 crate::operation::create_client_vpn_route::CreateClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
1854 }
1855 }
1856}
1857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>> for Error
1858where
1859 R: Send + Sync + std::fmt::Debug + 'static,
1860{
1861 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>) -> Self {
1862 match err {
1863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1866 source: err.into(),
1867 }),
1868 }
1869 }
1870}
1871impl From<crate::operation::create_coip_cidr::CreateCoipCidrError> for Error {
1872 fn from(err: crate::operation::create_coip_cidr::CreateCoipCidrError) -> Self {
1873 match err {
1874 crate::operation::create_coip_cidr::CreateCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
1875 }
1876 }
1877}
1878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>> for Error
1879where
1880 R: Send + Sync + std::fmt::Debug + 'static,
1881{
1882 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>) -> Self {
1883 match err {
1884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1887 source: err.into(),
1888 }),
1889 }
1890 }
1891}
1892impl From<crate::operation::create_coip_pool::CreateCoipPoolError> for Error {
1893 fn from(err: crate::operation::create_coip_pool::CreateCoipPoolError) -> Self {
1894 match err {
1895 crate::operation::create_coip_pool::CreateCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
1896 }
1897 }
1898}
1899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>> for Error
1900where
1901 R: Send + Sync + std::fmt::Debug + 'static,
1902{
1903 fn from(
1904 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>,
1905 ) -> Self {
1906 match err {
1907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1910 source: err.into(),
1911 }),
1912 }
1913 }
1914}
1915impl From<crate::operation::create_customer_gateway::CreateCustomerGatewayError> for Error {
1916 fn from(err: crate::operation::create_customer_gateway::CreateCustomerGatewayError) -> Self {
1917 match err {
1918 crate::operation::create_customer_gateway::CreateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1919 }
1920 }
1921}
1922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>> for Error
1923where
1924 R: Send + Sync + std::fmt::Debug + 'static,
1925{
1926 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>) -> Self {
1927 match err {
1928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1931 source: err.into(),
1932 }),
1933 }
1934 }
1935}
1936impl From<crate::operation::create_default_subnet::CreateDefaultSubnetError> for Error {
1937 fn from(err: crate::operation::create_default_subnet::CreateDefaultSubnetError) -> Self {
1938 match err {
1939 crate::operation::create_default_subnet::CreateDefaultSubnetError::Unhandled(inner) => Error::Unhandled(inner),
1940 }
1941 }
1942}
1943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>> for Error
1944where
1945 R: Send + Sync + std::fmt::Debug + 'static,
1946{
1947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>) -> Self {
1948 match err {
1949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1952 source: err.into(),
1953 }),
1954 }
1955 }
1956}
1957impl From<crate::operation::create_default_vpc::CreateDefaultVpcError> for Error {
1958 fn from(err: crate::operation::create_default_vpc::CreateDefaultVpcError) -> Self {
1959 match err {
1960 crate::operation::create_default_vpc::CreateDefaultVpcError::Unhandled(inner) => Error::Unhandled(inner),
1961 }
1962 }
1963}
1964impl<R>
1965 From<
1966 ::aws_smithy_runtime_api::client::result::SdkError<
1967 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1968 R,
1969 >,
1970 > for Error
1971where
1972 R: Send + Sync + std::fmt::Debug + 'static,
1973{
1974 fn from(
1975 err: ::aws_smithy_runtime_api::client::result::SdkError<
1976 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1977 R,
1978 >,
1979 ) -> Self {
1980 match err {
1981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1984 source: err.into(),
1985 }),
1986 }
1987 }
1988}
1989impl From<crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError> for Error {
1990 fn from(err: crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError) -> Self {
1991 match err {
1992 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError::Unhandled(inner) => {
1993 Error::Unhandled(inner)
1994 }
1995 }
1996 }
1997}
1998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>> for Error
1999where
2000 R: Send + Sync + std::fmt::Debug + 'static,
2001{
2002 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>) -> Self {
2003 match err {
2004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2007 source: err.into(),
2008 }),
2009 }
2010 }
2011}
2012impl From<crate::operation::create_dhcp_options::CreateDhcpOptionsError> for Error {
2013 fn from(err: crate::operation::create_dhcp_options::CreateDhcpOptionsError) -> Self {
2014 match err {
2015 crate::operation::create_dhcp_options::CreateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
2016 }
2017 }
2018}
2019impl<R>
2020 From<
2021 ::aws_smithy_runtime_api::client::result::SdkError<
2022 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
2023 R,
2024 >,
2025 > for Error
2026where
2027 R: Send + Sync + std::fmt::Debug + 'static,
2028{
2029 fn from(
2030 err: ::aws_smithy_runtime_api::client::result::SdkError<
2031 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
2032 R,
2033 >,
2034 ) -> Self {
2035 match err {
2036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2039 source: err.into(),
2040 }),
2041 }
2042 }
2043}
2044impl From<crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError> for Error {
2045 fn from(err: crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError) -> Self {
2046 match err {
2047 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2048 }
2049 }
2050}
2051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
2052where
2053 R: Send + Sync + std::fmt::Debug + 'static,
2054{
2055 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
2056 match err {
2057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2060 source: err.into(),
2061 }),
2062 }
2063 }
2064}
2065impl From<crate::operation::create_fleet::CreateFleetError> for Error {
2066 fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
2067 match err {
2068 crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2069 }
2070 }
2071}
2072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>> for Error
2073where
2074 R: Send + Sync + std::fmt::Debug + 'static,
2075{
2076 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>) -> Self {
2077 match err {
2078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2081 source: err.into(),
2082 }),
2083 }
2084 }
2085}
2086impl From<crate::operation::create_flow_logs::CreateFlowLogsError> for Error {
2087 fn from(err: crate::operation::create_flow_logs::CreateFlowLogsError) -> Self {
2088 match err {
2089 crate::operation::create_flow_logs::CreateFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
2090 }
2091 }
2092}
2093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>> for Error
2094where
2095 R: Send + Sync + std::fmt::Debug + 'static,
2096{
2097 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>) -> Self {
2098 match err {
2099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2102 source: err.into(),
2103 }),
2104 }
2105 }
2106}
2107impl From<crate::operation::create_fpga_image::CreateFpgaImageError> for Error {
2108 fn from(err: crate::operation::create_fpga_image::CreateFpgaImageError) -> Self {
2109 match err {
2110 crate::operation::create_fpga_image::CreateFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
2111 }
2112 }
2113}
2114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
2115where
2116 R: Send + Sync + std::fmt::Debug + 'static,
2117{
2118 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
2119 match err {
2120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2123 source: err.into(),
2124 }),
2125 }
2126 }
2127}
2128impl From<crate::operation::create_image::CreateImageError> for Error {
2129 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
2130 match err {
2131 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
2132 }
2133 }
2134}
2135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>>
2136 for Error
2137where
2138 R: Send + Sync + std::fmt::Debug + 'static,
2139{
2140 fn from(
2141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>,
2142 ) -> Self {
2143 match err {
2144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2147 source: err.into(),
2148 }),
2149 }
2150 }
2151}
2152impl From<crate::operation::create_image_usage_report::CreateImageUsageReportError> for Error {
2153 fn from(err: crate::operation::create_image_usage_report::CreateImageUsageReportError) -> Self {
2154 match err {
2155 crate::operation::create_image_usage_report::CreateImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
2156 }
2157 }
2158}
2159impl<R>
2160 From<
2161 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError, R>,
2162 > for Error
2163where
2164 R: Send + Sync + std::fmt::Debug + 'static,
2165{
2166 fn from(
2167 err: ::aws_smithy_runtime_api::client::result::SdkError<
2168 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError,
2169 R,
2170 >,
2171 ) -> Self {
2172 match err {
2173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2176 source: err.into(),
2177 }),
2178 }
2179 }
2180}
2181impl From<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError> for Error {
2182 fn from(err: crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError) -> Self {
2183 match err {
2184 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2185 }
2186 }
2187}
2188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>>
2189 for Error
2190where
2191 R: Send + Sync + std::fmt::Debug + 'static,
2192{
2193 fn from(
2194 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>,
2195 ) -> Self {
2196 match err {
2197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2200 source: err.into(),
2201 }),
2202 }
2203 }
2204}
2205impl From<crate::operation::create_instance_event_window::CreateInstanceEventWindowError> for Error {
2206 fn from(err: crate::operation::create_instance_event_window::CreateInstanceEventWindowError) -> Self {
2207 match err {
2208 crate::operation::create_instance_event_window::CreateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
2209 }
2210 }
2211}
2212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>>
2213 for Error
2214where
2215 R: Send + Sync + std::fmt::Debug + 'static,
2216{
2217 fn from(
2218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>,
2219 ) -> Self {
2220 match err {
2221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2224 source: err.into(),
2225 }),
2226 }
2227 }
2228}
2229impl From<crate::operation::create_instance_export_task::CreateInstanceExportTaskError> for Error {
2230 fn from(err: crate::operation::create_instance_export_task::CreateInstanceExportTaskError) -> Self {
2231 match err {
2232 crate::operation::create_instance_export_task::CreateInstanceExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
2233 }
2234 }
2235}
2236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>> for Error
2237where
2238 R: Send + Sync + std::fmt::Debug + 'static,
2239{
2240 fn from(
2241 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>,
2242 ) -> Self {
2243 match err {
2244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2247 source: err.into(),
2248 }),
2249 }
2250 }
2251}
2252impl From<crate::operation::create_internet_gateway::CreateInternetGatewayError> for Error {
2253 fn from(err: crate::operation::create_internet_gateway::CreateInternetGatewayError) -> Self {
2254 match err {
2255 crate::operation::create_internet_gateway::CreateInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2256 }
2257 }
2258}
2259impl<R>
2260 From<
2261 ::aws_smithy_runtime_api::client::result::SdkError<
2262 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2263 R,
2264 >,
2265 > for Error
2266where
2267 R: Send + Sync + std::fmt::Debug + 'static,
2268{
2269 fn from(
2270 err: ::aws_smithy_runtime_api::client::result::SdkError<
2271 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2272 R,
2273 >,
2274 ) -> Self {
2275 match err {
2276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2279 source: err.into(),
2280 }),
2281 }
2282 }
2283}
2284impl From<crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError> for Error {
2285 fn from(
2286 err: crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2287 ) -> Self {
2288 match err {
2289 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError::Unhandled(inner) => Error::Unhandled(inner),
2290 }
2291 }
2292}
2293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>> for Error
2294where
2295 R: Send + Sync + std::fmt::Debug + 'static,
2296{
2297 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>) -> Self {
2298 match err {
2299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2302 source: err.into(),
2303 }),
2304 }
2305 }
2306}
2307impl From<crate::operation::create_ipam::CreateIpamError> for Error {
2308 fn from(err: crate::operation::create_ipam::CreateIpamError) -> Self {
2309 match err {
2310 crate::operation::create_ipam::CreateIpamError::Unhandled(inner) => Error::Unhandled(inner),
2311 }
2312 }
2313}
2314impl<R>
2315 From<
2316 ::aws_smithy_runtime_api::client::result::SdkError<
2317 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2318 R,
2319 >,
2320 > for Error
2321where
2322 R: Send + Sync + std::fmt::Debug + 'static,
2323{
2324 fn from(
2325 err: ::aws_smithy_runtime_api::client::result::SdkError<
2326 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2327 R,
2328 >,
2329 ) -> Self {
2330 match err {
2331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2334 source: err.into(),
2335 }),
2336 }
2337 }
2338}
2339impl From<crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError> for Error {
2340 fn from(err: crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError) -> Self {
2341 match err {
2342 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError::Unhandled(
2343 inner,
2344 ) => Error::Unhandled(inner),
2345 }
2346 }
2347}
2348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_policy::CreateIpamPolicyError, R>> for Error
2349where
2350 R: Send + Sync + std::fmt::Debug + 'static,
2351{
2352 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_policy::CreateIpamPolicyError, R>) -> Self {
2353 match err {
2354 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2355 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2356 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2357 source: err.into(),
2358 }),
2359 }
2360 }
2361}
2362impl From<crate::operation::create_ipam_policy::CreateIpamPolicyError> for Error {
2363 fn from(err: crate::operation::create_ipam_policy::CreateIpamPolicyError) -> Self {
2364 match err {
2365 crate::operation::create_ipam_policy::CreateIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2366 }
2367 }
2368}
2369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>> for Error
2370where
2371 R: Send + Sync + std::fmt::Debug + 'static,
2372{
2373 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>) -> Self {
2374 match err {
2375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2378 source: err.into(),
2379 }),
2380 }
2381 }
2382}
2383impl From<crate::operation::create_ipam_pool::CreateIpamPoolError> for Error {
2384 fn from(err: crate::operation::create_ipam_pool::CreateIpamPoolError) -> Self {
2385 match err {
2386 crate::operation::create_ipam_pool::CreateIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
2387 }
2388 }
2389}
2390impl<R>
2391 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError, R>>
2392 for Error
2393where
2394 R: Send + Sync + std::fmt::Debug + 'static,
2395{
2396 fn from(
2397 err: ::aws_smithy_runtime_api::client::result::SdkError<
2398 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError,
2399 R,
2400 >,
2401 ) -> Self {
2402 match err {
2403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2406 source: err.into(),
2407 }),
2408 }
2409 }
2410}
2411impl From<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError> for Error {
2412 fn from(err: crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError) -> Self {
2413 match err {
2414 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
2415 }
2416 }
2417}
2418impl<R>
2419 From<
2420 ::aws_smithy_runtime_api::client::result::SdkError<
2421 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2422 R,
2423 >,
2424 > for Error
2425where
2426 R: Send + Sync + std::fmt::Debug + 'static,
2427{
2428 fn from(
2429 err: ::aws_smithy_runtime_api::client::result::SdkError<
2430 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2431 R,
2432 >,
2433 ) -> Self {
2434 match err {
2435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2438 source: err.into(),
2439 }),
2440 }
2441 }
2442}
2443impl From<crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError> for Error {
2444 fn from(err: crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError) -> Self {
2445 match err {
2446 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError::Unhandled(inner) => {
2447 Error::Unhandled(inner)
2448 }
2449 }
2450 }
2451}
2452impl<R>
2453 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError, R>>
2454 for Error
2455where
2456 R: Send + Sync + std::fmt::Debug + 'static,
2457{
2458 fn from(
2459 err: ::aws_smithy_runtime_api::client::result::SdkError<
2460 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError,
2461 R,
2462 >,
2463 ) -> Self {
2464 match err {
2465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2468 source: err.into(),
2469 }),
2470 }
2471 }
2472}
2473impl From<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError> for Error {
2474 fn from(err: crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError) -> Self {
2475 match err {
2476 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2477 }
2478 }
2479}
2480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>> for Error
2481where
2482 R: Send + Sync + std::fmt::Debug + 'static,
2483{
2484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>) -> Self {
2485 match err {
2486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2489 source: err.into(),
2490 }),
2491 }
2492 }
2493}
2494impl From<crate::operation::create_ipam_scope::CreateIpamScopeError> for Error {
2495 fn from(err: crate::operation::create_ipam_scope::CreateIpamScopeError) -> Self {
2496 match err {
2497 crate::operation::create_ipam_scope::CreateIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
2498 }
2499 }
2500}
2501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>> for Error
2502where
2503 R: Send + Sync + std::fmt::Debug + 'static,
2504{
2505 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>) -> Self {
2506 match err {
2507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2510 source: err.into(),
2511 }),
2512 }
2513 }
2514}
2515impl From<crate::operation::create_key_pair::CreateKeyPairError> for Error {
2516 fn from(err: crate::operation::create_key_pair::CreateKeyPairError) -> Self {
2517 match err {
2518 crate::operation::create_key_pair::CreateKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
2519 }
2520 }
2521}
2522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>> for Error
2523where
2524 R: Send + Sync + std::fmt::Debug + 'static,
2525{
2526 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>) -> Self {
2527 match err {
2528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2531 source: err.into(),
2532 }),
2533 }
2534 }
2535}
2536impl From<crate::operation::create_launch_template::CreateLaunchTemplateError> for Error {
2537 fn from(err: crate::operation::create_launch_template::CreateLaunchTemplateError) -> Self {
2538 match err {
2539 crate::operation::create_launch_template::CreateLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2540 }
2541 }
2542}
2543impl<R>
2544 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError, R>>
2545 for Error
2546where
2547 R: Send + Sync + std::fmt::Debug + 'static,
2548{
2549 fn from(
2550 err: ::aws_smithy_runtime_api::client::result::SdkError<
2551 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
2552 R,
2553 >,
2554 ) -> Self {
2555 match err {
2556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2559 source: err.into(),
2560 }),
2561 }
2562 }
2563}
2564impl From<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError> for Error {
2565 fn from(err: crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError) -> Self {
2566 match err {
2567 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2568 }
2569 }
2570}
2571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>>
2572 for Error
2573where
2574 R: Send + Sync + std::fmt::Debug + 'static,
2575{
2576 fn from(
2577 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>,
2578 ) -> Self {
2579 match err {
2580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2583 source: err.into(),
2584 }),
2585 }
2586 }
2587}
2588impl From<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError> for Error {
2589 fn from(err: crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError) -> Self {
2590 match err {
2591 crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
2592 }
2593 }
2594}
2595impl<R>
2596 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError, R>>
2597 for Error
2598where
2599 R: Send + Sync + std::fmt::Debug + 'static,
2600{
2601 fn from(
2602 err: ::aws_smithy_runtime_api::client::result::SdkError<
2603 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError,
2604 R,
2605 >,
2606 ) -> Self {
2607 match err {
2608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2611 source: err.into(),
2612 }),
2613 }
2614 }
2615}
2616impl From<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError> for Error {
2617 fn from(err: crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError) -> Self {
2618 match err {
2619 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
2620 }
2621 }
2622}
2623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
2624 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
2625 match err {
2626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2627 _ => Error::Unhandled(
2628 crate::error::sealed_unhandled::Unhandled {
2629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2630 source: err.into(),
2631 }
2632 ),
2633 }
2634 }
2635}
2636impl From<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
2637 fn from(err: crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
2638 match err {
2639 crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2640 }
2641 }
2642}
2643impl<R>
2644 From<
2645 ::aws_smithy_runtime_api::client::result::SdkError<
2646 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2647 R,
2648 >,
2649 > for Error
2650where
2651 R: Send + Sync + std::fmt::Debug + 'static,
2652{
2653 fn from(
2654 err: ::aws_smithy_runtime_api::client::result::SdkError<
2655 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2656 R,
2657 >,
2658 ) -> Self {
2659 match err {
2660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2663 source: err.into(),
2664 }),
2665 }
2666 }
2667}
2668impl From<crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError> for Error {
2669 fn from(err: crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError) -> Self {
2670 match err {
2671 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
2672 Error::Unhandled(inner)
2673 }
2674 }
2675 }
2676}
2677impl<R>
2678 From<
2679 ::aws_smithy_runtime_api::client::result::SdkError<
2680 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2681 R,
2682 >,
2683 > for Error
2684where
2685 R: Send + Sync + std::fmt::Debug + 'static,
2686{
2687 fn from(
2688 err: ::aws_smithy_runtime_api::client::result::SdkError<
2689 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2690 R,
2691 >,
2692 ) -> Self {
2693 match err {
2694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2697 source: err.into(),
2698 }),
2699 }
2700 }
2701}
2702impl From<crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError> for Error {
2703 fn from(err: crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError) -> Self {
2704 match err {
2705 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
2706 Error::Unhandled(inner)
2707 }
2708 }
2709 }
2710}
2711impl<R>
2712 From<
2713 ::aws_smithy_runtime_api::client::result::SdkError<
2714 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2715 R,
2716 >,
2717 > for Error
2718where
2719 R: Send + Sync + std::fmt::Debug + 'static,
2720{
2721 fn from(
2722 err: ::aws_smithy_runtime_api::client::result::SdkError<
2723 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2724 R,
2725 >,
2726 ) -> Self {
2727 match err {
2728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2731 source: err.into(),
2732 }),
2733 }
2734 }
2735}
2736impl From<crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError> for Error {
2737 fn from(err: crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError) -> Self {
2738 match err {
2739 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
2740 Error::Unhandled(inner)
2741 }
2742 }
2743 }
2744}
2745impl<R>
2746 From<
2747 ::aws_smithy_runtime_api::client::result::SdkError<
2748 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2749 R,
2750 >,
2751 > for Error
2752where
2753 R: Send + Sync + std::fmt::Debug + 'static,
2754{
2755 fn from(
2756 err: ::aws_smithy_runtime_api::client::result::SdkError<
2757 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2758 R,
2759 >,
2760 ) -> Self {
2761 match err {
2762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2765 source: err.into(),
2766 }),
2767 }
2768 }
2769}
2770impl From<crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError>
2771 for Error
2772{
2773 fn from(
2774 err: crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2775 ) -> Self {
2776 match err {
2777 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError::Unhandled(inner) => Error::Unhandled(inner),
2778 }
2779 }
2780}
2781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>>
2782 for Error
2783where
2784 R: Send + Sync + std::fmt::Debug + 'static,
2785{
2786 fn from(
2787 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>,
2788 ) -> Self {
2789 match err {
2790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2793 source: err.into(),
2794 }),
2795 }
2796 }
2797}
2798impl From<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError> for Error {
2799 fn from(err: crate::operation::create_managed_prefix_list::CreateManagedPrefixListError) -> Self {
2800 match err {
2801 crate::operation::create_managed_prefix_list::CreateManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
2802 }
2803 }
2804}
2805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>> for Error
2806where
2807 R: Send + Sync + std::fmt::Debug + 'static,
2808{
2809 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>) -> Self {
2810 match err {
2811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2814 source: err.into(),
2815 }),
2816 }
2817 }
2818}
2819impl From<crate::operation::create_nat_gateway::CreateNatGatewayError> for Error {
2820 fn from(err: crate::operation::create_nat_gateway::CreateNatGatewayError) -> Self {
2821 match err {
2822 crate::operation::create_nat_gateway::CreateNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2823 }
2824 }
2825}
2826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>> for Error
2827where
2828 R: Send + Sync + std::fmt::Debug + 'static,
2829{
2830 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>) -> Self {
2831 match err {
2832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2835 source: err.into(),
2836 }),
2837 }
2838 }
2839}
2840impl From<crate::operation::create_network_acl::CreateNetworkAclError> for Error {
2841 fn from(err: crate::operation::create_network_acl::CreateNetworkAclError) -> Self {
2842 match err {
2843 crate::operation::create_network_acl::CreateNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
2844 }
2845 }
2846}
2847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>> for Error
2848where
2849 R: Send + Sync + std::fmt::Debug + 'static,
2850{
2851 fn from(
2852 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>,
2853 ) -> Self {
2854 match err {
2855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2858 source: err.into(),
2859 }),
2860 }
2861 }
2862}
2863impl From<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError> for Error {
2864 fn from(err: crate::operation::create_network_acl_entry::CreateNetworkAclEntryError) -> Self {
2865 match err {
2866 crate::operation::create_network_acl_entry::CreateNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
2867 }
2868 }
2869}
2870impl<R>
2871 From<
2872 ::aws_smithy_runtime_api::client::result::SdkError<
2873 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2874 R,
2875 >,
2876 > for Error
2877where
2878 R: Send + Sync + std::fmt::Debug + 'static,
2879{
2880 fn from(
2881 err: ::aws_smithy_runtime_api::client::result::SdkError<
2882 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2883 R,
2884 >,
2885 ) -> Self {
2886 match err {
2887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2890 source: err.into(),
2891 }),
2892 }
2893 }
2894}
2895impl From<crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError> for Error {
2896 fn from(err: crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError) -> Self {
2897 match err {
2898 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError::Unhandled(inner) => {
2899 Error::Unhandled(inner)
2900 }
2901 }
2902 }
2903}
2904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>>
2905 for Error
2906where
2907 R: Send + Sync + std::fmt::Debug + 'static,
2908{
2909 fn from(
2910 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>,
2911 ) -> Self {
2912 match err {
2913 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2914 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2915 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2916 source: err.into(),
2917 }),
2918 }
2919 }
2920}
2921impl From<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError> for Error {
2922 fn from(err: crate::operation::create_network_insights_path::CreateNetworkInsightsPathError) -> Self {
2923 match err {
2924 crate::operation::create_network_insights_path::CreateNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
2925 }
2926 }
2927}
2928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>> for Error
2929where
2930 R: Send + Sync + std::fmt::Debug + 'static,
2931{
2932 fn from(
2933 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>,
2934 ) -> Self {
2935 match err {
2936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2939 source: err.into(),
2940 }),
2941 }
2942 }
2943}
2944impl From<crate::operation::create_network_interface::CreateNetworkInterfaceError> for Error {
2945 fn from(err: crate::operation::create_network_interface::CreateNetworkInterfaceError) -> Self {
2946 match err {
2947 crate::operation::create_network_interface::CreateNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
2948 }
2949 }
2950}
2951impl<R>
2952 From<
2953 ::aws_smithy_runtime_api::client::result::SdkError<
2954 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2955 R,
2956 >,
2957 > for Error
2958where
2959 R: Send + Sync + std::fmt::Debug + 'static,
2960{
2961 fn from(
2962 err: ::aws_smithy_runtime_api::client::result::SdkError<
2963 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2964 R,
2965 >,
2966 ) -> Self {
2967 match err {
2968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2971 source: err.into(),
2972 }),
2973 }
2974 }
2975}
2976impl From<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError> for Error {
2977 fn from(err: crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError) -> Self {
2978 match err {
2979 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
2980 }
2981 }
2982}
2983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>> for Error
2984where
2985 R: Send + Sync + std::fmt::Debug + 'static,
2986{
2987 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>) -> Self {
2988 match err {
2989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2992 source: err.into(),
2993 }),
2994 }
2995 }
2996}
2997impl From<crate::operation::create_placement_group::CreatePlacementGroupError> for Error {
2998 fn from(err: crate::operation::create_placement_group::CreatePlacementGroupError) -> Self {
2999 match err {
3000 crate::operation::create_placement_group::CreatePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
3001 }
3002 }
3003}
3004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>> for Error
3005where
3006 R: Send + Sync + std::fmt::Debug + 'static,
3007{
3008 fn from(
3009 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>,
3010 ) -> Self {
3011 match err {
3012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3015 source: err.into(),
3016 }),
3017 }
3018 }
3019}
3020impl From<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError> for Error {
3021 fn from(err: crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError) -> Self {
3022 match err {
3023 crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
3024 }
3025 }
3026}
3027impl<R>
3028 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError, R>>
3029 for Error
3030where
3031 R: Send + Sync + std::fmt::Debug + 'static,
3032{
3033 fn from(
3034 err: ::aws_smithy_runtime_api::client::result::SdkError<
3035 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError,
3036 R,
3037 >,
3038 ) -> Self {
3039 match err {
3040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3043 source: err.into(),
3044 }),
3045 }
3046 }
3047}
3048impl From<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError> for Error {
3049 fn from(err: crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError) -> Self {
3050 match err {
3051 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError::Unhandled(inner) => Error::Unhandled(inner),
3052 }
3053 }
3054}
3055impl<R>
3056 From<
3057 ::aws_smithy_runtime_api::client::result::SdkError<
3058 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
3059 R,
3060 >,
3061 > for Error
3062where
3063 R: Send + Sync + std::fmt::Debug + 'static,
3064{
3065 fn from(
3066 err: ::aws_smithy_runtime_api::client::result::SdkError<
3067 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
3068 R,
3069 >,
3070 ) -> Self {
3071 match err {
3072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3075 source: err.into(),
3076 }),
3077 }
3078 }
3079}
3080impl From<crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError> for Error {
3081 fn from(err: crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError) -> Self {
3082 match err {
3083 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
3084 }
3085 }
3086}
3087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>>
3088 for Error
3089where
3090 R: Send + Sync + std::fmt::Debug + 'static,
3091{
3092 fn from(
3093 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>,
3094 ) -> Self {
3095 match err {
3096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3099 source: err.into(),
3100 }),
3101 }
3102 }
3103}
3104impl From<crate::operation::create_restore_image_task::CreateRestoreImageTaskError> for Error {
3105 fn from(err: crate::operation::create_restore_image_task::CreateRestoreImageTaskError) -> Self {
3106 match err {
3107 crate::operation::create_restore_image_task::CreateRestoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3108 }
3109 }
3110}
3111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
3112where
3113 R: Send + Sync + std::fmt::Debug + 'static,
3114{
3115 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
3116 match err {
3117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3120 source: err.into(),
3121 }),
3122 }
3123 }
3124}
3125impl From<crate::operation::create_route::CreateRouteError> for Error {
3126 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
3127 match err {
3128 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
3129 }
3130 }
3131}
3132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>> for Error
3133where
3134 R: Send + Sync + std::fmt::Debug + 'static,
3135{
3136 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>) -> Self {
3137 match err {
3138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3141 source: err.into(),
3142 }),
3143 }
3144 }
3145}
3146impl From<crate::operation::create_route_server::CreateRouteServerError> for Error {
3147 fn from(err: crate::operation::create_route_server::CreateRouteServerError) -> Self {
3148 match err {
3149 crate::operation::create_route_server::CreateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
3150 }
3151 }
3152}
3153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>>
3154 for Error
3155where
3156 R: Send + Sync + std::fmt::Debug + 'static,
3157{
3158 fn from(
3159 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>,
3160 ) -> Self {
3161 match err {
3162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3165 source: err.into(),
3166 }),
3167 }
3168 }
3169}
3170impl From<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError> for Error {
3171 fn from(err: crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError) -> Self {
3172 match err {
3173 crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3174 }
3175 }
3176}
3177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>> for Error
3178where
3179 R: Send + Sync + std::fmt::Debug + 'static,
3180{
3181 fn from(
3182 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>,
3183 ) -> Self {
3184 match err {
3185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3188 source: err.into(),
3189 }),
3190 }
3191 }
3192}
3193impl From<crate::operation::create_route_server_peer::CreateRouteServerPeerError> for Error {
3194 fn from(err: crate::operation::create_route_server_peer::CreateRouteServerPeerError) -> Self {
3195 match err {
3196 crate::operation::create_route_server_peer::CreateRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
3197 }
3198 }
3199}
3200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>> for Error
3201where
3202 R: Send + Sync + std::fmt::Debug + 'static,
3203{
3204 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>) -> Self {
3205 match err {
3206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3209 source: err.into(),
3210 }),
3211 }
3212 }
3213}
3214impl From<crate::operation::create_route_table::CreateRouteTableError> for Error {
3215 fn from(err: crate::operation::create_route_table::CreateRouteTableError) -> Self {
3216 match err {
3217 crate::operation::create_route_table::CreateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3218 }
3219 }
3220}
3221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secondary_network::CreateSecondaryNetworkError, R>> for Error
3222where
3223 R: Send + Sync + std::fmt::Debug + 'static,
3224{
3225 fn from(
3226 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secondary_network::CreateSecondaryNetworkError, R>,
3227 ) -> Self {
3228 match err {
3229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3232 source: err.into(),
3233 }),
3234 }
3235 }
3236}
3237impl From<crate::operation::create_secondary_network::CreateSecondaryNetworkError> for Error {
3238 fn from(err: crate::operation::create_secondary_network::CreateSecondaryNetworkError) -> Self {
3239 match err {
3240 crate::operation::create_secondary_network::CreateSecondaryNetworkError::Unhandled(inner) => Error::Unhandled(inner),
3241 }
3242 }
3243}
3244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secondary_subnet::CreateSecondarySubnetError, R>> for Error
3245where
3246 R: Send + Sync + std::fmt::Debug + 'static,
3247{
3248 fn from(
3249 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secondary_subnet::CreateSecondarySubnetError, R>,
3250 ) -> Self {
3251 match err {
3252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3255 source: err.into(),
3256 }),
3257 }
3258 }
3259}
3260impl From<crate::operation::create_secondary_subnet::CreateSecondarySubnetError> for Error {
3261 fn from(err: crate::operation::create_secondary_subnet::CreateSecondarySubnetError) -> Self {
3262 match err {
3263 crate::operation::create_secondary_subnet::CreateSecondarySubnetError::Unhandled(inner) => Error::Unhandled(inner),
3264 }
3265 }
3266}
3267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>> for Error
3268where
3269 R: Send + Sync + std::fmt::Debug + 'static,
3270{
3271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>) -> Self {
3272 match err {
3273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3276 source: err.into(),
3277 }),
3278 }
3279 }
3280}
3281impl From<crate::operation::create_security_group::CreateSecurityGroupError> for Error {
3282 fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
3283 match err {
3284 crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
3285 }
3286 }
3287}
3288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
3289where
3290 R: Send + Sync + std::fmt::Debug + 'static,
3291{
3292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
3293 match err {
3294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3297 source: err.into(),
3298 }),
3299 }
3300 }
3301}
3302impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
3303 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
3304 match err {
3305 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
3306 }
3307 }
3308}
3309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>> for Error
3310where
3311 R: Send + Sync + std::fmt::Debug + 'static,
3312{
3313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>) -> Self {
3314 match err {
3315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3318 source: err.into(),
3319 }),
3320 }
3321 }
3322}
3323impl From<crate::operation::create_snapshots::CreateSnapshotsError> for Error {
3324 fn from(err: crate::operation::create_snapshots::CreateSnapshotsError) -> Self {
3325 match err {
3326 crate::operation::create_snapshots::CreateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
3327 }
3328 }
3329}
3330impl<R>
3331 From<
3332 ::aws_smithy_runtime_api::client::result::SdkError<
3333 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3334 R,
3335 >,
3336 > for Error
3337where
3338 R: Send + Sync + std::fmt::Debug + 'static,
3339{
3340 fn from(
3341 err: ::aws_smithy_runtime_api::client::result::SdkError<
3342 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3343 R,
3344 >,
3345 ) -> Self {
3346 match err {
3347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3350 source: err.into(),
3351 }),
3352 }
3353 }
3354}
3355impl From<crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError> for Error {
3356 fn from(err: crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError) -> Self {
3357 match err {
3358 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3359 }
3360 }
3361}
3362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>> for Error
3363where
3364 R: Send + Sync + std::fmt::Debug + 'static,
3365{
3366 fn from(
3367 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>,
3368 ) -> Self {
3369 match err {
3370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3373 source: err.into(),
3374 }),
3375 }
3376 }
3377}
3378impl From<crate::operation::create_store_image_task::CreateStoreImageTaskError> for Error {
3379 fn from(err: crate::operation::create_store_image_task::CreateStoreImageTaskError) -> Self {
3380 match err {
3381 crate::operation::create_store_image_task::CreateStoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3382 }
3383 }
3384}
3385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>> for Error
3386where
3387 R: Send + Sync + std::fmt::Debug + 'static,
3388{
3389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>) -> Self {
3390 match err {
3391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3394 source: err.into(),
3395 }),
3396 }
3397 }
3398}
3399impl From<crate::operation::create_subnet::CreateSubnetError> for Error {
3400 fn from(err: crate::operation::create_subnet::CreateSubnetError) -> Self {
3401 match err {
3402 crate::operation::create_subnet::CreateSubnetError::Unhandled(inner) => Error::Unhandled(inner),
3403 }
3404 }
3405}
3406impl<R>
3407 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError, R>>
3408 for Error
3409where
3410 R: Send + Sync + std::fmt::Debug + 'static,
3411{
3412 fn from(
3413 err: ::aws_smithy_runtime_api::client::result::SdkError<
3414 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError,
3415 R,
3416 >,
3417 ) -> Self {
3418 match err {
3419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3422 source: err.into(),
3423 }),
3424 }
3425 }
3426}
3427impl From<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError> for Error {
3428 fn from(err: crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError) -> Self {
3429 match err {
3430 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
3431 }
3432 }
3433}
3434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
3435where
3436 R: Send + Sync + std::fmt::Debug + 'static,
3437{
3438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
3439 match err {
3440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3443 source: err.into(),
3444 }),
3445 }
3446 }
3447}
3448impl From<crate::operation::create_tags::CreateTagsError> for Error {
3449 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
3450 match err {
3451 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
3452 }
3453 }
3454}
3455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>>
3456 for Error
3457where
3458 R: Send + Sync + std::fmt::Debug + 'static,
3459{
3460 fn from(
3461 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>,
3462 ) -> Self {
3463 match err {
3464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3467 source: err.into(),
3468 }),
3469 }
3470 }
3471}
3472impl From<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError> for Error {
3473 fn from(err: crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError) -> Self {
3474 match err {
3475 crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
3476 }
3477 }
3478}
3479impl<R>
3480 From<
3481 ::aws_smithy_runtime_api::client::result::SdkError<
3482 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3483 R,
3484 >,
3485 > for Error
3486where
3487 R: Send + Sync + std::fmt::Debug + 'static,
3488{
3489 fn from(
3490 err: ::aws_smithy_runtime_api::client::result::SdkError<
3491 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3492 R,
3493 >,
3494 ) -> Self {
3495 match err {
3496 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3497 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3498 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3499 source: err.into(),
3500 }),
3501 }
3502 }
3503}
3504impl From<crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError> for Error {
3505 fn from(err: crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError) -> Self {
3506 match err {
3507 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
3508 }
3509 }
3510}
3511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>>
3512 for Error
3513where
3514 R: Send + Sync + std::fmt::Debug + 'static,
3515{
3516 fn from(
3517 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>,
3518 ) -> Self {
3519 match err {
3520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3523 source: err.into(),
3524 }),
3525 }
3526 }
3527}
3528impl From<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError> for Error {
3529 fn from(err: crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError) -> Self {
3530 match err {
3531 crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
3532 }
3533 }
3534}
3535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>>
3536 for Error
3537where
3538 R: Send + Sync + std::fmt::Debug + 'static,
3539{
3540 fn from(
3541 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>,
3542 ) -> Self {
3543 match err {
3544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3547 source: err.into(),
3548 }),
3549 }
3550 }
3551}
3552impl From<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError> for Error {
3553 fn from(err: crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError) -> Self {
3554 match err {
3555 crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
3556 }
3557 }
3558}
3559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>> for Error
3560where
3561 R: Send + Sync + std::fmt::Debug + 'static,
3562{
3563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>) -> Self {
3564 match err {
3565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3568 source: err.into(),
3569 }),
3570 }
3571 }
3572}
3573impl From<crate::operation::create_transit_gateway::CreateTransitGatewayError> for Error {
3574 fn from(err: crate::operation::create_transit_gateway::CreateTransitGatewayError) -> Self {
3575 match err {
3576 crate::operation::create_transit_gateway::CreateTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
3577 }
3578 }
3579}
3580impl<R>
3581 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError, R>>
3582 for Error
3583where
3584 R: Send + Sync + std::fmt::Debug + 'static,
3585{
3586 fn from(
3587 err: ::aws_smithy_runtime_api::client::result::SdkError<
3588 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError,
3589 R,
3590 >,
3591 ) -> Self {
3592 match err {
3593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3596 source: err.into(),
3597 }),
3598 }
3599 }
3600}
3601impl From<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError> for Error {
3602 fn from(err: crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError) -> Self {
3603 match err {
3604 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
3605 }
3606 }
3607}
3608impl<R>
3609 From<
3610 ::aws_smithy_runtime_api::client::result::SdkError<
3611 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3612 R,
3613 >,
3614 > for Error
3615where
3616 R: Send + Sync + std::fmt::Debug + 'static,
3617{
3618 fn from(
3619 err: ::aws_smithy_runtime_api::client::result::SdkError<
3620 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3621 R,
3622 >,
3623 ) -> Self {
3624 match err {
3625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3628 source: err.into(),
3629 }),
3630 }
3631 }
3632}
3633impl From<crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError> for Error {
3634 fn from(err: crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError) -> Self {
3635 match err {
3636 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
3637 }
3638 }
3639}
3640impl<R>
3641 From<
3642 ::aws_smithy_runtime_api::client::result::SdkError<
3643 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError,
3644 R,
3645 >,
3646 > for Error
3647where
3648 R: Send + Sync + std::fmt::Debug + 'static,
3649{
3650 fn from(
3651 err: ::aws_smithy_runtime_api::client::result::SdkError<
3652 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError,
3653 R,
3654 >,
3655 ) -> Self {
3656 match err {
3657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3660 source: err.into(),
3661 }),
3662 }
3663 }
3664}
3665impl From<crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError> for Error {
3666 fn from(err: crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError) -> Self {
3667 match err {
3668 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError::Unhandled(inner) => {
3669 Error::Unhandled(inner)
3670 }
3671 }
3672 }
3673}
3674impl<R>
3675 From<
3676 ::aws_smithy_runtime_api::client::result::SdkError<
3677 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError,
3678 R,
3679 >,
3680 > for Error
3681where
3682 R: Send + Sync + std::fmt::Debug + 'static,
3683{
3684 fn from(
3685 err: ::aws_smithy_runtime_api::client::result::SdkError<
3686 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError,
3687 R,
3688 >,
3689 ) -> Self {
3690 match err {
3691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3694 source: err.into(),
3695 }),
3696 }
3697 }
3698}
3699impl From<crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError> for Error {
3700 fn from(err: crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError) -> Self {
3701 match err {
3702 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError::Unhandled(inner) => {
3703 Error::Unhandled(inner)
3704 }
3705 }
3706 }
3707}
3708impl<R>
3709 From<
3710 ::aws_smithy_runtime_api::client::result::SdkError<
3711 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3712 R,
3713 >,
3714 > for Error
3715where
3716 R: Send + Sync + std::fmt::Debug + 'static,
3717{
3718 fn from(
3719 err: ::aws_smithy_runtime_api::client::result::SdkError<
3720 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3721 R,
3722 >,
3723 ) -> Self {
3724 match err {
3725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3728 source: err.into(),
3729 }),
3730 }
3731 }
3732}
3733impl From<crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError> for Error {
3734 fn from(err: crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError) -> Self {
3735 match err {
3736 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError::Unhandled(inner) => {
3737 Error::Unhandled(inner)
3738 }
3739 }
3740 }
3741}
3742impl<R>
3743 From<
3744 ::aws_smithy_runtime_api::client::result::SdkError<
3745 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3746 R,
3747 >,
3748 > for Error
3749where
3750 R: Send + Sync + std::fmt::Debug + 'static,
3751{
3752 fn from(
3753 err: ::aws_smithy_runtime_api::client::result::SdkError<
3754 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3755 R,
3756 >,
3757 ) -> Self {
3758 match err {
3759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3762 source: err.into(),
3763 }),
3764 }
3765 }
3766}
3767impl From<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError> for Error {
3768 fn from(err: crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError) -> Self {
3769 match err {
3770 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
3771 Error::Unhandled(inner)
3772 }
3773 }
3774 }
3775}
3776impl<R>
3777 From<
3778 ::aws_smithy_runtime_api::client::result::SdkError<
3779 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3780 R,
3781 >,
3782 > for Error
3783where
3784 R: Send + Sync + std::fmt::Debug + 'static,
3785{
3786 fn from(
3787 err: ::aws_smithy_runtime_api::client::result::SdkError<
3788 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3789 R,
3790 >,
3791 ) -> Self {
3792 match err {
3793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3796 source: err.into(),
3797 }),
3798 }
3799 }
3800}
3801impl From<crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError> for Error {
3802 fn from(err: crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError) -> Self {
3803 match err {
3804 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
3805 }
3806 }
3807}
3808impl<R>
3809 From<
3810 ::aws_smithy_runtime_api::client::result::SdkError<
3811 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3812 R,
3813 >,
3814 > for Error
3815where
3816 R: Send + Sync + std::fmt::Debug + 'static,
3817{
3818 fn from(
3819 err: ::aws_smithy_runtime_api::client::result::SdkError<
3820 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3821 R,
3822 >,
3823 ) -> Self {
3824 match err {
3825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3828 source: err.into(),
3829 }),
3830 }
3831 }
3832}
3833impl From<crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError> for Error {
3834 fn from(err: crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError) -> Self {
3835 match err {
3836 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
3837 Error::Unhandled(inner)
3838 }
3839 }
3840 }
3841}
3842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>>
3843 for Error
3844where
3845 R: Send + Sync + std::fmt::Debug + 'static,
3846{
3847 fn from(
3848 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>,
3849 ) -> Self {
3850 match err {
3851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3854 source: err.into(),
3855 }),
3856 }
3857 }
3858}
3859impl From<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError> for Error {
3860 fn from(err: crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError) -> Self {
3861 match err {
3862 crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
3863 }
3864 }
3865}
3866impl<R>
3867 From<
3868 ::aws_smithy_runtime_api::client::result::SdkError<
3869 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3870 R,
3871 >,
3872 > for Error
3873where
3874 R: Send + Sync + std::fmt::Debug + 'static,
3875{
3876 fn from(
3877 err: ::aws_smithy_runtime_api::client::result::SdkError<
3878 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3879 R,
3880 >,
3881 ) -> Self {
3882 match err {
3883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3886 source: err.into(),
3887 }),
3888 }
3889 }
3890}
3891impl From<crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError> for Error {
3892 fn from(err: crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError) -> Self {
3893 match err {
3894 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R>
3899 From<
3900 ::aws_smithy_runtime_api::client::result::SdkError<
3901 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3902 R,
3903 >,
3904 > for Error
3905where
3906 R: Send + Sync + std::fmt::Debug + 'static,
3907{
3908 fn from(
3909 err: ::aws_smithy_runtime_api::client::result::SdkError<
3910 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3911 R,
3912 >,
3913 ) -> Self {
3914 match err {
3915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3918 source: err.into(),
3919 }),
3920 }
3921 }
3922}
3923impl From<crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError> for Error {
3924 fn from(err: crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError) -> Self {
3925 match err {
3926 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
3927 Error::Unhandled(inner)
3928 }
3929 }
3930 }
3931}
3932impl<R>
3933 From<
3934 ::aws_smithy_runtime_api::client::result::SdkError<
3935 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3936 R,
3937 >,
3938 > for Error
3939where
3940 R: Send + Sync + std::fmt::Debug + 'static,
3941{
3942 fn from(
3943 err: ::aws_smithy_runtime_api::client::result::SdkError<
3944 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3945 R,
3946 >,
3947 ) -> Self {
3948 match err {
3949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3952 source: err.into(),
3953 }),
3954 }
3955 }
3956}
3957impl From<crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError> for Error {
3958 fn from(err: crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError) -> Self {
3959 match err {
3960 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError::Unhandled(inner) => {
3961 Error::Unhandled(inner)
3962 }
3963 }
3964 }
3965}
3966impl<R>
3967 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError, R>>
3968 for Error
3969where
3970 R: Send + Sync + std::fmt::Debug + 'static,
3971{
3972 fn from(
3973 err: ::aws_smithy_runtime_api::client::result::SdkError<
3974 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError,
3975 R,
3976 >,
3977 ) -> Self {
3978 match err {
3979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3982 source: err.into(),
3983 }),
3984 }
3985 }
3986}
3987impl From<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError> for Error {
3988 fn from(err: crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError) -> Self {
3989 match err {
3990 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3991 }
3992 }
3993}
3994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>>
3995 for Error
3996where
3997 R: Send + Sync + std::fmt::Debug + 'static,
3998{
3999 fn from(
4000 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>,
4001 ) -> Self {
4002 match err {
4003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4006 source: err.into(),
4007 }),
4008 }
4009 }
4010}
4011impl From<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError> for Error {
4012 fn from(err: crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError) -> Self {
4013 match err {
4014 crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
4015 }
4016 }
4017}
4018impl<R>
4019 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError, R>>
4020 for Error
4021where
4022 R: Send + Sync + std::fmt::Debug + 'static,
4023{
4024 fn from(
4025 err: ::aws_smithy_runtime_api::client::result::SdkError<
4026 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError,
4027 R,
4028 >,
4029 ) -> Self {
4030 match err {
4031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4034 source: err.into(),
4035 }),
4036 }
4037 }
4038}
4039impl From<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError> for Error {
4040 fn from(err: crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError) -> Self {
4041 match err {
4042 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
4043 }
4044 }
4045}
4046impl<R>
4047 From<
4048 ::aws_smithy_runtime_api::client::result::SdkError<
4049 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
4050 R,
4051 >,
4052 > for Error
4053where
4054 R: Send + Sync + std::fmt::Debug + 'static,
4055{
4056 fn from(
4057 err: ::aws_smithy_runtime_api::client::result::SdkError<
4058 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
4059 R,
4060 >,
4061 ) -> Self {
4062 match err {
4063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4066 source: err.into(),
4067 }),
4068 }
4069 }
4070}
4071impl From<crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError> for Error {
4072 fn from(err: crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError) -> Self {
4073 match err {
4074 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError::Unhandled(inner) => {
4075 Error::Unhandled(inner)
4076 }
4077 }
4078 }
4079}
4080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
4081where
4082 R: Send + Sync + std::fmt::Debug + 'static,
4083{
4084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
4085 match err {
4086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4089 source: err.into(),
4090 }),
4091 }
4092 }
4093}
4094impl From<crate::operation::create_volume::CreateVolumeError> for Error {
4095 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
4096 match err {
4097 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
4098 }
4099 }
4100}
4101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>> for Error
4102where
4103 R: Send + Sync + std::fmt::Debug + 'static,
4104{
4105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>) -> Self {
4106 match err {
4107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4110 source: err.into(),
4111 }),
4112 }
4113 }
4114}
4115impl From<crate::operation::create_vpc::CreateVpcError> for Error {
4116 fn from(err: crate::operation::create_vpc::CreateVpcError) -> Self {
4117 match err {
4118 crate::operation::create_vpc::CreateVpcError::Unhandled(inner) => Error::Unhandled(inner),
4119 }
4120 }
4121}
4122impl<R>
4123 From<
4124 ::aws_smithy_runtime_api::client::result::SdkError<
4125 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
4126 R,
4127 >,
4128 > for Error
4129where
4130 R: Send + Sync + std::fmt::Debug + 'static,
4131{
4132 fn from(
4133 err: ::aws_smithy_runtime_api::client::result::SdkError<
4134 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
4135 R,
4136 >,
4137 ) -> Self {
4138 match err {
4139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4142 source: err.into(),
4143 }),
4144 }
4145 }
4146}
4147impl From<crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError> for Error {
4148 fn from(err: crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError) -> Self {
4149 match err {
4150 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
4151 Error::Unhandled(inner)
4152 }
4153 }
4154 }
4155}
4156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError, R>>
4157 for Error
4158where
4159 R: Send + Sync + std::fmt::Debug + 'static,
4160{
4161 fn from(
4162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError, R>,
4163 ) -> Self {
4164 match err {
4165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4168 source: err.into(),
4169 }),
4170 }
4171 }
4172}
4173impl From<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError> for Error {
4174 fn from(err: crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError) -> Self {
4175 match err {
4176 crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
4177 }
4178 }
4179}
4180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
4181where
4182 R: Send + Sync + std::fmt::Debug + 'static,
4183{
4184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
4185 match err {
4186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4189 source: err.into(),
4190 }),
4191 }
4192 }
4193}
4194impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
4195 fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
4196 match err {
4197 crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4198 }
4199 }
4200}
4201impl<R>
4202 From<
4203 ::aws_smithy_runtime_api::client::result::SdkError<
4204 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
4205 R,
4206 >,
4207 > for Error
4208where
4209 R: Send + Sync + std::fmt::Debug + 'static,
4210{
4211 fn from(
4212 err: ::aws_smithy_runtime_api::client::result::SdkError<
4213 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
4214 R,
4215 >,
4216 ) -> Self {
4217 match err {
4218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4221 source: err.into(),
4222 }),
4223 }
4224 }
4225}
4226impl From<crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError> for Error {
4227 fn from(err: crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError) -> Self {
4228 match err {
4229 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError::Unhandled(inner) => {
4230 Error::Unhandled(inner)
4231 }
4232 }
4233 }
4234}
4235impl<R>
4236 From<
4237 ::aws_smithy_runtime_api::client::result::SdkError<
4238 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4239 R,
4240 >,
4241 > for Error
4242where
4243 R: Send + Sync + std::fmt::Debug + 'static,
4244{
4245 fn from(
4246 err: ::aws_smithy_runtime_api::client::result::SdkError<
4247 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4248 R,
4249 >,
4250 ) -> Self {
4251 match err {
4252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4255 source: err.into(),
4256 }),
4257 }
4258 }
4259}
4260impl From<crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError> for Error {
4261 fn from(err: crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError) -> Self {
4262 match err {
4263 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError::Unhandled(inner) => {
4264 Error::Unhandled(inner)
4265 }
4266 }
4267 }
4268}
4269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>>
4270 for Error
4271where
4272 R: Send + Sync + std::fmt::Debug + 'static,
4273{
4274 fn from(
4275 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>,
4276 ) -> Self {
4277 match err {
4278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4281 source: err.into(),
4282 }),
4283 }
4284 }
4285}
4286impl From<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError> for Error {
4287 fn from(err: crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError) -> Self {
4288 match err {
4289 crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4290 }
4291 }
4292}
4293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>> for Error
4294where
4295 R: Send + Sync + std::fmt::Debug + 'static,
4296{
4297 fn from(
4298 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>,
4299 ) -> Self {
4300 match err {
4301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4304 source: err.into(),
4305 }),
4306 }
4307 }
4308}
4309impl From<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError> for Error {
4310 fn from(err: crate::operation::create_vpn_concentrator::CreateVpnConcentratorError) -> Self {
4311 match err {
4312 crate::operation::create_vpn_concentrator::CreateVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
4313 }
4314 }
4315}
4316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>> for Error
4317where
4318 R: Send + Sync + std::fmt::Debug + 'static,
4319{
4320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>) -> Self {
4321 match err {
4322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4325 source: err.into(),
4326 }),
4327 }
4328 }
4329}
4330impl From<crate::operation::create_vpn_connection::CreateVpnConnectionError> for Error {
4331 fn from(err: crate::operation::create_vpn_connection::CreateVpnConnectionError) -> Self {
4332 match err {
4333 crate::operation::create_vpn_connection::CreateVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4334 }
4335 }
4336}
4337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>>
4338 for Error
4339where
4340 R: Send + Sync + std::fmt::Debug + 'static,
4341{
4342 fn from(
4343 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>,
4344 ) -> Self {
4345 match err {
4346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4349 source: err.into(),
4350 }),
4351 }
4352 }
4353}
4354impl From<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError> for Error {
4355 fn from(err: crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError) -> Self {
4356 match err {
4357 crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
4358 }
4359 }
4360}
4361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>> for Error
4362where
4363 R: Send + Sync + std::fmt::Debug + 'static,
4364{
4365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>) -> Self {
4366 match err {
4367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4370 source: err.into(),
4371 }),
4372 }
4373 }
4374}
4375impl From<crate::operation::create_vpn_gateway::CreateVpnGatewayError> for Error {
4376 fn from(err: crate::operation::create_vpn_gateway::CreateVpnGatewayError) -> Self {
4377 match err {
4378 crate::operation::create_vpn_gateway::CreateVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4379 }
4380 }
4381}
4382impl<R>
4383 From<
4384 ::aws_smithy_runtime_api::client::result::SdkError<
4385 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4386 R,
4387 >,
4388 > for Error
4389where
4390 R: Send + Sync + std::fmt::Debug + 'static,
4391{
4392 fn from(
4393 err: ::aws_smithy_runtime_api::client::result::SdkError<
4394 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4395 R,
4396 >,
4397 ) -> Self {
4398 match err {
4399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4402 source: err.into(),
4403 }),
4404 }
4405 }
4406}
4407impl From<crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError> for Error {
4408 fn from(err: crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError) -> Self {
4409 match err {
4410 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
4411 }
4412 }
4413}
4414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>> for Error
4415where
4416 R: Send + Sync + std::fmt::Debug + 'static,
4417{
4418 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>) -> Self {
4419 match err {
4420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4423 source: err.into(),
4424 }),
4425 }
4426 }
4427}
4428impl From<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError> for Error {
4429 fn from(err: crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError) -> Self {
4430 match err {
4431 crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4432 }
4433 }
4434}
4435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>>
4436 for Error
4437where
4438 R: Send + Sync + std::fmt::Debug + 'static,
4439{
4440 fn from(
4441 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>,
4442 ) -> Self {
4443 match err {
4444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4447 source: err.into(),
4448 }),
4449 }
4450 }
4451}
4452impl From<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError> for Error {
4453 fn from(err: crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError) -> Self {
4454 match err {
4455 crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4456 }
4457 }
4458}
4459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>> for Error
4460where
4461 R: Send + Sync + std::fmt::Debug + 'static,
4462{
4463 fn from(
4464 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>,
4465 ) -> Self {
4466 match err {
4467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4470 source: err.into(),
4471 }),
4472 }
4473 }
4474}
4475impl From<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError> for Error {
4476 fn from(err: crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError) -> Self {
4477 match err {
4478 crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
4479 }
4480 }
4481}
4482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>> for Error
4483where
4484 R: Send + Sync + std::fmt::Debug + 'static,
4485{
4486 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>) -> Self {
4487 match err {
4488 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4489 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4490 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4491 source: err.into(),
4492 }),
4493 }
4494 }
4495}
4496impl From<crate::operation::delete_coip_cidr::DeleteCoipCidrError> for Error {
4497 fn from(err: crate::operation::delete_coip_cidr::DeleteCoipCidrError) -> Self {
4498 match err {
4499 crate::operation::delete_coip_cidr::DeleteCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
4500 }
4501 }
4502}
4503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>> for Error
4504where
4505 R: Send + Sync + std::fmt::Debug + 'static,
4506{
4507 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>) -> Self {
4508 match err {
4509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4512 source: err.into(),
4513 }),
4514 }
4515 }
4516}
4517impl From<crate::operation::delete_coip_pool::DeleteCoipPoolError> for Error {
4518 fn from(err: crate::operation::delete_coip_pool::DeleteCoipPoolError) -> Self {
4519 match err {
4520 crate::operation::delete_coip_pool::DeleteCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
4521 }
4522 }
4523}
4524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>> for Error
4525where
4526 R: Send + Sync + std::fmt::Debug + 'static,
4527{
4528 fn from(
4529 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>,
4530 ) -> Self {
4531 match err {
4532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4535 source: err.into(),
4536 }),
4537 }
4538 }
4539}
4540impl From<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError> for Error {
4541 fn from(err: crate::operation::delete_customer_gateway::DeleteCustomerGatewayError) -> Self {
4542 match err {
4543 crate::operation::delete_customer_gateway::DeleteCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4544 }
4545 }
4546}
4547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>> for Error
4548where
4549 R: Send + Sync + std::fmt::Debug + 'static,
4550{
4551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>) -> Self {
4552 match err {
4553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4556 source: err.into(),
4557 }),
4558 }
4559 }
4560}
4561impl From<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError> for Error {
4562 fn from(err: crate::operation::delete_dhcp_options::DeleteDhcpOptionsError) -> Self {
4563 match err {
4564 crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4565 }
4566 }
4567}
4568impl<R>
4569 From<
4570 ::aws_smithy_runtime_api::client::result::SdkError<
4571 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4572 R,
4573 >,
4574 > for Error
4575where
4576 R: Send + Sync + std::fmt::Debug + 'static,
4577{
4578 fn from(
4579 err: ::aws_smithy_runtime_api::client::result::SdkError<
4580 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4581 R,
4582 >,
4583 ) -> Self {
4584 match err {
4585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4588 source: err.into(),
4589 }),
4590 }
4591 }
4592}
4593impl From<crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError> for Error {
4594 fn from(err: crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError) -> Self {
4595 match err {
4596 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4597 }
4598 }
4599}
4600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>> for Error
4601where
4602 R: Send + Sync + std::fmt::Debug + 'static,
4603{
4604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>) -> Self {
4605 match err {
4606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4609 source: err.into(),
4610 }),
4611 }
4612 }
4613}
4614impl From<crate::operation::delete_fleets::DeleteFleetsError> for Error {
4615 fn from(err: crate::operation::delete_fleets::DeleteFleetsError) -> Self {
4616 match err {
4617 crate::operation::delete_fleets::DeleteFleetsError::Unhandled(inner) => Error::Unhandled(inner),
4618 }
4619 }
4620}
4621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>> for Error
4622where
4623 R: Send + Sync + std::fmt::Debug + 'static,
4624{
4625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>) -> Self {
4626 match err {
4627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4630 source: err.into(),
4631 }),
4632 }
4633 }
4634}
4635impl From<crate::operation::delete_flow_logs::DeleteFlowLogsError> for Error {
4636 fn from(err: crate::operation::delete_flow_logs::DeleteFlowLogsError) -> Self {
4637 match err {
4638 crate::operation::delete_flow_logs::DeleteFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
4639 }
4640 }
4641}
4642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>> for Error
4643where
4644 R: Send + Sync + std::fmt::Debug + 'static,
4645{
4646 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>) -> Self {
4647 match err {
4648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4651 source: err.into(),
4652 }),
4653 }
4654 }
4655}
4656impl From<crate::operation::delete_fpga_image::DeleteFpgaImageError> for Error {
4657 fn from(err: crate::operation::delete_fpga_image::DeleteFpgaImageError) -> Self {
4658 match err {
4659 crate::operation::delete_fpga_image::DeleteFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
4660 }
4661 }
4662}
4663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>>
4664 for Error
4665where
4666 R: Send + Sync + std::fmt::Debug + 'static,
4667{
4668 fn from(
4669 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>,
4670 ) -> Self {
4671 match err {
4672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4675 source: err.into(),
4676 }),
4677 }
4678 }
4679}
4680impl From<crate::operation::delete_image_usage_report::DeleteImageUsageReportError> for Error {
4681 fn from(err: crate::operation::delete_image_usage_report::DeleteImageUsageReportError) -> Self {
4682 match err {
4683 crate::operation::delete_image_usage_report::DeleteImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
4684 }
4685 }
4686}
4687impl<R>
4688 From<
4689 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError, R>,
4690 > for Error
4691where
4692 R: Send + Sync + std::fmt::Debug + 'static,
4693{
4694 fn from(
4695 err: ::aws_smithy_runtime_api::client::result::SdkError<
4696 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError,
4697 R,
4698 >,
4699 ) -> Self {
4700 match err {
4701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4704 source: err.into(),
4705 }),
4706 }
4707 }
4708}
4709impl From<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError> for Error {
4710 fn from(err: crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError) -> Self {
4711 match err {
4712 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4713 }
4714 }
4715}
4716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>>
4717 for Error
4718where
4719 R: Send + Sync + std::fmt::Debug + 'static,
4720{
4721 fn from(
4722 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>,
4723 ) -> Self {
4724 match err {
4725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4728 source: err.into(),
4729 }),
4730 }
4731 }
4732}
4733impl From<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError> for Error {
4734 fn from(err: crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError) -> Self {
4735 match err {
4736 crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
4737 }
4738 }
4739}
4740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>> for Error
4741where
4742 R: Send + Sync + std::fmt::Debug + 'static,
4743{
4744 fn from(
4745 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>,
4746 ) -> Self {
4747 match err {
4748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4751 source: err.into(),
4752 }),
4753 }
4754 }
4755}
4756impl From<crate::operation::delete_internet_gateway::DeleteInternetGatewayError> for Error {
4757 fn from(err: crate::operation::delete_internet_gateway::DeleteInternetGatewayError) -> Self {
4758 match err {
4759 crate::operation::delete_internet_gateway::DeleteInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4760 }
4761 }
4762}
4763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>> for Error
4764where
4765 R: Send + Sync + std::fmt::Debug + 'static,
4766{
4767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>) -> Self {
4768 match err {
4769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4772 source: err.into(),
4773 }),
4774 }
4775 }
4776}
4777impl From<crate::operation::delete_ipam::DeleteIpamError> for Error {
4778 fn from(err: crate::operation::delete_ipam::DeleteIpamError) -> Self {
4779 match err {
4780 crate::operation::delete_ipam::DeleteIpamError::Unhandled(inner) => Error::Unhandled(inner),
4781 }
4782 }
4783}
4784impl<R>
4785 From<
4786 ::aws_smithy_runtime_api::client::result::SdkError<
4787 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4788 R,
4789 >,
4790 > for Error
4791where
4792 R: Send + Sync + std::fmt::Debug + 'static,
4793{
4794 fn from(
4795 err: ::aws_smithy_runtime_api::client::result::SdkError<
4796 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4797 R,
4798 >,
4799 ) -> Self {
4800 match err {
4801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4804 source: err.into(),
4805 }),
4806 }
4807 }
4808}
4809impl From<crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError> for Error {
4810 fn from(err: crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError) -> Self {
4811 match err {
4812 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError::Unhandled(
4813 inner,
4814 ) => Error::Unhandled(inner),
4815 }
4816 }
4817}
4818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_policy::DeleteIpamPolicyError, R>> for Error
4819where
4820 R: Send + Sync + std::fmt::Debug + 'static,
4821{
4822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_policy::DeleteIpamPolicyError, R>) -> Self {
4823 match err {
4824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4827 source: err.into(),
4828 }),
4829 }
4830 }
4831}
4832impl From<crate::operation::delete_ipam_policy::DeleteIpamPolicyError> for Error {
4833 fn from(err: crate::operation::delete_ipam_policy::DeleteIpamPolicyError) -> Self {
4834 match err {
4835 crate::operation::delete_ipam_policy::DeleteIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
4836 }
4837 }
4838}
4839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>> for Error
4840where
4841 R: Send + Sync + std::fmt::Debug + 'static,
4842{
4843 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>) -> Self {
4844 match err {
4845 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4846 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4847 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4848 source: err.into(),
4849 }),
4850 }
4851 }
4852}
4853impl From<crate::operation::delete_ipam_pool::DeleteIpamPoolError> for Error {
4854 fn from(err: crate::operation::delete_ipam_pool::DeleteIpamPoolError) -> Self {
4855 match err {
4856 crate::operation::delete_ipam_pool::DeleteIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
4857 }
4858 }
4859}
4860impl<R>
4861 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError, R>>
4862 for Error
4863where
4864 R: Send + Sync + std::fmt::Debug + 'static,
4865{
4866 fn from(
4867 err: ::aws_smithy_runtime_api::client::result::SdkError<
4868 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError,
4869 R,
4870 >,
4871 ) -> Self {
4872 match err {
4873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4876 source: err.into(),
4877 }),
4878 }
4879 }
4880}
4881impl From<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError> for Error {
4882 fn from(err: crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError) -> Self {
4883 match err {
4884 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
4885 }
4886 }
4887}
4888impl<R>
4889 From<
4890 ::aws_smithy_runtime_api::client::result::SdkError<
4891 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4892 R,
4893 >,
4894 > for Error
4895where
4896 R: Send + Sync + std::fmt::Debug + 'static,
4897{
4898 fn from(
4899 err: ::aws_smithy_runtime_api::client::result::SdkError<
4900 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4901 R,
4902 >,
4903 ) -> Self {
4904 match err {
4905 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4906 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4907 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4908 source: err.into(),
4909 }),
4910 }
4911 }
4912}
4913impl From<crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError> for Error {
4914 fn from(err: crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError) -> Self {
4915 match err {
4916 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError::Unhandled(inner) => {
4917 Error::Unhandled(inner)
4918 }
4919 }
4920 }
4921}
4922impl<R>
4923 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError, R>>
4924 for Error
4925where
4926 R: Send + Sync + std::fmt::Debug + 'static,
4927{
4928 fn from(
4929 err: ::aws_smithy_runtime_api::client::result::SdkError<
4930 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError,
4931 R,
4932 >,
4933 ) -> Self {
4934 match err {
4935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4938 source: err.into(),
4939 }),
4940 }
4941 }
4942}
4943impl From<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError> for Error {
4944 fn from(err: crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError) -> Self {
4945 match err {
4946 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
4947 }
4948 }
4949}
4950impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>> for Error
4951where
4952 R: Send + Sync + std::fmt::Debug + 'static,
4953{
4954 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>) -> Self {
4955 match err {
4956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4959 source: err.into(),
4960 }),
4961 }
4962 }
4963}
4964impl From<crate::operation::delete_ipam_scope::DeleteIpamScopeError> for Error {
4965 fn from(err: crate::operation::delete_ipam_scope::DeleteIpamScopeError) -> Self {
4966 match err {
4967 crate::operation::delete_ipam_scope::DeleteIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
4968 }
4969 }
4970}
4971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>> for Error
4972where
4973 R: Send + Sync + std::fmt::Debug + 'static,
4974{
4975 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>) -> Self {
4976 match err {
4977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4980 source: err.into(),
4981 }),
4982 }
4983 }
4984}
4985impl From<crate::operation::delete_key_pair::DeleteKeyPairError> for Error {
4986 fn from(err: crate::operation::delete_key_pair::DeleteKeyPairError) -> Self {
4987 match err {
4988 crate::operation::delete_key_pair::DeleteKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
4989 }
4990 }
4991}
4992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>> for Error
4993where
4994 R: Send + Sync + std::fmt::Debug + 'static,
4995{
4996 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>) -> Self {
4997 match err {
4998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5001 source: err.into(),
5002 }),
5003 }
5004 }
5005}
5006impl From<crate::operation::delete_launch_template::DeleteLaunchTemplateError> for Error {
5007 fn from(err: crate::operation::delete_launch_template::DeleteLaunchTemplateError) -> Self {
5008 match err {
5009 crate::operation::delete_launch_template::DeleteLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
5010 }
5011 }
5012}
5013impl<R>
5014 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError, R>>
5015 for Error
5016where
5017 R: Send + Sync + std::fmt::Debug + 'static,
5018{
5019 fn from(
5020 err: ::aws_smithy_runtime_api::client::result::SdkError<
5021 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError,
5022 R,
5023 >,
5024 ) -> Self {
5025 match err {
5026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5029 source: err.into(),
5030 }),
5031 }
5032 }
5033}
5034impl From<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError> for Error {
5035 fn from(err: crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError) -> Self {
5036 match err {
5037 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
5038 }
5039 }
5040}
5041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>>
5042 for Error
5043where
5044 R: Send + Sync + std::fmt::Debug + 'static,
5045{
5046 fn from(
5047 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>,
5048 ) -> Self {
5049 match err {
5050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5053 source: err.into(),
5054 }),
5055 }
5056 }
5057}
5058impl From<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError> for Error {
5059 fn from(err: crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError) -> Self {
5060 match err {
5061 crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
5062 }
5063 }
5064}
5065impl<R>
5066 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError, R>>
5067 for Error
5068where
5069 R: Send + Sync + std::fmt::Debug + 'static,
5070{
5071 fn from(
5072 err: ::aws_smithy_runtime_api::client::result::SdkError<
5073 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError,
5074 R,
5075 >,
5076 ) -> Self {
5077 match err {
5078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5081 source: err.into(),
5082 }),
5083 }
5084 }
5085}
5086impl From<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError> for Error {
5087 fn from(err: crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError) -> Self {
5088 match err {
5089 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5090 }
5091 }
5092}
5093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
5094 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
5095 match err {
5096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5097 _ => Error::Unhandled(
5098 crate::error::sealed_unhandled::Unhandled {
5099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5100 source: err.into(),
5101 }
5102 ),
5103 }
5104 }
5105}
5106impl From<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
5107 fn from(err: crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
5108 match err {
5109 crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
5110 }
5111 }
5112}
5113impl<R>
5114 From<
5115 ::aws_smithy_runtime_api::client::result::SdkError<
5116 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
5117 R,
5118 >,
5119 > for Error
5120where
5121 R: Send + Sync + std::fmt::Debug + 'static,
5122{
5123 fn from(
5124 err: ::aws_smithy_runtime_api::client::result::SdkError<
5125 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
5126 R,
5127 >,
5128 ) -> Self {
5129 match err {
5130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5133 source: err.into(),
5134 }),
5135 }
5136 }
5137}
5138impl From<crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError> for Error {
5139 fn from(err: crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError) -> Self {
5140 match err {
5141 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
5142 Error::Unhandled(inner)
5143 }
5144 }
5145 }
5146}
5147impl<R>
5148 From<
5149 ::aws_smithy_runtime_api::client::result::SdkError<
5150 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
5151 R,
5152 >,
5153 > for Error
5154where
5155 R: Send + Sync + std::fmt::Debug + 'static,
5156{
5157 fn from(
5158 err: ::aws_smithy_runtime_api::client::result::SdkError<
5159 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
5160 R,
5161 >,
5162 ) -> Self {
5163 match err {
5164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5167 source: err.into(),
5168 }),
5169 }
5170 }
5171}
5172impl From<crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError> for Error {
5173 fn from(err: crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError) -> Self {
5174 match err {
5175 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
5176 Error::Unhandled(inner)
5177 }
5178 }
5179 }
5180}
5181impl<R>
5182 From<
5183 ::aws_smithy_runtime_api::client::result::SdkError<
5184 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
5185 R,
5186 >,
5187 > for Error
5188where
5189 R: Send + Sync + std::fmt::Debug + 'static,
5190{
5191 fn from(
5192 err: ::aws_smithy_runtime_api::client::result::SdkError<
5193 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
5194 R,
5195 >,
5196 ) -> Self {
5197 match err {
5198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5201 source: err.into(),
5202 }),
5203 }
5204 }
5205}
5206impl From<crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError> for Error {
5207 fn from(err: crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError) -> Self {
5208 match err {
5209 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
5210 Error::Unhandled(inner)
5211 }
5212 }
5213 }
5214}
5215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>>
5216 for Error
5217where
5218 R: Send + Sync + std::fmt::Debug + 'static,
5219{
5220 fn from(
5221 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>,
5222 ) -> Self {
5223 match err {
5224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5227 source: err.into(),
5228 }),
5229 }
5230 }
5231}
5232impl From<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError> for Error {
5233 fn from(err: crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError) -> Self {
5234 match err {
5235 crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
5236 }
5237 }
5238}
5239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>> for Error
5240where
5241 R: Send + Sync + std::fmt::Debug + 'static,
5242{
5243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>) -> Self {
5244 match err {
5245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5248 source: err.into(),
5249 }),
5250 }
5251 }
5252}
5253impl From<crate::operation::delete_nat_gateway::DeleteNatGatewayError> for Error {
5254 fn from(err: crate::operation::delete_nat_gateway::DeleteNatGatewayError) -> Self {
5255 match err {
5256 crate::operation::delete_nat_gateway::DeleteNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5257 }
5258 }
5259}
5260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>> for Error
5261where
5262 R: Send + Sync + std::fmt::Debug + 'static,
5263{
5264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>) -> Self {
5265 match err {
5266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5269 source: err.into(),
5270 }),
5271 }
5272 }
5273}
5274impl From<crate::operation::delete_network_acl::DeleteNetworkAclError> for Error {
5275 fn from(err: crate::operation::delete_network_acl::DeleteNetworkAclError) -> Self {
5276 match err {
5277 crate::operation::delete_network_acl::DeleteNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
5278 }
5279 }
5280}
5281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>> for Error
5282where
5283 R: Send + Sync + std::fmt::Debug + 'static,
5284{
5285 fn from(
5286 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>,
5287 ) -> Self {
5288 match err {
5289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5292 source: err.into(),
5293 }),
5294 }
5295 }
5296}
5297impl From<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError> for Error {
5298 fn from(err: crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError) -> Self {
5299 match err {
5300 crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
5301 }
5302 }
5303}
5304impl<R>
5305 From<
5306 ::aws_smithy_runtime_api::client::result::SdkError<
5307 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5308 R,
5309 >,
5310 > for Error
5311where
5312 R: Send + Sync + std::fmt::Debug + 'static,
5313{
5314 fn from(
5315 err: ::aws_smithy_runtime_api::client::result::SdkError<
5316 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5317 R,
5318 >,
5319 ) -> Self {
5320 match err {
5321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5324 source: err.into(),
5325 }),
5326 }
5327 }
5328}
5329impl From<crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError> for Error {
5330 fn from(err: crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError) -> Self {
5331 match err {
5332 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError::Unhandled(inner) => {
5333 Error::Unhandled(inner)
5334 }
5335 }
5336 }
5337}
5338impl<R>
5339 From<
5340 ::aws_smithy_runtime_api::client::result::SdkError<
5341 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5342 R,
5343 >,
5344 > for Error
5345where
5346 R: Send + Sync + std::fmt::Debug + 'static,
5347{
5348 fn from(
5349 err: ::aws_smithy_runtime_api::client::result::SdkError<
5350 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5351 R,
5352 >,
5353 ) -> Self {
5354 match err {
5355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5358 source: err.into(),
5359 }),
5360 }
5361 }
5362}
5363impl From<crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError> for Error {
5364 fn from(err: crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError) -> Self {
5365 match err {
5366 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
5367 Error::Unhandled(inner)
5368 }
5369 }
5370 }
5371}
5372impl<R>
5373 From<
5374 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError, R>,
5375 > for Error
5376where
5377 R: Send + Sync + std::fmt::Debug + 'static,
5378{
5379 fn from(
5380 err: ::aws_smithy_runtime_api::client::result::SdkError<
5381 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError,
5382 R,
5383 >,
5384 ) -> Self {
5385 match err {
5386 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5387 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5388 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5389 source: err.into(),
5390 }),
5391 }
5392 }
5393}
5394impl From<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError> for Error {
5395 fn from(err: crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError) -> Self {
5396 match err {
5397 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
5398 }
5399 }
5400}
5401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>>
5402 for Error
5403where
5404 R: Send + Sync + std::fmt::Debug + 'static,
5405{
5406 fn from(
5407 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>,
5408 ) -> Self {
5409 match err {
5410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5413 source: err.into(),
5414 }),
5415 }
5416 }
5417}
5418impl From<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError> for Error {
5419 fn from(err: crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError) -> Self {
5420 match err {
5421 crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
5422 }
5423 }
5424}
5425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>> for Error
5426where
5427 R: Send + Sync + std::fmt::Debug + 'static,
5428{
5429 fn from(
5430 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>,
5431 ) -> Self {
5432 match err {
5433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5436 source: err.into(),
5437 }),
5438 }
5439 }
5440}
5441impl From<crate::operation::delete_network_interface::DeleteNetworkInterfaceError> for Error {
5442 fn from(err: crate::operation::delete_network_interface::DeleteNetworkInterfaceError) -> Self {
5443 match err {
5444 crate::operation::delete_network_interface::DeleteNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
5445 }
5446 }
5447}
5448impl<R>
5449 From<
5450 ::aws_smithy_runtime_api::client::result::SdkError<
5451 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5452 R,
5453 >,
5454 > for Error
5455where
5456 R: Send + Sync + std::fmt::Debug + 'static,
5457{
5458 fn from(
5459 err: ::aws_smithy_runtime_api::client::result::SdkError<
5460 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5461 R,
5462 >,
5463 ) -> Self {
5464 match err {
5465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5468 source: err.into(),
5469 }),
5470 }
5471 }
5472}
5473impl From<crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError> for Error {
5474 fn from(err: crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError) -> Self {
5475 match err {
5476 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
5477 }
5478 }
5479}
5480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>> for Error
5481where
5482 R: Send + Sync + std::fmt::Debug + 'static,
5483{
5484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>) -> Self {
5485 match err {
5486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5489 source: err.into(),
5490 }),
5491 }
5492 }
5493}
5494impl From<crate::operation::delete_placement_group::DeletePlacementGroupError> for Error {
5495 fn from(err: crate::operation::delete_placement_group::DeletePlacementGroupError) -> Self {
5496 match err {
5497 crate::operation::delete_placement_group::DeletePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
5498 }
5499 }
5500}
5501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>> for Error
5502where
5503 R: Send + Sync + std::fmt::Debug + 'static,
5504{
5505 fn from(
5506 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>,
5507 ) -> Self {
5508 match err {
5509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5512 source: err.into(),
5513 }),
5514 }
5515 }
5516}
5517impl From<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError> for Error {
5518 fn from(err: crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError) -> Self {
5519 match err {
5520 crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
5521 }
5522 }
5523}
5524impl<R>
5525 From<
5526 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError, R>,
5527 > for Error
5528where
5529 R: Send + Sync + std::fmt::Debug + 'static,
5530{
5531 fn from(
5532 err: ::aws_smithy_runtime_api::client::result::SdkError<
5533 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
5534 R,
5535 >,
5536 ) -> Self {
5537 match err {
5538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5541 source: err.into(),
5542 }),
5543 }
5544 }
5545}
5546impl From<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError> for Error {
5547 fn from(err: crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError) -> Self {
5548 match err {
5549 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
5550 }
5551 }
5552}
5553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
5554where
5555 R: Send + Sync + std::fmt::Debug + 'static,
5556{
5557 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
5558 match err {
5559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5562 source: err.into(),
5563 }),
5564 }
5565 }
5566}
5567impl From<crate::operation::delete_route::DeleteRouteError> for Error {
5568 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
5569 match err {
5570 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
5571 }
5572 }
5573}
5574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>> for Error
5575where
5576 R: Send + Sync + std::fmt::Debug + 'static,
5577{
5578 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>) -> Self {
5579 match err {
5580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5583 source: err.into(),
5584 }),
5585 }
5586 }
5587}
5588impl From<crate::operation::delete_route_server::DeleteRouteServerError> for Error {
5589 fn from(err: crate::operation::delete_route_server::DeleteRouteServerError) -> Self {
5590 match err {
5591 crate::operation::delete_route_server::DeleteRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
5592 }
5593 }
5594}
5595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>>
5596 for Error
5597where
5598 R: Send + Sync + std::fmt::Debug + 'static,
5599{
5600 fn from(
5601 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>,
5602 ) -> Self {
5603 match err {
5604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5607 source: err.into(),
5608 }),
5609 }
5610 }
5611}
5612impl From<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError> for Error {
5613 fn from(err: crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError) -> Self {
5614 match err {
5615 crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5616 }
5617 }
5618}
5619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>> for Error
5620where
5621 R: Send + Sync + std::fmt::Debug + 'static,
5622{
5623 fn from(
5624 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>,
5625 ) -> Self {
5626 match err {
5627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5630 source: err.into(),
5631 }),
5632 }
5633 }
5634}
5635impl From<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError> for Error {
5636 fn from(err: crate::operation::delete_route_server_peer::DeleteRouteServerPeerError) -> Self {
5637 match err {
5638 crate::operation::delete_route_server_peer::DeleteRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
5639 }
5640 }
5641}
5642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>> for Error
5643where
5644 R: Send + Sync + std::fmt::Debug + 'static,
5645{
5646 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>) -> Self {
5647 match err {
5648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5651 source: err.into(),
5652 }),
5653 }
5654 }
5655}
5656impl From<crate::operation::delete_route_table::DeleteRouteTableError> for Error {
5657 fn from(err: crate::operation::delete_route_table::DeleteRouteTableError) -> Self {
5658 match err {
5659 crate::operation::delete_route_table::DeleteRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5660 }
5661 }
5662}
5663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secondary_network::DeleteSecondaryNetworkError, R>> for Error
5664where
5665 R: Send + Sync + std::fmt::Debug + 'static,
5666{
5667 fn from(
5668 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secondary_network::DeleteSecondaryNetworkError, R>,
5669 ) -> Self {
5670 match err {
5671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5674 source: err.into(),
5675 }),
5676 }
5677 }
5678}
5679impl From<crate::operation::delete_secondary_network::DeleteSecondaryNetworkError> for Error {
5680 fn from(err: crate::operation::delete_secondary_network::DeleteSecondaryNetworkError) -> Self {
5681 match err {
5682 crate::operation::delete_secondary_network::DeleteSecondaryNetworkError::Unhandled(inner) => Error::Unhandled(inner),
5683 }
5684 }
5685}
5686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError, R>> for Error
5687where
5688 R: Send + Sync + std::fmt::Debug + 'static,
5689{
5690 fn from(
5691 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError, R>,
5692 ) -> Self {
5693 match err {
5694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5697 source: err.into(),
5698 }),
5699 }
5700 }
5701}
5702impl From<crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError> for Error {
5703 fn from(err: crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError) -> Self {
5704 match err {
5705 crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError::Unhandled(inner) => Error::Unhandled(inner),
5706 }
5707 }
5708}
5709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
5710where
5711 R: Send + Sync + std::fmt::Debug + 'static,
5712{
5713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
5714 match err {
5715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5718 source: err.into(),
5719 }),
5720 }
5721 }
5722}
5723impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
5724 fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
5725 match err {
5726 crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
5727 }
5728 }
5729}
5730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
5731where
5732 R: Send + Sync + std::fmt::Debug + 'static,
5733{
5734 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
5735 match err {
5736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5739 source: err.into(),
5740 }),
5741 }
5742 }
5743}
5744impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
5745 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
5746 match err {
5747 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5748 }
5749 }
5750}
5751impl<R>
5752 From<
5753 ::aws_smithy_runtime_api::client::result::SdkError<
5754 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5755 R,
5756 >,
5757 > for Error
5758where
5759 R: Send + Sync + std::fmt::Debug + 'static,
5760{
5761 fn from(
5762 err: ::aws_smithy_runtime_api::client::result::SdkError<
5763 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5764 R,
5765 >,
5766 ) -> Self {
5767 match err {
5768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5771 source: err.into(),
5772 }),
5773 }
5774 }
5775}
5776impl From<crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError> for Error {
5777 fn from(err: crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError) -> Self {
5778 match err {
5779 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5780 }
5781 }
5782}
5783impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>> for Error
5784where
5785 R: Send + Sync + std::fmt::Debug + 'static,
5786{
5787 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>) -> Self {
5788 match err {
5789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5792 source: err.into(),
5793 }),
5794 }
5795 }
5796}
5797impl From<crate::operation::delete_subnet::DeleteSubnetError> for Error {
5798 fn from(err: crate::operation::delete_subnet::DeleteSubnetError) -> Self {
5799 match err {
5800 crate::operation::delete_subnet::DeleteSubnetError::Unhandled(inner) => Error::Unhandled(inner),
5801 }
5802 }
5803}
5804impl<R>
5805 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError, R>>
5806 for Error
5807where
5808 R: Send + Sync + std::fmt::Debug + 'static,
5809{
5810 fn from(
5811 err: ::aws_smithy_runtime_api::client::result::SdkError<
5812 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError,
5813 R,
5814 >,
5815 ) -> Self {
5816 match err {
5817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5820 source: err.into(),
5821 }),
5822 }
5823 }
5824}
5825impl From<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError> for Error {
5826 fn from(err: crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError) -> Self {
5827 match err {
5828 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
5829 }
5830 }
5831}
5832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
5833where
5834 R: Send + Sync + std::fmt::Debug + 'static,
5835{
5836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
5837 match err {
5838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5841 source: err.into(),
5842 }),
5843 }
5844 }
5845}
5846impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
5847 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
5848 match err {
5849 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
5850 }
5851 }
5852}
5853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>>
5854 for Error
5855where
5856 R: Send + Sync + std::fmt::Debug + 'static,
5857{
5858 fn from(
5859 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>,
5860 ) -> Self {
5861 match err {
5862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5865 source: err.into(),
5866 }),
5867 }
5868 }
5869}
5870impl From<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError> for Error {
5871 fn from(err: crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError) -> Self {
5872 match err {
5873 crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
5874 }
5875 }
5876}
5877impl<R>
5878 From<
5879 ::aws_smithy_runtime_api::client::result::SdkError<
5880 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5881 R,
5882 >,
5883 > for Error
5884where
5885 R: Send + Sync + std::fmt::Debug + 'static,
5886{
5887 fn from(
5888 err: ::aws_smithy_runtime_api::client::result::SdkError<
5889 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5890 R,
5891 >,
5892 ) -> Self {
5893 match err {
5894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5897 source: err.into(),
5898 }),
5899 }
5900 }
5901}
5902impl From<crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError> for Error {
5903 fn from(err: crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError) -> Self {
5904 match err {
5905 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
5906 }
5907 }
5908}
5909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>>
5910 for Error
5911where
5912 R: Send + Sync + std::fmt::Debug + 'static,
5913{
5914 fn from(
5915 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>,
5916 ) -> Self {
5917 match err {
5918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5921 source: err.into(),
5922 }),
5923 }
5924 }
5925}
5926impl From<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError> for Error {
5927 fn from(err: crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError) -> Self {
5928 match err {
5929 crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
5930 }
5931 }
5932}
5933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>>
5934 for Error
5935where
5936 R: Send + Sync + std::fmt::Debug + 'static,
5937{
5938 fn from(
5939 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>,
5940 ) -> Self {
5941 match err {
5942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5945 source: err.into(),
5946 }),
5947 }
5948 }
5949}
5950impl From<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError> for Error {
5951 fn from(err: crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError) -> Self {
5952 match err {
5953 crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
5954 }
5955 }
5956}
5957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>> for Error
5958where
5959 R: Send + Sync + std::fmt::Debug + 'static,
5960{
5961 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>) -> Self {
5962 match err {
5963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5966 source: err.into(),
5967 }),
5968 }
5969 }
5970}
5971impl From<crate::operation::delete_transit_gateway::DeleteTransitGatewayError> for Error {
5972 fn from(err: crate::operation::delete_transit_gateway::DeleteTransitGatewayError) -> Self {
5973 match err {
5974 crate::operation::delete_transit_gateway::DeleteTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5975 }
5976 }
5977}
5978impl<R>
5979 From<
5980 ::aws_smithy_runtime_api::client::result::SdkError<
5981 crate::operation::delete_transit_gateway_client_vpn_attachment::DeleteTransitGatewayClientVpnAttachmentError,
5982 R,
5983 >,
5984 > for Error
5985where
5986 R: Send + Sync + std::fmt::Debug + 'static,
5987{
5988 fn from(
5989 err: ::aws_smithy_runtime_api::client::result::SdkError<
5990 crate::operation::delete_transit_gateway_client_vpn_attachment::DeleteTransitGatewayClientVpnAttachmentError,
5991 R,
5992 >,
5993 ) -> Self {
5994 match err {
5995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5998 source: err.into(),
5999 }),
6000 }
6001 }
6002}
6003impl From<crate::operation::delete_transit_gateway_client_vpn_attachment::DeleteTransitGatewayClientVpnAttachmentError> for Error {
6004 fn from(err: crate::operation::delete_transit_gateway_client_vpn_attachment::DeleteTransitGatewayClientVpnAttachmentError) -> Self {
6005 match err {
6006 crate::operation::delete_transit_gateway_client_vpn_attachment::DeleteTransitGatewayClientVpnAttachmentError::Unhandled(inner) => {
6007 Error::Unhandled(inner)
6008 }
6009 }
6010 }
6011}
6012impl<R>
6013 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError, R>>
6014 for Error
6015where
6016 R: Send + Sync + std::fmt::Debug + 'static,
6017{
6018 fn from(
6019 err: ::aws_smithy_runtime_api::client::result::SdkError<
6020 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError,
6021 R,
6022 >,
6023 ) -> Self {
6024 match err {
6025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6028 source: err.into(),
6029 }),
6030 }
6031 }
6032}
6033impl From<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError> for Error {
6034 fn from(err: crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError) -> Self {
6035 match err {
6036 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
6037 }
6038 }
6039}
6040impl<R>
6041 From<
6042 ::aws_smithy_runtime_api::client::result::SdkError<
6043 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
6044 R,
6045 >,
6046 > for Error
6047where
6048 R: Send + Sync + std::fmt::Debug + 'static,
6049{
6050 fn from(
6051 err: ::aws_smithy_runtime_api::client::result::SdkError<
6052 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
6053 R,
6054 >,
6055 ) -> Self {
6056 match err {
6057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6060 source: err.into(),
6061 }),
6062 }
6063 }
6064}
6065impl From<crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError> for Error {
6066 fn from(err: crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError) -> Self {
6067 match err {
6068 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
6069 }
6070 }
6071}
6072impl<R>
6073 From<
6074 ::aws_smithy_runtime_api::client::result::SdkError<
6075 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError,
6076 R,
6077 >,
6078 > for Error
6079where
6080 R: Send + Sync + std::fmt::Debug + 'static,
6081{
6082 fn from(
6083 err: ::aws_smithy_runtime_api::client::result::SdkError<
6084 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError,
6085 R,
6086 >,
6087 ) -> Self {
6088 match err {
6089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6092 source: err.into(),
6093 }),
6094 }
6095 }
6096}
6097impl From<crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError> for Error {
6098 fn from(err: crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError) -> Self {
6099 match err {
6100 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError::Unhandled(inner) => {
6101 Error::Unhandled(inner)
6102 }
6103 }
6104 }
6105}
6106impl<R>
6107 From<
6108 ::aws_smithy_runtime_api::client::result::SdkError<
6109 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError,
6110 R,
6111 >,
6112 > for Error
6113where
6114 R: Send + Sync + std::fmt::Debug + 'static,
6115{
6116 fn from(
6117 err: ::aws_smithy_runtime_api::client::result::SdkError<
6118 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError,
6119 R,
6120 >,
6121 ) -> Self {
6122 match err {
6123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6126 source: err.into(),
6127 }),
6128 }
6129 }
6130}
6131impl From<crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError> for Error {
6132 fn from(err: crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError) -> Self {
6133 match err {
6134 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError::Unhandled(inner) => {
6135 Error::Unhandled(inner)
6136 }
6137 }
6138 }
6139}
6140impl<R>
6141 From<
6142 ::aws_smithy_runtime_api::client::result::SdkError<
6143 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
6144 R,
6145 >,
6146 > for Error
6147where
6148 R: Send + Sync + std::fmt::Debug + 'static,
6149{
6150 fn from(
6151 err: ::aws_smithy_runtime_api::client::result::SdkError<
6152 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
6153 R,
6154 >,
6155 ) -> Self {
6156 match err {
6157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6160 source: err.into(),
6161 }),
6162 }
6163 }
6164}
6165impl From<crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError> for Error {
6166 fn from(err: crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError) -> Self {
6167 match err {
6168 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError::Unhandled(inner) => {
6169 Error::Unhandled(inner)
6170 }
6171 }
6172 }
6173}
6174impl<R>
6175 From<
6176 ::aws_smithy_runtime_api::client::result::SdkError<
6177 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
6178 R,
6179 >,
6180 > for Error
6181where
6182 R: Send + Sync + std::fmt::Debug + 'static,
6183{
6184 fn from(
6185 err: ::aws_smithy_runtime_api::client::result::SdkError<
6186 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
6187 R,
6188 >,
6189 ) -> Self {
6190 match err {
6191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6194 source: err.into(),
6195 }),
6196 }
6197 }
6198}
6199impl From<crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError> for Error {
6200 fn from(err: crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError) -> Self {
6201 match err {
6202 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
6203 Error::Unhandled(inner)
6204 }
6205 }
6206 }
6207}
6208impl<R>
6209 From<
6210 ::aws_smithy_runtime_api::client::result::SdkError<
6211 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
6212 R,
6213 >,
6214 > for Error
6215where
6216 R: Send + Sync + std::fmt::Debug + 'static,
6217{
6218 fn from(
6219 err: ::aws_smithy_runtime_api::client::result::SdkError<
6220 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
6221 R,
6222 >,
6223 ) -> Self {
6224 match err {
6225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6228 source: err.into(),
6229 }),
6230 }
6231 }
6232}
6233impl From<crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError> for Error {
6234 fn from(err: crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError) -> Self {
6235 match err {
6236 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
6237 }
6238 }
6239}
6240impl<R>
6241 From<
6242 ::aws_smithy_runtime_api::client::result::SdkError<
6243 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
6244 R,
6245 >,
6246 > for Error
6247where
6248 R: Send + Sync + std::fmt::Debug + 'static,
6249{
6250 fn from(
6251 err: ::aws_smithy_runtime_api::client::result::SdkError<
6252 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
6253 R,
6254 >,
6255 ) -> Self {
6256 match err {
6257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6260 source: err.into(),
6261 }),
6262 }
6263 }
6264}
6265impl From<crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError> for Error {
6266 fn from(err: crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError) -> Self {
6267 match err {
6268 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
6269 Error::Unhandled(inner)
6270 }
6271 }
6272 }
6273}
6274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>>
6275 for Error
6276where
6277 R: Send + Sync + std::fmt::Debug + 'static,
6278{
6279 fn from(
6280 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>,
6281 ) -> Self {
6282 match err {
6283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6286 source: err.into(),
6287 }),
6288 }
6289 }
6290}
6291impl From<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError> for Error {
6292 fn from(err: crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError) -> Self {
6293 match err {
6294 crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
6295 }
6296 }
6297}
6298impl<R>
6299 From<
6300 ::aws_smithy_runtime_api::client::result::SdkError<
6301 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
6302 R,
6303 >,
6304 > for Error
6305where
6306 R: Send + Sync + std::fmt::Debug + 'static,
6307{
6308 fn from(
6309 err: ::aws_smithy_runtime_api::client::result::SdkError<
6310 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
6311 R,
6312 >,
6313 ) -> Self {
6314 match err {
6315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6318 source: err.into(),
6319 }),
6320 }
6321 }
6322}
6323impl From<crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError> for Error {
6324 fn from(err: crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError) -> Self {
6325 match err {
6326 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
6327 }
6328 }
6329}
6330impl<R>
6331 From<
6332 ::aws_smithy_runtime_api::client::result::SdkError<
6333 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
6334 R,
6335 >,
6336 > for Error
6337where
6338 R: Send + Sync + std::fmt::Debug + 'static,
6339{
6340 fn from(
6341 err: ::aws_smithy_runtime_api::client::result::SdkError<
6342 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
6343 R,
6344 >,
6345 ) -> Self {
6346 match err {
6347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6350 source: err.into(),
6351 }),
6352 }
6353 }
6354}
6355impl From<crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError> for Error {
6356 fn from(err: crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError) -> Self {
6357 match err {
6358 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
6359 Error::Unhandled(inner)
6360 }
6361 }
6362 }
6363}
6364impl<R>
6365 From<
6366 ::aws_smithy_runtime_api::client::result::SdkError<
6367 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
6368 R,
6369 >,
6370 > for Error
6371where
6372 R: Send + Sync + std::fmt::Debug + 'static,
6373{
6374 fn from(
6375 err: ::aws_smithy_runtime_api::client::result::SdkError<
6376 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
6377 R,
6378 >,
6379 ) -> Self {
6380 match err {
6381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6384 source: err.into(),
6385 }),
6386 }
6387 }
6388}
6389impl From<crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError> for Error {
6390 fn from(err: crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError) -> Self {
6391 match err {
6392 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError::Unhandled(inner) => {
6393 Error::Unhandled(inner)
6394 }
6395 }
6396 }
6397}
6398impl<R>
6399 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError, R>>
6400 for Error
6401where
6402 R: Send + Sync + std::fmt::Debug + 'static,
6403{
6404 fn from(
6405 err: ::aws_smithy_runtime_api::client::result::SdkError<
6406 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError,
6407 R,
6408 >,
6409 ) -> Self {
6410 match err {
6411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6414 source: err.into(),
6415 }),
6416 }
6417 }
6418}
6419impl From<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError> for Error {
6420 fn from(err: crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError) -> Self {
6421 match err {
6422 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
6423 }
6424 }
6425}
6426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>>
6427 for Error
6428where
6429 R: Send + Sync + std::fmt::Debug + 'static,
6430{
6431 fn from(
6432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>,
6433 ) -> Self {
6434 match err {
6435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6438 source: err.into(),
6439 }),
6440 }
6441 }
6442}
6443impl From<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError> for Error {
6444 fn from(err: crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError) -> Self {
6445 match err {
6446 crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
6447 }
6448 }
6449}
6450impl<R>
6451 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError, R>>
6452 for Error
6453where
6454 R: Send + Sync + std::fmt::Debug + 'static,
6455{
6456 fn from(
6457 err: ::aws_smithy_runtime_api::client::result::SdkError<
6458 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError,
6459 R,
6460 >,
6461 ) -> Self {
6462 match err {
6463 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6464 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6465 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6466 source: err.into(),
6467 }),
6468 }
6469 }
6470}
6471impl From<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError> for Error {
6472 fn from(err: crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError) -> Self {
6473 match err {
6474 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
6475 }
6476 }
6477}
6478impl<R>
6479 From<
6480 ::aws_smithy_runtime_api::client::result::SdkError<
6481 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6482 R,
6483 >,
6484 > for Error
6485where
6486 R: Send + Sync + std::fmt::Debug + 'static,
6487{
6488 fn from(
6489 err: ::aws_smithy_runtime_api::client::result::SdkError<
6490 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6491 R,
6492 >,
6493 ) -> Self {
6494 match err {
6495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6498 source: err.into(),
6499 }),
6500 }
6501 }
6502}
6503impl From<crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError> for Error {
6504 fn from(err: crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError) -> Self {
6505 match err {
6506 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError::Unhandled(inner) => {
6507 Error::Unhandled(inner)
6508 }
6509 }
6510 }
6511}
6512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
6513where
6514 R: Send + Sync + std::fmt::Debug + 'static,
6515{
6516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
6517 match err {
6518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6521 source: err.into(),
6522 }),
6523 }
6524 }
6525}
6526impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
6527 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
6528 match err {
6529 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
6530 }
6531 }
6532}
6533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>> for Error
6534where
6535 R: Send + Sync + std::fmt::Debug + 'static,
6536{
6537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>) -> Self {
6538 match err {
6539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6542 source: err.into(),
6543 }),
6544 }
6545 }
6546}
6547impl From<crate::operation::delete_vpc::DeleteVpcError> for Error {
6548 fn from(err: crate::operation::delete_vpc::DeleteVpcError) -> Self {
6549 match err {
6550 crate::operation::delete_vpc::DeleteVpcError::Unhandled(inner) => Error::Unhandled(inner),
6551 }
6552 }
6553}
6554impl<R>
6555 From<
6556 ::aws_smithy_runtime_api::client::result::SdkError<
6557 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6558 R,
6559 >,
6560 > for Error
6561where
6562 R: Send + Sync + std::fmt::Debug + 'static,
6563{
6564 fn from(
6565 err: ::aws_smithy_runtime_api::client::result::SdkError<
6566 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6567 R,
6568 >,
6569 ) -> Self {
6570 match err {
6571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6574 source: err.into(),
6575 }),
6576 }
6577 }
6578}
6579impl From<crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError> for Error {
6580 fn from(err: crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError) -> Self {
6581 match err {
6582 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
6583 Error::Unhandled(inner)
6584 }
6585 }
6586 }
6587}
6588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError, R>>
6589 for Error
6590where
6591 R: Send + Sync + std::fmt::Debug + 'static,
6592{
6593 fn from(
6594 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError, R>,
6595 ) -> Self {
6596 match err {
6597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6600 source: err.into(),
6601 }),
6602 }
6603 }
6604}
6605impl From<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError> for Error {
6606 fn from(err: crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError) -> Self {
6607 match err {
6608 crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
6609 }
6610 }
6611}
6612impl<R>
6613 From<
6614 ::aws_smithy_runtime_api::client::result::SdkError<
6615 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6616 R,
6617 >,
6618 > for Error
6619where
6620 R: Send + Sync + std::fmt::Debug + 'static,
6621{
6622 fn from(
6623 err: ::aws_smithy_runtime_api::client::result::SdkError<
6624 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6625 R,
6626 >,
6627 ) -> Self {
6628 match err {
6629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6632 source: err.into(),
6633 }),
6634 }
6635 }
6636}
6637impl From<crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError> for Error {
6638 fn from(err: crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError) -> Self {
6639 match err {
6640 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
6641 Error::Unhandled(inner)
6642 }
6643 }
6644 }
6645}
6646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>> for Error
6647where
6648 R: Send + Sync + std::fmt::Debug + 'static,
6649{
6650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>) -> Self {
6651 match err {
6652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6655 source: err.into(),
6656 }),
6657 }
6658 }
6659}
6660impl From<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError> for Error {
6661 fn from(err: crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError) -> Self {
6662 match err {
6663 crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6664 }
6665 }
6666}
6667impl<R>
6668 From<
6669 ::aws_smithy_runtime_api::client::result::SdkError<
6670 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6671 R,
6672 >,
6673 > for Error
6674where
6675 R: Send + Sync + std::fmt::Debug + 'static,
6676{
6677 fn from(
6678 err: ::aws_smithy_runtime_api::client::result::SdkError<
6679 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6680 R,
6681 >,
6682 ) -> Self {
6683 match err {
6684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6687 source: err.into(),
6688 }),
6689 }
6690 }
6691}
6692impl From<crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError> for Error {
6693 fn from(err: crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError) -> Self {
6694 match err {
6695 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
6696 Error::Unhandled(inner)
6697 }
6698 }
6699 }
6700}
6701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>>
6702 for Error
6703where
6704 R: Send + Sync + std::fmt::Debug + 'static,
6705{
6706 fn from(
6707 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>,
6708 ) -> Self {
6709 match err {
6710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6713 source: err.into(),
6714 }),
6715 }
6716 }
6717}
6718impl From<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError> for Error {
6719 fn from(err: crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError) -> Self {
6720 match err {
6721 crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6722 }
6723 }
6724}
6725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError, R>> for Error
6726where
6727 R: Send + Sync + std::fmt::Debug + 'static,
6728{
6729 fn from(
6730 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError, R>,
6731 ) -> Self {
6732 match err {
6733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6736 source: err.into(),
6737 }),
6738 }
6739 }
6740}
6741impl From<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError> for Error {
6742 fn from(err: crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError) -> Self {
6743 match err {
6744 crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
6745 }
6746 }
6747}
6748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>> for Error
6749where
6750 R: Send + Sync + std::fmt::Debug + 'static,
6751{
6752 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>) -> Self {
6753 match err {
6754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6757 source: err.into(),
6758 }),
6759 }
6760 }
6761}
6762impl From<crate::operation::delete_vpn_connection::DeleteVpnConnectionError> for Error {
6763 fn from(err: crate::operation::delete_vpn_connection::DeleteVpnConnectionError) -> Self {
6764 match err {
6765 crate::operation::delete_vpn_connection::DeleteVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6766 }
6767 }
6768}
6769impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>>
6770 for Error
6771where
6772 R: Send + Sync + std::fmt::Debug + 'static,
6773{
6774 fn from(
6775 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>,
6776 ) -> Self {
6777 match err {
6778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6781 source: err.into(),
6782 }),
6783 }
6784 }
6785}
6786impl From<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError> for Error {
6787 fn from(err: crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError) -> Self {
6788 match err {
6789 crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
6790 }
6791 }
6792}
6793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>> for Error
6794where
6795 R: Send + Sync + std::fmt::Debug + 'static,
6796{
6797 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>) -> Self {
6798 match err {
6799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6802 source: err.into(),
6803 }),
6804 }
6805 }
6806}
6807impl From<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError> for Error {
6808 fn from(err: crate::operation::delete_vpn_gateway::DeleteVpnGatewayError) -> Self {
6809 match err {
6810 crate::operation::delete_vpn_gateway::DeleteVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
6811 }
6812 }
6813}
6814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
6815where
6816 R: Send + Sync + std::fmt::Debug + 'static,
6817{
6818 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
6819 match err {
6820 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6821 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6822 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6823 source: err.into(),
6824 }),
6825 }
6826 }
6827}
6828impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
6829 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
6830 match err {
6831 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
6832 }
6833 }
6834}
6835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>> for Error
6836where
6837 R: Send + Sync + std::fmt::Debug + 'static,
6838{
6839 fn from(
6840 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>,
6841 ) -> Self {
6842 match err {
6843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6846 source: err.into(),
6847 }),
6848 }
6849 }
6850}
6851impl From<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError> for Error {
6852 fn from(err: crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError) -> Self {
6853 match err {
6854 crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
6855 }
6856 }
6857}
6858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>>
6859 for Error
6860where
6861 R: Send + Sync + std::fmt::Debug + 'static,
6862{
6863 fn from(
6864 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>,
6865 ) -> Self {
6866 match err {
6867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6870 source: err.into(),
6871 }),
6872 }
6873 }
6874}
6875impl From<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError> for Error {
6876 fn from(err: crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError) -> Self {
6877 match err {
6878 crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6879 }
6880 }
6881}
6882impl<R>
6883 From<
6884 ::aws_smithy_runtime_api::client::result::SdkError<
6885 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6886 R,
6887 >,
6888 > for Error
6889where
6890 R: Send + Sync + std::fmt::Debug + 'static,
6891{
6892 fn from(
6893 err: ::aws_smithy_runtime_api::client::result::SdkError<
6894 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6895 R,
6896 >,
6897 ) -> Self {
6898 match err {
6899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6902 source: err.into(),
6903 }),
6904 }
6905 }
6906}
6907impl From<crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError> for Error {
6908 fn from(err: crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError) -> Self {
6909 match err {
6910 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6911 }
6912 }
6913}
6914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>> for Error
6915where
6916 R: Send + Sync + std::fmt::Debug + 'static,
6917{
6918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>) -> Self {
6919 match err {
6920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6923 source: err.into(),
6924 }),
6925 }
6926 }
6927}
6928impl From<crate::operation::deregister_image::DeregisterImageError> for Error {
6929 fn from(err: crate::operation::deregister_image::DeregisterImageError) -> Self {
6930 match err {
6931 crate::operation::deregister_image::DeregisterImageError::Unhandled(inner) => Error::Unhandled(inner),
6932 }
6933 }
6934}
6935impl<R>
6936 From<
6937 ::aws_smithy_runtime_api::client::result::SdkError<
6938 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6939 R,
6940 >,
6941 > for Error
6942where
6943 R: Send + Sync + std::fmt::Debug + 'static,
6944{
6945 fn from(
6946 err: ::aws_smithy_runtime_api::client::result::SdkError<
6947 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6948 R,
6949 >,
6950 ) -> Self {
6951 match err {
6952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6955 source: err.into(),
6956 }),
6957 }
6958 }
6959}
6960impl From<crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError> for Error {
6961 fn from(err: crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError) -> Self {
6962 match err {
6963 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError::Unhandled(
6964 inner,
6965 ) => Error::Unhandled(inner),
6966 }
6967 }
6968}
6969impl<R>
6970 From<
6971 ::aws_smithy_runtime_api::client::result::SdkError<
6972 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6973 R,
6974 >,
6975 > for Error
6976where
6977 R: Send + Sync + std::fmt::Debug + 'static,
6978{
6979 fn from(
6980 err: ::aws_smithy_runtime_api::client::result::SdkError<
6981 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6982 R,
6983 >,
6984 ) -> Self {
6985 match err {
6986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6989 source: err.into(),
6990 }),
6991 }
6992 }
6993}
6994impl From<crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError> for Error {
6995 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError) -> Self {
6996 match err {
6997 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError::Unhandled(
6998 inner,
6999 ) => Error::Unhandled(inner),
7000 }
7001 }
7002}
7003impl<R>
7004 From<
7005 ::aws_smithy_runtime_api::client::result::SdkError<
7006 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
7007 R,
7008 >,
7009 > for Error
7010where
7011 R: Send + Sync + std::fmt::Debug + 'static,
7012{
7013 fn from(
7014 err: ::aws_smithy_runtime_api::client::result::SdkError<
7015 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
7016 R,
7017 >,
7018 ) -> Self {
7019 match err {
7020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7023 source: err.into(),
7024 }),
7025 }
7026 }
7027}
7028impl From<crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError> for Error {
7029 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError) -> Self {
7030 match err {
7031 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError::Unhandled(
7032 inner,
7033 ) => Error::Unhandled(inner),
7034 }
7035 }
7036}
7037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
7038 for Error
7039where
7040 R: Send + Sync + std::fmt::Debug + 'static,
7041{
7042 fn from(
7043 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
7044 ) -> Self {
7045 match err {
7046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7049 source: err.into(),
7050 }),
7051 }
7052 }
7053}
7054impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
7055 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
7056 match err {
7057 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
7058 }
7059 }
7060}
7061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>> for Error
7062where
7063 R: Send + Sync + std::fmt::Debug + 'static,
7064{
7065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>) -> Self {
7066 match err {
7067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7070 source: err.into(),
7071 }),
7072 }
7073 }
7074}
7075impl From<crate::operation::describe_addresses::DescribeAddressesError> for Error {
7076 fn from(err: crate::operation::describe_addresses::DescribeAddressesError) -> Self {
7077 match err {
7078 crate::operation::describe_addresses::DescribeAddressesError::Unhandled(inner) => Error::Unhandled(inner),
7079 }
7080 }
7081}
7082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>>
7083 for Error
7084where
7085 R: Send + Sync + std::fmt::Debug + 'static,
7086{
7087 fn from(
7088 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>,
7089 ) -> Self {
7090 match err {
7091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7094 source: err.into(),
7095 }),
7096 }
7097 }
7098}
7099impl From<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError> for Error {
7100 fn from(err: crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError) -> Self {
7101 match err {
7102 crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7103 }
7104 }
7105}
7106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>>
7107 for Error
7108where
7109 R: Send + Sync + std::fmt::Debug + 'static,
7110{
7111 fn from(
7112 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>,
7113 ) -> Self {
7114 match err {
7115 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7116 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7117 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7118 source: err.into(),
7119 }),
7120 }
7121 }
7122}
7123impl From<crate::operation::describe_address_transfers::DescribeAddressTransfersError> for Error {
7124 fn from(err: crate::operation::describe_address_transfers::DescribeAddressTransfersError) -> Self {
7125 match err {
7126 crate::operation::describe_address_transfers::DescribeAddressTransfersError::Unhandled(inner) => Error::Unhandled(inner),
7127 }
7128 }
7129}
7130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>>
7131 for Error
7132where
7133 R: Send + Sync + std::fmt::Debug + 'static,
7134{
7135 fn from(
7136 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>,
7137 ) -> Self {
7138 match err {
7139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7142 source: err.into(),
7143 }),
7144 }
7145 }
7146}
7147impl From<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError> for Error {
7148 fn from(err: crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError) -> Self {
7149 match err {
7150 crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7151 }
7152 }
7153}
7154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>>
7155 for Error
7156where
7157 R: Send + Sync + std::fmt::Debug + 'static,
7158{
7159 fn from(
7160 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>,
7161 ) -> Self {
7162 match err {
7163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7166 source: err.into(),
7167 }),
7168 }
7169 }
7170}
7171impl From<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError> for Error {
7172 fn from(err: crate::operation::describe_availability_zones::DescribeAvailabilityZonesError) -> Self {
7173 match err {
7174 crate::operation::describe_availability_zones::DescribeAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
7175 }
7176 }
7177}
7178impl<R>
7179 From<
7180 ::aws_smithy_runtime_api::client::result::SdkError<
7181 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7182 R,
7183 >,
7184 > for Error
7185where
7186 R: Send + Sync + std::fmt::Debug + 'static,
7187{
7188 fn from(
7189 err: ::aws_smithy_runtime_api::client::result::SdkError<
7190 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7191 R,
7192 >,
7193 ) -> Self {
7194 match err {
7195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7198 source: err.into(),
7199 }),
7200 }
7201 }
7202}
7203impl From<crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError> for Error {
7204 fn from(
7205 err: crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7206 ) -> Self {
7207 match err {
7208 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
7209 }
7210 }
7211}
7212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>> for Error
7213where
7214 R: Send + Sync + std::fmt::Debug + 'static,
7215{
7216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>) -> Self {
7217 match err {
7218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7221 source: err.into(),
7222 }),
7223 }
7224 }
7225}
7226impl From<crate::operation::describe_bundle_tasks::DescribeBundleTasksError> for Error {
7227 fn from(err: crate::operation::describe_bundle_tasks::DescribeBundleTasksError) -> Self {
7228 match err {
7229 crate::operation::describe_bundle_tasks::DescribeBundleTasksError::Unhandled(inner) => Error::Unhandled(inner),
7230 }
7231 }
7232}
7233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>> for Error
7234where
7235 R: Send + Sync + std::fmt::Debug + 'static,
7236{
7237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>) -> Self {
7238 match err {
7239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7242 source: err.into(),
7243 }),
7244 }
7245 }
7246}
7247impl From<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError> for Error {
7248 fn from(err: crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError) -> Self {
7249 match err {
7250 crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
7251 }
7252 }
7253}
7254impl<R>
7255 From<
7256 ::aws_smithy_runtime_api::client::result::SdkError<
7257 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
7258 R,
7259 >,
7260 > for Error
7261where
7262 R: Send + Sync + std::fmt::Debug + 'static,
7263{
7264 fn from(
7265 err: ::aws_smithy_runtime_api::client::result::SdkError<
7266 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
7267 R,
7268 >,
7269 ) -> Self {
7270 match err {
7271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7274 source: err.into(),
7275 }),
7276 }
7277 }
7278}
7279impl From<crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError> for Error {
7280 fn from(err: crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError) -> Self {
7281 match err {
7282 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError::Unhandled(inner) => {
7283 Error::Unhandled(inner)
7284 }
7285 }
7286 }
7287}
7288impl<R>
7289 From<
7290 ::aws_smithy_runtime_api::client::result::SdkError<
7291 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
7292 R,
7293 >,
7294 > for Error
7295where
7296 R: Send + Sync + std::fmt::Debug + 'static,
7297{
7298 fn from(
7299 err: ::aws_smithy_runtime_api::client::result::SdkError<
7300 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
7301 R,
7302 >,
7303 ) -> Self {
7304 match err {
7305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7308 source: err.into(),
7309 }),
7310 }
7311 }
7312}
7313impl From<crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError> for Error {
7314 fn from(err: crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError) -> Self {
7315 match err {
7316 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError::Unhandled(inner) => {
7317 Error::Unhandled(inner)
7318 }
7319 }
7320 }
7321}
7322impl<R>
7323 From<
7324 ::aws_smithy_runtime_api::client::result::SdkError<
7325 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
7326 R,
7327 >,
7328 > for Error
7329where
7330 R: Send + Sync + std::fmt::Debug + 'static,
7331{
7332 fn from(
7333 err: ::aws_smithy_runtime_api::client::result::SdkError<
7334 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
7335 R,
7336 >,
7337 ) -> Self {
7338 match err {
7339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7342 source: err.into(),
7343 }),
7344 }
7345 }
7346}
7347impl From<crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError> for Error {
7348 fn from(err: crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError) -> Self {
7349 match err {
7350 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7351 }
7352 }
7353}
7354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>> for Error
7355where
7356 R: Send + Sync + std::fmt::Debug + 'static,
7357{
7358 fn from(
7359 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>,
7360 ) -> Self {
7361 match err {
7362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7365 source: err.into(),
7366 }),
7367 }
7368 }
7369}
7370impl From<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError> for Error {
7371 fn from(err: crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError) -> Self {
7372 match err {
7373 crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError::Unhandled(inner) => Error::Unhandled(inner),
7374 }
7375 }
7376}
7377impl<R>
7378 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError, R>>
7379 for Error
7380where
7381 R: Send + Sync + std::fmt::Debug + 'static,
7382{
7383 fn from(
7384 err: ::aws_smithy_runtime_api::client::result::SdkError<
7385 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError,
7386 R,
7387 >,
7388 ) -> Self {
7389 match err {
7390 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7391 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7392 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7393 source: err.into(),
7394 }),
7395 }
7396 }
7397}
7398impl From<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError> for Error {
7399 fn from(err: crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError) -> Self {
7400 match err {
7401 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError::Unhandled(inner) => Error::Unhandled(inner),
7402 }
7403 }
7404}
7405impl<R>
7406 From<
7407 ::aws_smithy_runtime_api::client::result::SdkError<
7408 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
7409 R,
7410 >,
7411 > for Error
7412where
7413 R: Send + Sync + std::fmt::Debug + 'static,
7414{
7415 fn from(
7416 err: ::aws_smithy_runtime_api::client::result::SdkError<
7417 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
7418 R,
7419 >,
7420 ) -> Self {
7421 match err {
7422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7425 source: err.into(),
7426 }),
7427 }
7428 }
7429}
7430impl From<crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError> for Error {
7431 fn from(err: crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError) -> Self {
7432 match err {
7433 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError::Unhandled(inner) => {
7434 Error::Unhandled(inner)
7435 }
7436 }
7437 }
7438}
7439impl<R>
7440 From<
7441 ::aws_smithy_runtime_api::client::result::SdkError<
7442 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7443 R,
7444 >,
7445 > for Error
7446where
7447 R: Send + Sync + std::fmt::Debug + 'static,
7448{
7449 fn from(
7450 err: ::aws_smithy_runtime_api::client::result::SdkError<
7451 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7452 R,
7453 >,
7454 ) -> Self {
7455 match err {
7456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7459 source: err.into(),
7460 }),
7461 }
7462 }
7463}
7464impl From<crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError> for Error {
7465 fn from(err: crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError) -> Self {
7466 match err {
7467 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError::Unhandled(inner) => {
7468 Error::Unhandled(inner)
7469 }
7470 }
7471 }
7472}
7473impl<R>
7474 From<
7475 ::aws_smithy_runtime_api::client::result::SdkError<
7476 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7477 R,
7478 >,
7479 > for Error
7480where
7481 R: Send + Sync + std::fmt::Debug + 'static,
7482{
7483 fn from(
7484 err: ::aws_smithy_runtime_api::client::result::SdkError<
7485 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7486 R,
7487 >,
7488 ) -> Self {
7489 match err {
7490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7493 source: err.into(),
7494 }),
7495 }
7496 }
7497}
7498impl From<crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError> for Error {
7499 fn from(err: crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError) -> Self {
7500 match err {
7501 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError::Unhandled(inner) => {
7502 Error::Unhandled(inner)
7503 }
7504 }
7505 }
7506}
7507impl<R>
7508 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError, R>>
7509 for Error
7510where
7511 R: Send + Sync + std::fmt::Debug + 'static,
7512{
7513 fn from(
7514 err: ::aws_smithy_runtime_api::client::result::SdkError<
7515 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError,
7516 R,
7517 >,
7518 ) -> Self {
7519 match err {
7520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7523 source: err.into(),
7524 }),
7525 }
7526 }
7527}
7528impl From<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError> for Error {
7529 fn from(err: crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError) -> Self {
7530 match err {
7531 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7532 }
7533 }
7534}
7535impl<R>
7536 From<
7537 ::aws_smithy_runtime_api::client::result::SdkError<
7538 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7539 R,
7540 >,
7541 > for Error
7542where
7543 R: Send + Sync + std::fmt::Debug + 'static,
7544{
7545 fn from(
7546 err: ::aws_smithy_runtime_api::client::result::SdkError<
7547 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7548 R,
7549 >,
7550 ) -> Self {
7551 match err {
7552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7555 source: err.into(),
7556 }),
7557 }
7558 }
7559}
7560impl From<crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError> for Error {
7561 fn from(err: crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError) -> Self {
7562 match err {
7563 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError::Unhandled(inner) => {
7564 Error::Unhandled(inner)
7565 }
7566 }
7567 }
7568}
7569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>>
7570 for Error
7571where
7572 R: Send + Sync + std::fmt::Debug + 'static,
7573{
7574 fn from(
7575 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>,
7576 ) -> Self {
7577 match err {
7578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7581 source: err.into(),
7582 }),
7583 }
7584 }
7585}
7586impl From<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError> for Error {
7587 fn from(err: crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError) -> Self {
7588 match err {
7589 crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7590 }
7591 }
7592}
7593impl<R>
7594 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError, R>>
7595 for Error
7596where
7597 R: Send + Sync + std::fmt::Debug + 'static,
7598{
7599 fn from(
7600 err: ::aws_smithy_runtime_api::client::result::SdkError<
7601 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError,
7602 R,
7603 >,
7604 ) -> Self {
7605 match err {
7606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7609 source: err.into(),
7610 }),
7611 }
7612 }
7613}
7614impl From<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError> for Error {
7615 fn from(err: crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError) -> Self {
7616 match err {
7617 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7618 }
7619 }
7620}
7621impl<R>
7622 From<
7623 ::aws_smithy_runtime_api::client::result::SdkError<
7624 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7625 R,
7626 >,
7627 > for Error
7628where
7629 R: Send + Sync + std::fmt::Debug + 'static,
7630{
7631 fn from(
7632 err: ::aws_smithy_runtime_api::client::result::SdkError<
7633 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7634 R,
7635 >,
7636 ) -> Self {
7637 match err {
7638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7641 source: err.into(),
7642 }),
7643 }
7644 }
7645}
7646impl From<crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError> for Error {
7647 fn from(err: crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError) -> Self {
7648 match err {
7649 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError::Unhandled(inner) => {
7650 Error::Unhandled(inner)
7651 }
7652 }
7653 }
7654}
7655impl<R>
7656 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError, R>>
7657 for Error
7658where
7659 R: Send + Sync + std::fmt::Debug + 'static,
7660{
7661 fn from(
7662 err: ::aws_smithy_runtime_api::client::result::SdkError<
7663 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError,
7664 R,
7665 >,
7666 ) -> Self {
7667 match err {
7668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7671 source: err.into(),
7672 }),
7673 }
7674 }
7675}
7676impl From<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError> for Error {
7677 fn from(err: crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError) -> Self {
7678 match err {
7679 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
7680 }
7681 }
7682}
7683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>>
7684 for Error
7685where
7686 R: Send + Sync + std::fmt::Debug + 'static,
7687{
7688 fn from(
7689 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>,
7690 ) -> Self {
7691 match err {
7692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7695 source: err.into(),
7696 }),
7697 }
7698 }
7699}
7700impl From<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError> for Error {
7701 fn from(err: crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError) -> Self {
7702 match err {
7703 crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7704 }
7705 }
7706}
7707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>>
7708 for Error
7709where
7710 R: Send + Sync + std::fmt::Debug + 'static,
7711{
7712 fn from(
7713 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>,
7714 ) -> Self {
7715 match err {
7716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7719 source: err.into(),
7720 }),
7721 }
7722 }
7723}
7724impl From<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError> for Error {
7725 fn from(err: crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError) -> Self {
7726 match err {
7727 crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError::Unhandled(inner) => Error::Unhandled(inner),
7728 }
7729 }
7730}
7731impl<R>
7732 From<
7733 ::aws_smithy_runtime_api::client::result::SdkError<
7734 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7735 R,
7736 >,
7737 > for Error
7738where
7739 R: Send + Sync + std::fmt::Debug + 'static,
7740{
7741 fn from(
7742 err: ::aws_smithy_runtime_api::client::result::SdkError<
7743 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7744 R,
7745 >,
7746 ) -> Self {
7747 match err {
7748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7751 source: err.into(),
7752 }),
7753 }
7754 }
7755}
7756impl From<crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError> for Error {
7757 fn from(err: crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError) -> Self {
7758 match err {
7759 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError::Unhandled(inner) => Error::Unhandled(inner),
7760 }
7761 }
7762}
7763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>> for Error
7764where
7765 R: Send + Sync + std::fmt::Debug + 'static,
7766{
7767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>) -> Self {
7768 match err {
7769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7772 source: err.into(),
7773 }),
7774 }
7775 }
7776}
7777impl From<crate::operation::describe_coip_pools::DescribeCoipPoolsError> for Error {
7778 fn from(err: crate::operation::describe_coip_pools::DescribeCoipPoolsError) -> Self {
7779 match err {
7780 crate::operation::describe_coip_pools::DescribeCoipPoolsError::Unhandled(inner) => Error::Unhandled(inner),
7781 }
7782 }
7783}
7784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>>
7785 for Error
7786where
7787 R: Send + Sync + std::fmt::Debug + 'static,
7788{
7789 fn from(
7790 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>,
7791 ) -> Self {
7792 match err {
7793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7796 source: err.into(),
7797 }),
7798 }
7799 }
7800}
7801impl From<crate::operation::describe_conversion_tasks::DescribeConversionTasksError> for Error {
7802 fn from(err: crate::operation::describe_conversion_tasks::DescribeConversionTasksError) -> Self {
7803 match err {
7804 crate::operation::describe_conversion_tasks::DescribeConversionTasksError::Unhandled(inner) => Error::Unhandled(inner),
7805 }
7806 }
7807}
7808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>>
7809 for Error
7810where
7811 R: Send + Sync + std::fmt::Debug + 'static,
7812{
7813 fn from(
7814 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>,
7815 ) -> Self {
7816 match err {
7817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7820 source: err.into(),
7821 }),
7822 }
7823 }
7824}
7825impl From<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError> for Error {
7826 fn from(err: crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError) -> Self {
7827 match err {
7828 crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7829 }
7830 }
7831}
7832impl<R>
7833 From<
7834 ::aws_smithy_runtime_api::client::result::SdkError<
7835 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7836 R,
7837 >,
7838 > for Error
7839where
7840 R: Send + Sync + std::fmt::Debug + 'static,
7841{
7842 fn from(
7843 err: ::aws_smithy_runtime_api::client::result::SdkError<
7844 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7845 R,
7846 >,
7847 ) -> Self {
7848 match err {
7849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7852 source: err.into(),
7853 }),
7854 }
7855 }
7856}
7857impl From<crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError> for Error {
7858 fn from(err: crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError) -> Self {
7859 match err {
7860 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError::Unhandled(inner) => {
7861 Error::Unhandled(inner)
7862 }
7863 }
7864 }
7865}
7866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>> for Error
7867where
7868 R: Send + Sync + std::fmt::Debug + 'static,
7869{
7870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>) -> Self {
7871 match err {
7872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7875 source: err.into(),
7876 }),
7877 }
7878 }
7879}
7880impl From<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError> for Error {
7881 fn from(err: crate::operation::describe_dhcp_options::DescribeDhcpOptionsError) -> Self {
7882 match err {
7883 crate::operation::describe_dhcp_options::DescribeDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7884 }
7885 }
7886}
7887impl<R>
7888 From<
7889 ::aws_smithy_runtime_api::client::result::SdkError<
7890 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7891 R,
7892 >,
7893 > for Error
7894where
7895 R: Send + Sync + std::fmt::Debug + 'static,
7896{
7897 fn from(
7898 err: ::aws_smithy_runtime_api::client::result::SdkError<
7899 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7900 R,
7901 >,
7902 ) -> Self {
7903 match err {
7904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7907 source: err.into(),
7908 }),
7909 }
7910 }
7911}
7912impl From<crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError> for Error {
7913 fn from(err: crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError) -> Self {
7914 match err {
7915 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError::Unhandled(inner) => {
7916 Error::Unhandled(inner)
7917 }
7918 }
7919 }
7920}
7921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>> for Error
7922where
7923 R: Send + Sync + std::fmt::Debug + 'static,
7924{
7925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>) -> Self {
7926 match err {
7927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7930 source: err.into(),
7931 }),
7932 }
7933 }
7934}
7935impl From<crate::operation::describe_elastic_gpus::DescribeElasticGpusError> for Error {
7936 fn from(err: crate::operation::describe_elastic_gpus::DescribeElasticGpusError) -> Self {
7937 match err {
7938 crate::operation::describe_elastic_gpus::DescribeElasticGpusError::Unhandled(inner) => Error::Unhandled(inner),
7939 }
7940 }
7941}
7942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>>
7943 for Error
7944where
7945 R: Send + Sync + std::fmt::Debug + 'static,
7946{
7947 fn from(
7948 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>,
7949 ) -> Self {
7950 match err {
7951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7954 source: err.into(),
7955 }),
7956 }
7957 }
7958}
7959impl From<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError> for Error {
7960 fn from(err: crate::operation::describe_export_image_tasks::DescribeExportImageTasksError) -> Self {
7961 match err {
7962 crate::operation::describe_export_image_tasks::DescribeExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7963 }
7964 }
7965}
7966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
7967where
7968 R: Send + Sync + std::fmt::Debug + 'static,
7969{
7970 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
7971 match err {
7972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7975 source: err.into(),
7976 }),
7977 }
7978 }
7979}
7980impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
7981 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
7982 match err {
7983 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
7984 }
7985 }
7986}
7987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>>
7988 for Error
7989where
7990 R: Send + Sync + std::fmt::Debug + 'static,
7991{
7992 fn from(
7993 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>,
7994 ) -> Self {
7995 match err {
7996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7999 source: err.into(),
8000 }),
8001 }
8002 }
8003}
8004impl From<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError> for Error {
8005 fn from(err: crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError) -> Self {
8006 match err {
8007 crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError::Unhandled(inner) => Error::Unhandled(inner),
8008 }
8009 }
8010}
8011impl<R>
8012 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError, R>>
8013 for Error
8014where
8015 R: Send + Sync + std::fmt::Debug + 'static,
8016{
8017 fn from(
8018 err: ::aws_smithy_runtime_api::client::result::SdkError<
8019 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError,
8020 R,
8021 >,
8022 ) -> Self {
8023 match err {
8024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8027 source: err.into(),
8028 }),
8029 }
8030 }
8031}
8032impl From<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError> for Error {
8033 fn from(err: crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError) -> Self {
8034 match err {
8035 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
8036 }
8037 }
8038}
8039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>> for Error
8040where
8041 R: Send + Sync + std::fmt::Debug + 'static,
8042{
8043 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>) -> Self {
8044 match err {
8045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8048 source: err.into(),
8049 }),
8050 }
8051 }
8052}
8053impl From<crate::operation::describe_fleet_history::DescribeFleetHistoryError> for Error {
8054 fn from(err: crate::operation::describe_fleet_history::DescribeFleetHistoryError) -> Self {
8055 match err {
8056 crate::operation::describe_fleet_history::DescribeFleetHistoryError::Unhandled(inner) => Error::Unhandled(inner),
8057 }
8058 }
8059}
8060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>> for Error
8061where
8062 R: Send + Sync + std::fmt::Debug + 'static,
8063{
8064 fn from(
8065 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>,
8066 ) -> Self {
8067 match err {
8068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8071 source: err.into(),
8072 }),
8073 }
8074 }
8075}
8076impl From<crate::operation::describe_fleet_instances::DescribeFleetInstancesError> for Error {
8077 fn from(err: crate::operation::describe_fleet_instances::DescribeFleetInstancesError) -> Self {
8078 match err {
8079 crate::operation::describe_fleet_instances::DescribeFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8080 }
8081 }
8082}
8083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
8084where
8085 R: Send + Sync + std::fmt::Debug + 'static,
8086{
8087 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
8088 match err {
8089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8092 source: err.into(),
8093 }),
8094 }
8095 }
8096}
8097impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
8098 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
8099 match err {
8100 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
8101 }
8102 }
8103}
8104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>> for Error
8105where
8106 R: Send + Sync + std::fmt::Debug + 'static,
8107{
8108 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>) -> Self {
8109 match err {
8110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8113 source: err.into(),
8114 }),
8115 }
8116 }
8117}
8118impl From<crate::operation::describe_flow_logs::DescribeFlowLogsError> for Error {
8119 fn from(err: crate::operation::describe_flow_logs::DescribeFlowLogsError) -> Self {
8120 match err {
8121 crate::operation::describe_flow_logs::DescribeFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
8122 }
8123 }
8124}
8125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>>
8126 for Error
8127where
8128 R: Send + Sync + std::fmt::Debug + 'static,
8129{
8130 fn from(
8131 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>,
8132 ) -> Self {
8133 match err {
8134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8137 source: err.into(),
8138 }),
8139 }
8140 }
8141}
8142impl From<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError> for Error {
8143 fn from(err: crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError) -> Self {
8144 match err {
8145 crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8146 }
8147 }
8148}
8149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>> for Error
8150where
8151 R: Send + Sync + std::fmt::Debug + 'static,
8152{
8153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>) -> Self {
8154 match err {
8155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8158 source: err.into(),
8159 }),
8160 }
8161 }
8162}
8163impl From<crate::operation::describe_fpga_images::DescribeFpgaImagesError> for Error {
8164 fn from(err: crate::operation::describe_fpga_images::DescribeFpgaImagesError) -> Self {
8165 match err {
8166 crate::operation::describe_fpga_images::DescribeFpgaImagesError::Unhandled(inner) => Error::Unhandled(inner),
8167 }
8168 }
8169}
8170impl<R>
8171 From<
8172 ::aws_smithy_runtime_api::client::result::SdkError<
8173 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
8174 R,
8175 >,
8176 > for Error
8177where
8178 R: Send + Sync + std::fmt::Debug + 'static,
8179{
8180 fn from(
8181 err: ::aws_smithy_runtime_api::client::result::SdkError<
8182 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
8183 R,
8184 >,
8185 ) -> Self {
8186 match err {
8187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8190 source: err.into(),
8191 }),
8192 }
8193 }
8194}
8195impl From<crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError> for Error {
8196 fn from(err: crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError) -> Self {
8197 match err {
8198 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8199 }
8200 }
8201}
8202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>>
8203 for Error
8204where
8205 R: Send + Sync + std::fmt::Debug + 'static,
8206{
8207 fn from(
8208 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>,
8209 ) -> Self {
8210 match err {
8211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8214 source: err.into(),
8215 }),
8216 }
8217 }
8218}
8219impl From<crate::operation::describe_host_reservations::DescribeHostReservationsError> for Error {
8220 fn from(err: crate::operation::describe_host_reservations::DescribeHostReservationsError) -> Self {
8221 match err {
8222 crate::operation::describe_host_reservations::DescribeHostReservationsError::Unhandled(inner) => Error::Unhandled(inner),
8223 }
8224 }
8225}
8226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>> for Error
8227where
8228 R: Send + Sync + std::fmt::Debug + 'static,
8229{
8230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>) -> Self {
8231 match err {
8232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8235 source: err.into(),
8236 }),
8237 }
8238 }
8239}
8240impl From<crate::operation::describe_hosts::DescribeHostsError> for Error {
8241 fn from(err: crate::operation::describe_hosts::DescribeHostsError) -> Self {
8242 match err {
8243 crate::operation::describe_hosts::DescribeHostsError::Unhandled(inner) => Error::Unhandled(inner),
8244 }
8245 }
8246}
8247impl<R>
8248 From<
8249 ::aws_smithy_runtime_api::client::result::SdkError<
8250 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
8251 R,
8252 >,
8253 > for Error
8254where
8255 R: Send + Sync + std::fmt::Debug + 'static,
8256{
8257 fn from(
8258 err: ::aws_smithy_runtime_api::client::result::SdkError<
8259 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
8260 R,
8261 >,
8262 ) -> Self {
8263 match err {
8264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8267 source: err.into(),
8268 }),
8269 }
8270 }
8271}
8272impl From<crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError> for Error {
8273 fn from(err: crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError) -> Self {
8274 match err {
8275 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError::Unhandled(inner) => {
8276 Error::Unhandled(inner)
8277 }
8278 }
8279 }
8280}
8281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>>
8282 for Error
8283where
8284 R: Send + Sync + std::fmt::Debug + 'static,
8285{
8286 fn from(
8287 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>,
8288 ) -> Self {
8289 match err {
8290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8293 source: err.into(),
8294 }),
8295 }
8296 }
8297}
8298impl From<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError> for Error {
8299 fn from(err: crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError) -> Self {
8300 match err {
8301 crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
8302 }
8303 }
8304}
8305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>> for Error
8306where
8307 R: Send + Sync + std::fmt::Debug + 'static,
8308{
8309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>) -> Self {
8310 match err {
8311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8314 source: err.into(),
8315 }),
8316 }
8317 }
8318}
8319impl From<crate::operation::describe_id_format::DescribeIdFormatError> for Error {
8320 fn from(err: crate::operation::describe_id_format::DescribeIdFormatError) -> Self {
8321 match err {
8322 crate::operation::describe_id_format::DescribeIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
8323 }
8324 }
8325}
8326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>> for Error
8327where
8328 R: Send + Sync + std::fmt::Debug + 'static,
8329{
8330 fn from(
8331 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>,
8332 ) -> Self {
8333 match err {
8334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8337 source: err.into(),
8338 }),
8339 }
8340 }
8341}
8342impl From<crate::operation::describe_image_attribute::DescribeImageAttributeError> for Error {
8343 fn from(err: crate::operation::describe_image_attribute::DescribeImageAttributeError) -> Self {
8344 match err {
8345 crate::operation::describe_image_attribute::DescribeImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8346 }
8347 }
8348}
8349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>>
8350 for Error
8351where
8352 R: Send + Sync + std::fmt::Debug + 'static,
8353{
8354 fn from(
8355 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>,
8356 ) -> Self {
8357 match err {
8358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8361 source: err.into(),
8362 }),
8363 }
8364 }
8365}
8366impl From<crate::operation::describe_image_references::DescribeImageReferencesError> for Error {
8367 fn from(err: crate::operation::describe_image_references::DescribeImageReferencesError) -> Self {
8368 match err {
8369 crate::operation::describe_image_references::DescribeImageReferencesError::Unhandled(inner) => Error::Unhandled(inner),
8370 }
8371 }
8372}
8373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
8374where
8375 R: Send + Sync + std::fmt::Debug + 'static,
8376{
8377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
8378 match err {
8379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8382 source: err.into(),
8383 }),
8384 }
8385 }
8386}
8387impl From<crate::operation::describe_images::DescribeImagesError> for Error {
8388 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
8389 match err {
8390 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
8391 }
8392 }
8393}
8394impl<R>
8395 From<
8396 ::aws_smithy_runtime_api::client::result::SdkError<
8397 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
8398 R,
8399 >,
8400 > for Error
8401where
8402 R: Send + Sync + std::fmt::Debug + 'static,
8403{
8404 fn from(
8405 err: ::aws_smithy_runtime_api::client::result::SdkError<
8406 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
8407 R,
8408 >,
8409 ) -> Self {
8410 match err {
8411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8414 source: err.into(),
8415 }),
8416 }
8417 }
8418}
8419impl From<crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError> for Error {
8420 fn from(err: crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError) -> Self {
8421 match err {
8422 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError::Unhandled(inner) => Error::Unhandled(inner),
8423 }
8424 }
8425}
8426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>>
8427 for Error
8428where
8429 R: Send + Sync + std::fmt::Debug + 'static,
8430{
8431 fn from(
8432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>,
8433 ) -> Self {
8434 match err {
8435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8438 source: err.into(),
8439 }),
8440 }
8441 }
8442}
8443impl From<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError> for Error {
8444 fn from(err: crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError) -> Self {
8445 match err {
8446 crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError::Unhandled(inner) => Error::Unhandled(inner),
8447 }
8448 }
8449}
8450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>>
8451 for Error
8452where
8453 R: Send + Sync + std::fmt::Debug + 'static,
8454{
8455 fn from(
8456 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>,
8457 ) -> Self {
8458 match err {
8459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8462 source: err.into(),
8463 }),
8464 }
8465 }
8466}
8467impl From<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError> for Error {
8468 fn from(err: crate::operation::describe_import_image_tasks::DescribeImportImageTasksError) -> Self {
8469 match err {
8470 crate::operation::describe_import_image_tasks::DescribeImportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
8471 }
8472 }
8473}
8474impl<R>
8475 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError, R>>
8476 for Error
8477where
8478 R: Send + Sync + std::fmt::Debug + 'static,
8479{
8480 fn from(
8481 err: ::aws_smithy_runtime_api::client::result::SdkError<
8482 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError,
8483 R,
8484 >,
8485 ) -> Self {
8486 match err {
8487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8490 source: err.into(),
8491 }),
8492 }
8493 }
8494}
8495impl From<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError> for Error {
8496 fn from(err: crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError) -> Self {
8497 match err {
8498 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError::Unhandled(inner) => Error::Unhandled(inner),
8499 }
8500 }
8501}
8502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
8503 for Error
8504where
8505 R: Send + Sync + std::fmt::Debug + 'static,
8506{
8507 fn from(
8508 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
8509 ) -> Self {
8510 match err {
8511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8514 source: err.into(),
8515 }),
8516 }
8517 }
8518}
8519impl From<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError> for Error {
8520 fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
8521 match err {
8522 crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8523 }
8524 }
8525}
8526impl<R>
8527 From<
8528 ::aws_smithy_runtime_api::client::result::SdkError<
8529 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8530 R,
8531 >,
8532 > for Error
8533where
8534 R: Send + Sync + std::fmt::Debug + 'static,
8535{
8536 fn from(
8537 err: ::aws_smithy_runtime_api::client::result::SdkError<
8538 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8539 R,
8540 >,
8541 ) -> Self {
8542 match err {
8543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8546 source: err.into(),
8547 }),
8548 }
8549 }
8550}
8551impl From<crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError> for Error {
8552 fn from(err: crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError) -> Self {
8553 match err {
8554 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
8555 }
8556 }
8557}
8558impl<R>
8559 From<
8560 ::aws_smithy_runtime_api::client::result::SdkError<
8561 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8562 R,
8563 >,
8564 > for Error
8565where
8566 R: Send + Sync + std::fmt::Debug + 'static,
8567{
8568 fn from(
8569 err: ::aws_smithy_runtime_api::client::result::SdkError<
8570 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8571 R,
8572 >,
8573 ) -> Self {
8574 match err {
8575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8578 source: err.into(),
8579 }),
8580 }
8581 }
8582}
8583impl From<crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError> for Error {
8584 fn from(err: crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError) -> Self {
8585 match err {
8586 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError::Unhandled(inner) => {
8587 Error::Unhandled(inner)
8588 }
8589 }
8590 }
8591}
8592impl<R>
8593 From<
8594 ::aws_smithy_runtime_api::client::result::SdkError<
8595 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8596 R,
8597 >,
8598 > for Error
8599where
8600 R: Send + Sync + std::fmt::Debug + 'static,
8601{
8602 fn from(
8603 err: ::aws_smithy_runtime_api::client::result::SdkError<
8604 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8605 R,
8606 >,
8607 ) -> Self {
8608 match err {
8609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8612 source: err.into(),
8613 }),
8614 }
8615 }
8616}
8617impl From<crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError> for Error {
8618 fn from(err: crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError) -> Self {
8619 match err {
8620 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError::Unhandled(inner) => {
8621 Error::Unhandled(inner)
8622 }
8623 }
8624 }
8625}
8626impl<R>
8627 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError, R>>
8628 for Error
8629where
8630 R: Send + Sync + std::fmt::Debug + 'static,
8631{
8632 fn from(
8633 err: ::aws_smithy_runtime_api::client::result::SdkError<
8634 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError,
8635 R,
8636 >,
8637 ) -> Self {
8638 match err {
8639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8642 source: err.into(),
8643 }),
8644 }
8645 }
8646}
8647impl From<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError> for Error {
8648 fn from(err: crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError) -> Self {
8649 match err {
8650 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError::Unhandled(inner) => Error::Unhandled(inner),
8651 }
8652 }
8653}
8654impl<R>
8655 From<
8656 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError, R>,
8657 > for Error
8658where
8659 R: Send + Sync + std::fmt::Debug + 'static,
8660{
8661 fn from(
8662 err: ::aws_smithy_runtime_api::client::result::SdkError<
8663 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError,
8664 R,
8665 >,
8666 ) -> Self {
8667 match err {
8668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8671 source: err.into(),
8672 }),
8673 }
8674 }
8675}
8676impl From<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError> for Error {
8677 fn from(err: crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError) -> Self {
8678 match err {
8679 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8680 }
8681 }
8682}
8683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>> for Error
8684where
8685 R: Send + Sync + std::fmt::Debug + 'static,
8686{
8687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>) -> Self {
8688 match err {
8689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8692 source: err.into(),
8693 }),
8694 }
8695 }
8696}
8697impl From<crate::operation::describe_instances::DescribeInstancesError> for Error {
8698 fn from(err: crate::operation::describe_instances::DescribeInstancesError) -> Self {
8699 match err {
8700 crate::operation::describe_instances::DescribeInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8701 }
8702 }
8703}
8704impl<R>
8705 From<
8706 ::aws_smithy_runtime_api::client::result::SdkError<
8707 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8708 R,
8709 >,
8710 > for Error
8711where
8712 R: Send + Sync + std::fmt::Debug + 'static,
8713{
8714 fn from(
8715 err: ::aws_smithy_runtime_api::client::result::SdkError<
8716 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8717 R,
8718 >,
8719 ) -> Self {
8720 match err {
8721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8724 source: err.into(),
8725 }),
8726 }
8727 }
8728}
8729impl From<crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError> for Error {
8730 fn from(err: crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError) -> Self {
8731 match err {
8732 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError::Unhandled(inner) => {
8733 Error::Unhandled(inner)
8734 }
8735 }
8736 }
8737}
8738impl<R>
8739 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError, R>>
8740 for Error
8741where
8742 R: Send + Sync + std::fmt::Debug + 'static,
8743{
8744 fn from(
8745 err: ::aws_smithy_runtime_api::client::result::SdkError<
8746 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError,
8747 R,
8748 >,
8749 ) -> Self {
8750 match err {
8751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8754 source: err.into(),
8755 }),
8756 }
8757 }
8758}
8759impl From<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError> for Error {
8760 fn from(err: crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError) -> Self {
8761 match err {
8762 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError::Unhandled(inner) => Error::Unhandled(inner),
8763 }
8764 }
8765}
8766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>> for Error
8767where
8768 R: Send + Sync + std::fmt::Debug + 'static,
8769{
8770 fn from(
8771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>,
8772 ) -> Self {
8773 match err {
8774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8777 source: err.into(),
8778 }),
8779 }
8780 }
8781}
8782impl From<crate::operation::describe_instance_status::DescribeInstanceStatusError> for Error {
8783 fn from(err: crate::operation::describe_instance_status::DescribeInstanceStatusError) -> Self {
8784 match err {
8785 crate::operation::describe_instance_status::DescribeInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
8786 }
8787 }
8788}
8789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>>
8790 for Error
8791where
8792 R: Send + Sync + std::fmt::Debug + 'static,
8793{
8794 fn from(
8795 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>,
8796 ) -> Self {
8797 match err {
8798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8801 source: err.into(),
8802 }),
8803 }
8804 }
8805}
8806impl From<crate::operation::describe_instance_topology::DescribeInstanceTopologyError> for Error {
8807 fn from(err: crate::operation::describe_instance_topology::DescribeInstanceTopologyError) -> Self {
8808 match err {
8809 crate::operation::describe_instance_topology::DescribeInstanceTopologyError::Unhandled(inner) => Error::Unhandled(inner),
8810 }
8811 }
8812}
8813impl<R>
8814 From<
8815 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError, R>,
8816 > for Error
8817where
8818 R: Send + Sync + std::fmt::Debug + 'static,
8819{
8820 fn from(
8821 err: ::aws_smithy_runtime_api::client::result::SdkError<
8822 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError,
8823 R,
8824 >,
8825 ) -> Self {
8826 match err {
8827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8830 source: err.into(),
8831 }),
8832 }
8833 }
8834}
8835impl From<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError> for Error {
8836 fn from(err: crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError) -> Self {
8837 match err {
8838 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8839 }
8840 }
8841}
8842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>> for Error
8843where
8844 R: Send + Sync + std::fmt::Debug + 'static,
8845{
8846 fn from(
8847 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>,
8848 ) -> Self {
8849 match err {
8850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8853 source: err.into(),
8854 }),
8855 }
8856 }
8857}
8858impl From<crate::operation::describe_instance_types::DescribeInstanceTypesError> for Error {
8859 fn from(err: crate::operation::describe_instance_types::DescribeInstanceTypesError) -> Self {
8860 match err {
8861 crate::operation::describe_instance_types::DescribeInstanceTypesError::Unhandled(inner) => Error::Unhandled(inner),
8862 }
8863 }
8864}
8865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>>
8866 for Error
8867where
8868 R: Send + Sync + std::fmt::Debug + 'static,
8869{
8870 fn from(
8871 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>,
8872 ) -> Self {
8873 match err {
8874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8877 source: err.into(),
8878 }),
8879 }
8880 }
8881}
8882impl From<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError> for Error {
8883 fn from(err: crate::operation::describe_internet_gateways::DescribeInternetGatewaysError) -> Self {
8884 match err {
8885 crate::operation::describe_internet_gateways::DescribeInternetGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8886 }
8887 }
8888}
8889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>> for Error
8890where
8891 R: Send + Sync + std::fmt::Debug + 'static,
8892{
8893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>) -> Self {
8894 match err {
8895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8898 source: err.into(),
8899 }),
8900 }
8901 }
8902}
8903impl From<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError> for Error {
8904 fn from(err: crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError) -> Self {
8905 match err {
8906 crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
8907 }
8908 }
8909}
8910impl<R>
8911 From<
8912 ::aws_smithy_runtime_api::client::result::SdkError<
8913 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8914 R,
8915 >,
8916 > for Error
8917where
8918 R: Send + Sync + std::fmt::Debug + 'static,
8919{
8920 fn from(
8921 err: ::aws_smithy_runtime_api::client::result::SdkError<
8922 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8923 R,
8924 >,
8925 ) -> Self {
8926 match err {
8927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8930 source: err.into(),
8931 }),
8932 }
8933 }
8934}
8935impl From<crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError> for Error {
8936 fn from(err: crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError) -> Self {
8937 match err {
8938 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError::Unhandled(
8939 inner,
8940 ) => Error::Unhandled(inner),
8941 }
8942 }
8943}
8944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError, R>> for Error
8945where
8946 R: Send + Sync + std::fmt::Debug + 'static,
8947{
8948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError, R>) -> Self {
8949 match err {
8950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8953 source: err.into(),
8954 }),
8955 }
8956 }
8957}
8958impl From<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError> for Error {
8959 fn from(err: crate::operation::describe_ipam_policies::DescribeIpamPoliciesError) -> Self {
8960 match err {
8961 crate::operation::describe_ipam_policies::DescribeIpamPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
8962 }
8963 }
8964}
8965impl<R>
8966 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pool_allocations::DescribeIpamPoolAllocationsError, R>>
8967 for Error
8968where
8969 R: Send + Sync + std::fmt::Debug + 'static,
8970{
8971 fn from(
8972 err: ::aws_smithy_runtime_api::client::result::SdkError<
8973 crate::operation::describe_ipam_pool_allocations::DescribeIpamPoolAllocationsError,
8974 R,
8975 >,
8976 ) -> Self {
8977 match err {
8978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8981 source: err.into(),
8982 }),
8983 }
8984 }
8985}
8986impl From<crate::operation::describe_ipam_pool_allocations::DescribeIpamPoolAllocationsError> for Error {
8987 fn from(err: crate::operation::describe_ipam_pool_allocations::DescribeIpamPoolAllocationsError) -> Self {
8988 match err {
8989 crate::operation::describe_ipam_pool_allocations::DescribeIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
8990 }
8991 }
8992}
8993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8994where
8995 R: Send + Sync + std::fmt::Debug + 'static,
8996{
8997 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8998 match err {
8999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9002 source: err.into(),
9003 }),
9004 }
9005 }
9006}
9007impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
9008 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
9009 match err {
9010 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
9011 }
9012 }
9013}
9014impl<R>
9015 From<
9016 ::aws_smithy_runtime_api::client::result::SdkError<
9017 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
9018 R,
9019 >,
9020 > for Error
9021where
9022 R: Send + Sync + std::fmt::Debug + 'static,
9023{
9024 fn from(
9025 err: ::aws_smithy_runtime_api::client::result::SdkError<
9026 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
9027 R,
9028 >,
9029 ) -> Self {
9030 match err {
9031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9034 source: err.into(),
9035 }),
9036 }
9037 }
9038}
9039impl From<crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError> for Error {
9040 fn from(err: crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError) -> Self {
9041 match err {
9042 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError::Unhandled(inner) => Error::Unhandled(inner),
9043 }
9044 }
9045}
9046impl<R>
9047 From<
9048 ::aws_smithy_runtime_api::client::result::SdkError<
9049 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
9050 R,
9051 >,
9052 > for Error
9053where
9054 R: Send + Sync + std::fmt::Debug + 'static,
9055{
9056 fn from(
9057 err: ::aws_smithy_runtime_api::client::result::SdkError<
9058 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
9059 R,
9060 >,
9061 ) -> Self {
9062 match err {
9063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9066 source: err.into(),
9067 }),
9068 }
9069 }
9070}
9071impl From<crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError> for Error {
9072 fn from(err: crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError) -> Self {
9073 match err {
9074 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError::Unhandled(inner) => {
9075 Error::Unhandled(inner)
9076 }
9077 }
9078 }
9079}
9080impl<R>
9081 From<
9082 ::aws_smithy_runtime_api::client::result::SdkError<
9083 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
9084 R,
9085 >,
9086 > for Error
9087where
9088 R: Send + Sync + std::fmt::Debug + 'static,
9089{
9090 fn from(
9091 err: ::aws_smithy_runtime_api::client::result::SdkError<
9092 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
9093 R,
9094 >,
9095 ) -> Self {
9096 match err {
9097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9100 source: err.into(),
9101 }),
9102 }
9103 }
9104}
9105impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
9106 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
9107 match err {
9108 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
9109 }
9110 }
9111}
9112impl<R>
9113 From<
9114 ::aws_smithy_runtime_api::client::result::SdkError<
9115 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
9116 R,
9117 >,
9118 > for Error
9119where
9120 R: Send + Sync + std::fmt::Debug + 'static,
9121{
9122 fn from(
9123 err: ::aws_smithy_runtime_api::client::result::SdkError<
9124 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
9125 R,
9126 >,
9127 ) -> Self {
9128 match err {
9129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9132 source: err.into(),
9133 }),
9134 }
9135 }
9136}
9137impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
9138 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
9139 match err {
9140 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
9141 Error::Unhandled(inner)
9142 }
9143 }
9144 }
9145}
9146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
9147where
9148 R: Send + Sync + std::fmt::Debug + 'static,
9149{
9150 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
9151 match err {
9152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9155 source: err.into(),
9156 }),
9157 }
9158 }
9159}
9160impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
9161 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
9162 match err {
9163 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
9164 }
9165 }
9166}
9167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
9168where
9169 R: Send + Sync + std::fmt::Debug + 'static,
9170{
9171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
9172 match err {
9173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9176 source: err.into(),
9177 }),
9178 }
9179 }
9180}
9181impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
9182 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
9183 match err {
9184 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
9185 }
9186 }
9187}
9188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
9189where
9190 R: Send + Sync + std::fmt::Debug + 'static,
9191{
9192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
9193 match err {
9194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9197 source: err.into(),
9198 }),
9199 }
9200 }
9201}
9202impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
9203 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
9204 match err {
9205 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9206 }
9207 }
9208}
9209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
9210where
9211 R: Send + Sync + std::fmt::Debug + 'static,
9212{
9213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> Self {
9214 match err {
9215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9218 source: err.into(),
9219 }),
9220 }
9221 }
9222}
9223impl From<crate::operation::describe_key_pairs::DescribeKeyPairsError> for Error {
9224 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
9225 match err {
9226 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
9227 }
9228 }
9229}
9230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
9231 for Error
9232where
9233 R: Send + Sync + std::fmt::Debug + 'static,
9234{
9235 fn from(
9236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
9237 ) -> Self {
9238 match err {
9239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9242 source: err.into(),
9243 }),
9244 }
9245 }
9246}
9247impl From<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError> for Error {
9248 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
9249 match err {
9250 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
9251 }
9252 }
9253}
9254impl<R>
9255 From<
9256 ::aws_smithy_runtime_api::client::result::SdkError<
9257 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9258 R,
9259 >,
9260 > for Error
9261where
9262 R: Send + Sync + std::fmt::Debug + 'static,
9263{
9264 fn from(
9265 err: ::aws_smithy_runtime_api::client::result::SdkError<
9266 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9267 R,
9268 >,
9269 ) -> Self {
9270 match err {
9271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9274 source: err.into(),
9275 }),
9276 }
9277 }
9278}
9279impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
9280 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
9281 match err {
9282 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
9283 }
9284 }
9285}
9286impl<R>
9287 From<
9288 ::aws_smithy_runtime_api::client::result::SdkError<
9289 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9290 R,
9291 >,
9292 > for Error
9293where
9294 R: Send + Sync + std::fmt::Debug + 'static,
9295{
9296 fn from(
9297 err: ::aws_smithy_runtime_api::client::result::SdkError<
9298 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9299 R,
9300 >,
9301 ) -> Self {
9302 match err {
9303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9306 source: err.into(),
9307 }),
9308 }
9309 }
9310}
9311impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
9312 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
9313 match err {
9314 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9315 }
9316 }
9317}
9318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
9319 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
9320 match err {
9321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9322 _ => Error::Unhandled(
9323 crate::error::sealed_unhandled::Unhandled {
9324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9325 source: err.into(),
9326 }
9327 ),
9328 }
9329 }
9330}
9331impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
9332 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
9333 match err {
9334 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
9335 }
9336 }
9337}
9338impl<R>
9339 From<
9340 ::aws_smithy_runtime_api::client::result::SdkError<
9341 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9342 R,
9343 >,
9344 > for Error
9345where
9346 R: Send + Sync + std::fmt::Debug + 'static,
9347{
9348 fn from(
9349 err: ::aws_smithy_runtime_api::client::result::SdkError<
9350 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9351 R,
9352 >,
9353 ) -> Self {
9354 match err {
9355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9358 source: err.into(),
9359 }),
9360 }
9361 }
9362}
9363impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
9364 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
9365 match err {
9366 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
9367 inner,
9368 ) => Error::Unhandled(inner),
9369 }
9370 }
9371}
9372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
9373where
9374 R: Send + Sync + std::fmt::Debug + 'static,
9375{
9376 fn from(
9377 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
9378 ) -> Self {
9379 match err {
9380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9383 source: err.into(),
9384 }),
9385 }
9386 }
9387}
9388impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
9389 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
9390 match err {
9391 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9392 }
9393 }
9394}
9395impl<R>
9396 From<
9397 ::aws_smithy_runtime_api::client::result::SdkError<
9398 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9399 R,
9400 >,
9401 > for Error
9402where
9403 R: Send + Sync + std::fmt::Debug + 'static,
9404{
9405 fn from(
9406 err: ::aws_smithy_runtime_api::client::result::SdkError<
9407 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9408 R,
9409 >,
9410 ) -> Self {
9411 match err {
9412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9415 source: err.into(),
9416 }),
9417 }
9418 }
9419}
9420impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
9421 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
9422 match err {
9423 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
9424 Error::Unhandled(inner)
9425 }
9426 }
9427 }
9428}
9429impl<R>
9430 From<
9431 ::aws_smithy_runtime_api::client::result::SdkError<
9432 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9433 R,
9434 >,
9435 > for Error
9436where
9437 R: Send + Sync + std::fmt::Debug + 'static,
9438{
9439 fn from(
9440 err: ::aws_smithy_runtime_api::client::result::SdkError<
9441 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9442 R,
9443 >,
9444 ) -> Self {
9445 match err {
9446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9449 source: err.into(),
9450 }),
9451 }
9452 }
9453}
9454impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
9455 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
9456 match err {
9457 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
9458 Error::Unhandled(inner)
9459 }
9460 }
9461 }
9462}
9463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
9464 for Error
9465where
9466 R: Send + Sync + std::fmt::Debug + 'static,
9467{
9468 fn from(
9469 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
9470 ) -> Self {
9471 match err {
9472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9475 source: err.into(),
9476 }),
9477 }
9478 }
9479}
9480impl From<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError> for Error {
9481 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
9482 match err {
9483 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9484 }
9485 }
9486}
9487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
9488where
9489 R: Send + Sync + std::fmt::Debug + 'static,
9490{
9491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
9492 match err {
9493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9496 source: err.into(),
9497 }),
9498 }
9499 }
9500}
9501impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
9502 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
9503 match err {
9504 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
9505 }
9506 }
9507}
9508impl<R>
9509 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
9510 for Error
9511where
9512 R: Send + Sync + std::fmt::Debug + 'static,
9513{
9514 fn from(
9515 err: ::aws_smithy_runtime_api::client::result::SdkError<
9516 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
9517 R,
9518 >,
9519 ) -> Self {
9520 match err {
9521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9524 source: err.into(),
9525 }),
9526 }
9527 }
9528}
9529impl From<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError> for Error {
9530 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
9531 match err {
9532 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
9533 }
9534 }
9535}
9536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
9537 for Error
9538where
9539 R: Send + Sync + std::fmt::Debug + 'static,
9540{
9541 fn from(
9542 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
9543 ) -> Self {
9544 match err {
9545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9548 source: err.into(),
9549 }),
9550 }
9551 }
9552}
9553impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
9554 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
9555 match err {
9556 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9557 }
9558 }
9559}
9560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
9561 for Error
9562where
9563 R: Send + Sync + std::fmt::Debug + 'static,
9564{
9565 fn from(
9566 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
9567 ) -> Self {
9568 match err {
9569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9572 source: err.into(),
9573 }),
9574 }
9575 }
9576}
9577impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
9578 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
9579 match err {
9580 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
9581 }
9582 }
9583}
9584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
9585where
9586 R: Send + Sync + std::fmt::Debug + 'static,
9587{
9588 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
9589 match err {
9590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9593 source: err.into(),
9594 }),
9595 }
9596 }
9597}
9598impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
9599 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
9600 match err {
9601 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9602 }
9603 }
9604}
9605impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
9606where
9607 R: Send + Sync + std::fmt::Debug + 'static,
9608{
9609 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
9610 match err {
9611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9614 source: err.into(),
9615 }),
9616 }
9617 }
9618}
9619impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
9620 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
9621 match err {
9622 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
9623 }
9624 }
9625}
9626impl<R>
9627 From<
9628 ::aws_smithy_runtime_api::client::result::SdkError<
9629 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9630 R,
9631 >,
9632 > for Error
9633where
9634 R: Send + Sync + std::fmt::Debug + 'static,
9635{
9636 fn from(
9637 err: ::aws_smithy_runtime_api::client::result::SdkError<
9638 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9639 R,
9640 >,
9641 ) -> Self {
9642 match err {
9643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9646 source: err.into(),
9647 }),
9648 }
9649 }
9650}
9651impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
9652 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
9653 match err {
9654 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
9655 Error::Unhandled(inner)
9656 }
9657 }
9658 }
9659}
9660impl<R>
9661 From<
9662 ::aws_smithy_runtime_api::client::result::SdkError<
9663 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9664 R,
9665 >,
9666 > for Error
9667where
9668 R: Send + Sync + std::fmt::Debug + 'static,
9669{
9670 fn from(
9671 err: ::aws_smithy_runtime_api::client::result::SdkError<
9672 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9673 R,
9674 >,
9675 ) -> Self {
9676 match err {
9677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9680 source: err.into(),
9681 }),
9682 }
9683 }
9684}
9685impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
9686 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
9687 match err {
9688 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
9689 Error::Unhandled(inner)
9690 }
9691 }
9692 }
9693}
9694impl<R>
9695 From<
9696 ::aws_smithy_runtime_api::client::result::SdkError<
9697 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9698 R,
9699 >,
9700 > for Error
9701where
9702 R: Send + Sync + std::fmt::Debug + 'static,
9703{
9704 fn from(
9705 err: ::aws_smithy_runtime_api::client::result::SdkError<
9706 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9707 R,
9708 >,
9709 ) -> Self {
9710 match err {
9711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9714 source: err.into(),
9715 }),
9716 }
9717 }
9718}
9719impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
9720 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
9721 match err {
9722 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
9723 }
9724 }
9725}
9726impl<R>
9727 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
9728 for Error
9729where
9730 R: Send + Sync + std::fmt::Debug + 'static,
9731{
9732 fn from(
9733 err: ::aws_smithy_runtime_api::client::result::SdkError<
9734 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError,
9735 R,
9736 >,
9737 ) -> Self {
9738 match err {
9739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9742 source: err.into(),
9743 }),
9744 }
9745 }
9746}
9747impl From<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError> for Error {
9748 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
9749 match err {
9750 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
9751 }
9752 }
9753}
9754impl<R>
9755 From<
9756 ::aws_smithy_runtime_api::client::result::SdkError<
9757 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9758 R,
9759 >,
9760 > for Error
9761where
9762 R: Send + Sync + std::fmt::Debug + 'static,
9763{
9764 fn from(
9765 err: ::aws_smithy_runtime_api::client::result::SdkError<
9766 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9767 R,
9768 >,
9769 ) -> Self {
9770 match err {
9771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9774 source: err.into(),
9775 }),
9776 }
9777 }
9778}
9779impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
9780 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
9781 match err {
9782 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
9783 Error::Unhandled(inner)
9784 }
9785 }
9786 }
9787}
9788impl<R>
9789 From<
9790 ::aws_smithy_runtime_api::client::result::SdkError<
9791 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9792 R,
9793 >,
9794 > for Error
9795where
9796 R: Send + Sync + std::fmt::Debug + 'static,
9797{
9798 fn from(
9799 err: ::aws_smithy_runtime_api::client::result::SdkError<
9800 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9801 R,
9802 >,
9803 ) -> Self {
9804 match err {
9805 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9806 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9807 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9808 source: err.into(),
9809 }),
9810 }
9811 }
9812}
9813impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9814 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9815 match err {
9816 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9817 Error::Unhandled(inner)
9818 }
9819 }
9820 }
9821}
9822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9823 for Error
9824where
9825 R: Send + Sync + std::fmt::Debug + 'static,
9826{
9827 fn from(
9828 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9829 ) -> Self {
9830 match err {
9831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9834 source: err.into(),
9835 }),
9836 }
9837 }
9838}
9839impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9840 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9841 match err {
9842 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9843 }
9844 }
9845}
9846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9847where
9848 R: Send + Sync + std::fmt::Debug + 'static,
9849{
9850 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9851 match err {
9852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9855 source: err.into(),
9856 }),
9857 }
9858 }
9859}
9860impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9861 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9862 match err {
9863 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9864 }
9865 }
9866}
9867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9868 for Error
9869where
9870 R: Send + Sync + std::fmt::Debug + 'static,
9871{
9872 fn from(
9873 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9874 ) -> Self {
9875 match err {
9876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9879 source: err.into(),
9880 }),
9881 }
9882 }
9883}
9884impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9885 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9886 match err {
9887 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9888 }
9889 }
9890}
9891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9892where
9893 R: Send + Sync + std::fmt::Debug + 'static,
9894{
9895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9896 match err {
9897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9900 source: err.into(),
9901 }),
9902 }
9903 }
9904}
9905impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9906 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9907 match err {
9908 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9909 }
9910 }
9911}
9912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9913 for Error
9914where
9915 R: Send + Sync + std::fmt::Debug + 'static,
9916{
9917 fn from(
9918 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9919 ) -> Self {
9920 match err {
9921 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9922 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9923 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9924 source: err.into(),
9925 }),
9926 }
9927 }
9928}
9929impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9930 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9931 match err {
9932 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9933 }
9934 }
9935}
9936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9937 for Error
9938where
9939 R: Send + Sync + std::fmt::Debug + 'static,
9940{
9941 fn from(
9942 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9943 ) -> Self {
9944 match err {
9945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9948 source: err.into(),
9949 }),
9950 }
9951 }
9952}
9953impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9954 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9955 match err {
9956 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9957 }
9958 }
9959}
9960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9961where
9962 R: Send + Sync + std::fmt::Debug + 'static,
9963{
9964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9965 match err {
9966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9969 source: err.into(),
9970 }),
9971 }
9972 }
9973}
9974impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9975 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9976 match err {
9977 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9978 }
9979 }
9980}
9981impl<R>
9982 From<
9983 ::aws_smithy_runtime_api::client::result::SdkError<
9984 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9985 R,
9986 >,
9987 > for Error
9988where
9989 R: Send + Sync + std::fmt::Debug + 'static,
9990{
9991 fn from(
9992 err: ::aws_smithy_runtime_api::client::result::SdkError<
9993 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9994 R,
9995 >,
9996 ) -> Self {
9997 match err {
9998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10001 source: err.into(),
10002 }),
10003 }
10004 }
10005}
10006impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
10007 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
10008 match err {
10009 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
10010 }
10011 }
10012}
10013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
10014 for Error
10015where
10016 R: Send + Sync + std::fmt::Debug + 'static,
10017{
10018 fn from(
10019 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
10020 ) -> Self {
10021 match err {
10022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10025 source: err.into(),
10026 }),
10027 }
10028 }
10029}
10030impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
10031 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
10032 match err {
10033 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10034 }
10035 }
10036}
10037impl<R>
10038 From<
10039 ::aws_smithy_runtime_api::client::result::SdkError<
10040 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
10041 R,
10042 >,
10043 > for Error
10044where
10045 R: Send + Sync + std::fmt::Debug + 'static,
10046{
10047 fn from(
10048 err: ::aws_smithy_runtime_api::client::result::SdkError<
10049 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
10050 R,
10051 >,
10052 ) -> Self {
10053 match err {
10054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10057 source: err.into(),
10058 }),
10059 }
10060 }
10061}
10062impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
10063 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
10064 match err {
10065 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
10066 Error::Unhandled(inner)
10067 }
10068 }
10069 }
10070}
10071impl<R>
10072 From<
10073 ::aws_smithy_runtime_api::client::result::SdkError<
10074 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
10075 R,
10076 >,
10077 > for Error
10078where
10079 R: Send + Sync + std::fmt::Debug + 'static,
10080{
10081 fn from(
10082 err: ::aws_smithy_runtime_api::client::result::SdkError<
10083 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
10084 R,
10085 >,
10086 ) -> Self {
10087 match err {
10088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10091 source: err.into(),
10092 }),
10093 }
10094 }
10095}
10096impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
10097 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
10098 match err {
10099 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
10100 Error::Unhandled(inner)
10101 }
10102 }
10103 }
10104}
10105impl<R>
10106 From<
10107 ::aws_smithy_runtime_api::client::result::SdkError<
10108 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
10109 R,
10110 >,
10111 > for Error
10112where
10113 R: Send + Sync + std::fmt::Debug + 'static,
10114{
10115 fn from(
10116 err: ::aws_smithy_runtime_api::client::result::SdkError<
10117 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
10118 R,
10119 >,
10120 ) -> Self {
10121 match err {
10122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10125 source: err.into(),
10126 }),
10127 }
10128 }
10129}
10130impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
10131 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
10132 match err {
10133 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
10134 Error::Unhandled(inner)
10135 }
10136 }
10137 }
10138}
10139impl<R>
10140 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
10141 for Error
10142where
10143 R: Send + Sync + std::fmt::Debug + 'static,
10144{
10145 fn from(
10146 err: ::aws_smithy_runtime_api::client::result::SdkError<
10147 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError,
10148 R,
10149 >,
10150 ) -> Self {
10151 match err {
10152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10155 source: err.into(),
10156 }),
10157 }
10158 }
10159}
10160impl From<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
10161 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
10162 match err {
10163 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10164 }
10165 }
10166}
10167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
10168 for Error
10169where
10170 R: Send + Sync + std::fmt::Debug + 'static,
10171{
10172 fn from(
10173 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
10174 ) -> Self {
10175 match err {
10176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10179 source: err.into(),
10180 }),
10181 }
10182 }
10183}
10184impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
10185 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
10186 match err {
10187 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
10188 }
10189 }
10190}
10191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
10192where
10193 R: Send + Sync + std::fmt::Debug + 'static,
10194{
10195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
10196 match err {
10197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10200 source: err.into(),
10201 }),
10202 }
10203 }
10204}
10205impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
10206 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
10207 match err {
10208 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
10209 }
10210 }
10211}
10212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
10213where
10214 R: Send + Sync + std::fmt::Debug + 'static,
10215{
10216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
10217 match err {
10218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10221 source: err.into(),
10222 }),
10223 }
10224 }
10225}
10226impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
10227 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
10228 match err {
10229 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
10230 }
10231 }
10232}
10233impl<R>
10234 From<
10235 ::aws_smithy_runtime_api::client::result::SdkError<
10236 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10237 R,
10238 >,
10239 > for Error
10240where
10241 R: Send + Sync + std::fmt::Debug + 'static,
10242{
10243 fn from(
10244 err: ::aws_smithy_runtime_api::client::result::SdkError<
10245 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10246 R,
10247 >,
10248 ) -> Self {
10249 match err {
10250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10253 source: err.into(),
10254 }),
10255 }
10256 }
10257}
10258impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
10259 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
10260 match err {
10261 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
10262 Error::Unhandled(inner)
10263 }
10264 }
10265 }
10266}
10267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
10268 for Error
10269where
10270 R: Send + Sync + std::fmt::Debug + 'static,
10271{
10272 fn from(
10273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
10274 ) -> Self {
10275 match err {
10276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10279 source: err.into(),
10280 }),
10281 }
10282 }
10283}
10284impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
10285 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
10286 match err {
10287 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10288 }
10289 }
10290}
10291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError, R>>
10292 for Error
10293where
10294 R: Send + Sync + std::fmt::Debug + 'static,
10295{
10296 fn from(
10297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError, R>,
10298 ) -> Self {
10299 match err {
10300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10303 source: err.into(),
10304 }),
10305 }
10306 }
10307}
10308impl From<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError> for Error {
10309 fn from(err: crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError) -> Self {
10310 match err {
10311 crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
10312 }
10313 }
10314}
10315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError, R>>
10316 for Error
10317where
10318 R: Send + Sync + std::fmt::Debug + 'static,
10319{
10320 fn from(
10321 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError, R>,
10322 ) -> Self {
10323 match err {
10324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10327 source: err.into(),
10328 }),
10329 }
10330 }
10331}
10332impl From<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError> for Error {
10333 fn from(err: crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError) -> Self {
10334 match err {
10335 crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError::Unhandled(inner) => Error::Unhandled(inner),
10336 }
10337 }
10338}
10339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError, R>>
10340 for Error
10341where
10342 R: Send + Sync + std::fmt::Debug + 'static,
10343{
10344 fn from(
10345 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError, R>,
10346 ) -> Self {
10347 match err {
10348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10351 source: err.into(),
10352 }),
10353 }
10354 }
10355}
10356impl From<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError> for Error {
10357 fn from(err: crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError) -> Self {
10358 match err {
10359 crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10360 }
10361 }
10362}
10363impl<R>
10364 From<
10365 ::aws_smithy_runtime_api::client::result::SdkError<
10366 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10367 R,
10368 >,
10369 > for Error
10370where
10371 R: Send + Sync + std::fmt::Debug + 'static,
10372{
10373 fn from(
10374 err: ::aws_smithy_runtime_api::client::result::SdkError<
10375 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10376 R,
10377 >,
10378 ) -> Self {
10379 match err {
10380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10383 source: err.into(),
10384 }),
10385 }
10386 }
10387}
10388impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
10389 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
10390 match err {
10391 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
10392 }
10393 }
10394}
10395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
10396 for Error
10397where
10398 R: Send + Sync + std::fmt::Debug + 'static,
10399{
10400 fn from(
10401 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
10402 ) -> Self {
10403 match err {
10404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10407 source: err.into(),
10408 }),
10409 }
10410 }
10411}
10412impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
10413 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
10414 match err {
10415 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
10416 }
10417 }
10418}
10419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
10420where
10421 R: Send + Sync + std::fmt::Debug + 'static,
10422{
10423 fn from(
10424 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
10425 ) -> Self {
10426 match err {
10427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10430 source: err.into(),
10431 }),
10432 }
10433 }
10434}
10435impl From<crate::operation::describe_security_groups::DescribeSecurityGroupsError> for Error {
10436 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
10437 match err {
10438 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10439 }
10440 }
10441}
10442impl<R>
10443 From<
10444 ::aws_smithy_runtime_api::client::result::SdkError<
10445 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10446 R,
10447 >,
10448 > for Error
10449where
10450 R: Send + Sync + std::fmt::Debug + 'static,
10451{
10452 fn from(
10453 err: ::aws_smithy_runtime_api::client::result::SdkError<
10454 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10455 R,
10456 >,
10457 ) -> Self {
10458 match err {
10459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10462 source: err.into(),
10463 }),
10464 }
10465 }
10466}
10467impl From<crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
10468 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
10469 match err {
10470 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
10471 Error::Unhandled(inner)
10472 }
10473 }
10474 }
10475}
10476impl<R>
10477 From<
10478 ::aws_smithy_runtime_api::client::result::SdkError<
10479 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10480 R,
10481 >,
10482 > for Error
10483where
10484 R: Send + Sync + std::fmt::Debug + 'static,
10485{
10486 fn from(
10487 err: ::aws_smithy_runtime_api::client::result::SdkError<
10488 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10489 R,
10490 >,
10491 ) -> Self {
10492 match err {
10493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10496 source: err.into(),
10497 }),
10498 }
10499 }
10500}
10501impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
10502 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
10503 match err {
10504 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
10505 Error::Unhandled(inner)
10506 }
10507 }
10508 }
10509}
10510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
10511 for Error
10512where
10513 R: Send + Sync + std::fmt::Debug + 'static,
10514{
10515 fn from(
10516 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
10517 ) -> Self {
10518 match err {
10519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10522 source: err.into(),
10523 }),
10524 }
10525 }
10526}
10527impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
10528 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
10529 match err {
10530 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10531 }
10532 }
10533}
10534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
10535where
10536 R: Send + Sync + std::fmt::Debug + 'static,
10537{
10538 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
10539 match err {
10540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10543 source: err.into(),
10544 }),
10545 }
10546 }
10547}
10548impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
10549 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
10550 match err {
10551 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
10552 }
10553 }
10554}
10555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
10556 for Error
10557where
10558 R: Send + Sync + std::fmt::Debug + 'static,
10559{
10560 fn from(
10561 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
10562 ) -> Self {
10563 match err {
10564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10567 source: err.into(),
10568 }),
10569 }
10570 }
10571}
10572impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
10573 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
10574 match err {
10575 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
10576 }
10577 }
10578}
10579impl<R>
10580 From<
10581 ::aws_smithy_runtime_api::client::result::SdkError<
10582 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10583 R,
10584 >,
10585 > for Error
10586where
10587 R: Send + Sync + std::fmt::Debug + 'static,
10588{
10589 fn from(
10590 err: ::aws_smithy_runtime_api::client::result::SdkError<
10591 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10592 R,
10593 >,
10594 ) -> Self {
10595 match err {
10596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10599 source: err.into(),
10600 }),
10601 }
10602 }
10603}
10604impl From<crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
10605 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
10606 match err {
10607 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
10608 }
10609 }
10610}
10611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
10612 for Error
10613where
10614 R: Send + Sync + std::fmt::Debug + 'static,
10615{
10616 fn from(
10617 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
10618 ) -> Self {
10619 match err {
10620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10623 source: err.into(),
10624 }),
10625 }
10626 }
10627}
10628impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
10629 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
10630 match err {
10631 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10632 }
10633 }
10634}
10635impl<R>
10636 From<
10637 ::aws_smithy_runtime_api::client::result::SdkError<
10638 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10639 R,
10640 >,
10641 > for Error
10642where
10643 R: Send + Sync + std::fmt::Debug + 'static,
10644{
10645 fn from(
10646 err: ::aws_smithy_runtime_api::client::result::SdkError<
10647 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10648 R,
10649 >,
10650 ) -> Self {
10651 match err {
10652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10655 source: err.into(),
10656 }),
10657 }
10658 }
10659}
10660impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
10661 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
10662 match err {
10663 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10664 }
10665 }
10666}
10667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
10668 for Error
10669where
10670 R: Send + Sync + std::fmt::Debug + 'static,
10671{
10672 fn from(
10673 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
10674 ) -> Self {
10675 match err {
10676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10679 source: err.into(),
10680 }),
10681 }
10682 }
10683}
10684impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
10685 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
10686 match err {
10687 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10688 }
10689 }
10690}
10691impl<R>
10692 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
10693 for Error
10694where
10695 R: Send + Sync + std::fmt::Debug + 'static,
10696{
10697 fn from(
10698 err: ::aws_smithy_runtime_api::client::result::SdkError<
10699 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
10700 R,
10701 >,
10702 ) -> Self {
10703 match err {
10704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10707 source: err.into(),
10708 }),
10709 }
10710 }
10711}
10712impl From<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError> for Error {
10713 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
10714 match err {
10715 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10716 }
10717 }
10718}
10719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
10720 for Error
10721where
10722 R: Send + Sync + std::fmt::Debug + 'static,
10723{
10724 fn from(
10725 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
10726 ) -> Self {
10727 match err {
10728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10731 source: err.into(),
10732 }),
10733 }
10734 }
10735}
10736impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
10737 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
10738 match err {
10739 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10740 }
10741 }
10742}
10743impl<R>
10744 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
10745 for Error
10746where
10747 R: Send + Sync + std::fmt::Debug + 'static,
10748{
10749 fn from(
10750 err: ::aws_smithy_runtime_api::client::result::SdkError<
10751 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
10752 R,
10753 >,
10754 ) -> Self {
10755 match err {
10756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10759 source: err.into(),
10760 }),
10761 }
10762 }
10763}
10764impl From<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
10765 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
10766 match err {
10767 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10768 }
10769 }
10770}
10771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
10772 for Error
10773where
10774 R: Send + Sync + std::fmt::Debug + 'static,
10775{
10776 fn from(
10777 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
10778 ) -> Self {
10779 match err {
10780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10783 source: err.into(),
10784 }),
10785 }
10786 }
10787}
10788impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
10789 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
10790 match err {
10791 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
10792 }
10793 }
10794}
10795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
10796where
10797 R: Send + Sync + std::fmt::Debug + 'static,
10798{
10799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
10800 match err {
10801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10804 source: err.into(),
10805 }),
10806 }
10807 }
10808}
10809impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
10810 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
10811 match err {
10812 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10813 }
10814 }
10815}
10816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
10817where
10818 R: Send + Sync + std::fmt::Debug + 'static,
10819{
10820 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
10821 match err {
10822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10825 source: err.into(),
10826 }),
10827 }
10828 }
10829}
10830impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
10831 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
10832 match err {
10833 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
10834 }
10835 }
10836}
10837impl<R>
10838 From<
10839 ::aws_smithy_runtime_api::client::result::SdkError<
10840 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10841 R,
10842 >,
10843 > for Error
10844where
10845 R: Send + Sync + std::fmt::Debug + 'static,
10846{
10847 fn from(
10848 err: ::aws_smithy_runtime_api::client::result::SdkError<
10849 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10850 R,
10851 >,
10852 ) -> Self {
10853 match err {
10854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10857 source: err.into(),
10858 }),
10859 }
10860 }
10861}
10862impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
10863 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
10864 match err {
10865 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
10866 Error::Unhandled(inner)
10867 }
10868 }
10869 }
10870}
10871impl<R>
10872 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10873 for Error
10874where
10875 R: Send + Sync + std::fmt::Debug + 'static,
10876{
10877 fn from(
10878 err: ::aws_smithy_runtime_api::client::result::SdkError<
10879 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10880 R,
10881 >,
10882 ) -> Self {
10883 match err {
10884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10887 source: err.into(),
10888 }),
10889 }
10890 }
10891}
10892impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10893 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10894 match err {
10895 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10896 }
10897 }
10898}
10899impl<R>
10900 From<
10901 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10902 > for Error
10903where
10904 R: Send + Sync + std::fmt::Debug + 'static,
10905{
10906 fn from(
10907 err: ::aws_smithy_runtime_api::client::result::SdkError<
10908 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10909 R,
10910 >,
10911 ) -> Self {
10912 match err {
10913 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10914 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10915 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10916 source: err.into(),
10917 }),
10918 }
10919 }
10920}
10921impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10922 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10923 match err {
10924 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10925 }
10926 }
10927}
10928impl<R>
10929 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, R>>
10930 for Error
10931where
10932 R: Send + Sync + std::fmt::Debug + 'static,
10933{
10934 fn from(
10935 err: ::aws_smithy_runtime_api::client::result::SdkError<
10936 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError,
10937 R,
10938 >,
10939 ) -> Self {
10940 match err {
10941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10944 source: err.into(),
10945 }),
10946 }
10947 }
10948}
10949impl From<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError> for Error {
10950 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10951 match err {
10952 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10953 }
10954 }
10955}
10956impl<R>
10957 From<
10958 ::aws_smithy_runtime_api::client::result::SdkError<
10959 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10960 R,
10961 >,
10962 > for Error
10963where
10964 R: Send + Sync + std::fmt::Debug + 'static,
10965{
10966 fn from(
10967 err: ::aws_smithy_runtime_api::client::result::SdkError<
10968 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10969 R,
10970 >,
10971 ) -> Self {
10972 match err {
10973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10976 source: err.into(),
10977 }),
10978 }
10979 }
10980}
10981impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10982 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10983 match err {
10984 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10985 Error::Unhandled(inner)
10986 }
10987 }
10988 }
10989}
10990impl<R>
10991 From<
10992 ::aws_smithy_runtime_api::client::result::SdkError<
10993 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10994 R,
10995 >,
10996 > for Error
10997where
10998 R: Send + Sync + std::fmt::Debug + 'static,
10999{
11000 fn from(
11001 err: ::aws_smithy_runtime_api::client::result::SdkError<
11002 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
11003 R,
11004 >,
11005 ) -> Self {
11006 match err {
11007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11010 source: err.into(),
11011 }),
11012 }
11013 }
11014}
11015impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
11016 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
11017 match err {
11018 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
11019 Error::Unhandled(inner)
11020 }
11021 }
11022 }
11023}
11024impl<R>
11025 From<
11026 ::aws_smithy_runtime_api::client::result::SdkError<
11027 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
11028 R,
11029 >,
11030 > for Error
11031where
11032 R: Send + Sync + std::fmt::Debug + 'static,
11033{
11034 fn from(
11035 err: ::aws_smithy_runtime_api::client::result::SdkError<
11036 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
11037 R,
11038 >,
11039 ) -> Self {
11040 match err {
11041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11044 source: err.into(),
11045 }),
11046 }
11047 }
11048}
11049impl From<crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
11050 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
11051 match err {
11052 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
11053 }
11054 }
11055}
11056impl<R>
11057 From<
11058 ::aws_smithy_runtime_api::client::result::SdkError<
11059 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
11060 R,
11061 >,
11062 > for Error
11063where
11064 R: Send + Sync + std::fmt::Debug + 'static,
11065{
11066 fn from(
11067 err: ::aws_smithy_runtime_api::client::result::SdkError<
11068 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
11069 R,
11070 >,
11071 ) -> Self {
11072 match err {
11073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11076 source: err.into(),
11077 }),
11078 }
11079 }
11080}
11081impl From<crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError> for Error {
11082 fn from(err: crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError) -> Self {
11083 match err {
11084 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError::Unhandled(inner) => {
11085 Error::Unhandled(inner)
11086 }
11087 }
11088 }
11089}
11090impl<R>
11091 From<
11092 ::aws_smithy_runtime_api::client::result::SdkError<
11093 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
11094 R,
11095 >,
11096 > for Error
11097where
11098 R: Send + Sync + std::fmt::Debug + 'static,
11099{
11100 fn from(
11101 err: ::aws_smithy_runtime_api::client::result::SdkError<
11102 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
11103 R,
11104 >,
11105 ) -> Self {
11106 match err {
11107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11110 source: err.into(),
11111 }),
11112 }
11113 }
11114}
11115impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
11116 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
11117 match err {
11118 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
11119 Error::Unhandled(inner)
11120 }
11121 }
11122 }
11123}
11124impl<R>
11125 From<
11126 ::aws_smithy_runtime_api::client::result::SdkError<
11127 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
11128 R,
11129 >,
11130 > for Error
11131where
11132 R: Send + Sync + std::fmt::Debug + 'static,
11133{
11134 fn from(
11135 err: ::aws_smithy_runtime_api::client::result::SdkError<
11136 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
11137 R,
11138 >,
11139 ) -> Self {
11140 match err {
11141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11144 source: err.into(),
11145 }),
11146 }
11147 }
11148}
11149impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
11150 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
11151 match err {
11152 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
11153 Error::Unhandled(inner)
11154 }
11155 }
11156 }
11157}
11158impl<R>
11159 From<
11160 ::aws_smithy_runtime_api::client::result::SdkError<
11161 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
11162 R,
11163 >,
11164 > for Error
11165where
11166 R: Send + Sync + std::fmt::Debug + 'static,
11167{
11168 fn from(
11169 err: ::aws_smithy_runtime_api::client::result::SdkError<
11170 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
11171 R,
11172 >,
11173 ) -> Self {
11174 match err {
11175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11178 source: err.into(),
11179 }),
11180 }
11181 }
11182}
11183impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
11184 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
11185 match err {
11186 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
11187 Error::Unhandled(inner)
11188 }
11189 }
11190 }
11191}
11192impl<R>
11193 From<
11194 ::aws_smithy_runtime_api::client::result::SdkError<
11195 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
11196 R,
11197 >,
11198 > for Error
11199where
11200 R: Send + Sync + std::fmt::Debug + 'static,
11201{
11202 fn from(
11203 err: ::aws_smithy_runtime_api::client::result::SdkError<
11204 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
11205 R,
11206 >,
11207 ) -> Self {
11208 match err {
11209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11212 source: err.into(),
11213 }),
11214 }
11215 }
11216}
11217impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
11218 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
11219 match err {
11220 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
11221 inner,
11222 ) => Error::Unhandled(inner),
11223 }
11224 }
11225}
11226impl<R>
11227 From<
11228 ::aws_smithy_runtime_api::client::result::SdkError<
11229 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
11230 R,
11231 >,
11232 > for Error
11233where
11234 R: Send + Sync + std::fmt::Debug + 'static,
11235{
11236 fn from(
11237 err: ::aws_smithy_runtime_api::client::result::SdkError<
11238 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
11239 R,
11240 >,
11241 ) -> Self {
11242 match err {
11243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11246 source: err.into(),
11247 }),
11248 }
11249 }
11250}
11251impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
11252 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
11253 match err {
11254 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
11255 Error::Unhandled(inner)
11256 }
11257 }
11258 }
11259}
11260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
11261 for Error
11262where
11263 R: Send + Sync + std::fmt::Debug + 'static,
11264{
11265 fn from(
11266 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
11267 ) -> Self {
11268 match err {
11269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11272 source: err.into(),
11273 }),
11274 }
11275 }
11276}
11277impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
11278 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
11279 match err {
11280 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11281 }
11282 }
11283}
11284impl<R>
11285 From<
11286 ::aws_smithy_runtime_api::client::result::SdkError<
11287 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11288 R,
11289 >,
11290 > for Error
11291where
11292 R: Send + Sync + std::fmt::Debug + 'static,
11293{
11294 fn from(
11295 err: ::aws_smithy_runtime_api::client::result::SdkError<
11296 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11297 R,
11298 >,
11299 ) -> Self {
11300 match err {
11301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11304 source: err.into(),
11305 }),
11306 }
11307 }
11308}
11309impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
11310 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
11311 match err {
11312 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
11313 Error::Unhandled(inner)
11314 }
11315 }
11316 }
11317}
11318impl<R>
11319 From<
11320 ::aws_smithy_runtime_api::client::result::SdkError<
11321 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11322 R,
11323 >,
11324 > for Error
11325where
11326 R: Send + Sync + std::fmt::Debug + 'static,
11327{
11328 fn from(
11329 err: ::aws_smithy_runtime_api::client::result::SdkError<
11330 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11331 R,
11332 >,
11333 ) -> Self {
11334 match err {
11335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11338 source: err.into(),
11339 }),
11340 }
11341 }
11342}
11343impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
11344 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
11345 match err {
11346 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
11347 Error::Unhandled(inner)
11348 }
11349 }
11350 }
11351}
11352impl<R>
11353 From<
11354 ::aws_smithy_runtime_api::client::result::SdkError<
11355 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11356 R,
11357 >,
11358 > for Error
11359where
11360 R: Send + Sync + std::fmt::Debug + 'static,
11361{
11362 fn from(
11363 err: ::aws_smithy_runtime_api::client::result::SdkError<
11364 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11365 R,
11366 >,
11367 ) -> Self {
11368 match err {
11369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11372 source: err.into(),
11373 }),
11374 }
11375 }
11376}
11377impl From<crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
11378 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
11379 match err {
11380 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11381 }
11382 }
11383}
11384impl<R>
11385 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
11386 for Error
11387where
11388 R: Send + Sync + std::fmt::Debug + 'static,
11389{
11390 fn from(
11391 err: ::aws_smithy_runtime_api::client::result::SdkError<
11392 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
11393 R,
11394 >,
11395 ) -> Self {
11396 match err {
11397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11400 source: err.into(),
11401 }),
11402 }
11403 }
11404}
11405impl From<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError> for Error {
11406 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
11407 match err {
11408 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
11409 }
11410 }
11411}
11412impl<R>
11413 From<
11414 ::aws_smithy_runtime_api::client::result::SdkError<
11415 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11416 R,
11417 >,
11418 > for Error
11419where
11420 R: Send + Sync + std::fmt::Debug + 'static,
11421{
11422 fn from(
11423 err: ::aws_smithy_runtime_api::client::result::SdkError<
11424 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11425 R,
11426 >,
11427 ) -> Self {
11428 match err {
11429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11432 source: err.into(),
11433 }),
11434 }
11435 }
11436}
11437impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
11438 for Error
11439{
11440 fn from(
11441 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11442 ) -> Self {
11443 match err {
11444 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
11445 }
11446 }
11447}
11448impl<R>
11449 From<
11450 ::aws_smithy_runtime_api::client::result::SdkError<
11451 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11452 R,
11453 >,
11454 > for Error
11455where
11456 R: Send + Sync + std::fmt::Debug + 'static,
11457{
11458 fn from(
11459 err: ::aws_smithy_runtime_api::client::result::SdkError<
11460 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11461 R,
11462 >,
11463 ) -> Self {
11464 match err {
11465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11468 source: err.into(),
11469 }),
11470 }
11471 }
11472}
11473impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
11474 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
11475 match err {
11476 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
11477 }
11478 }
11479}
11480impl<R>
11481 From<
11482 ::aws_smithy_runtime_api::client::result::SdkError<
11483 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11484 R,
11485 >,
11486 > for Error
11487where
11488 R: Send + Sync + std::fmt::Debug + 'static,
11489{
11490 fn from(
11491 err: ::aws_smithy_runtime_api::client::result::SdkError<
11492 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11493 R,
11494 >,
11495 ) -> Self {
11496 match err {
11497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11500 source: err.into(),
11501 }),
11502 }
11503 }
11504}
11505impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
11506 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
11507 match err {
11508 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
11509 Error::Unhandled(inner)
11510 }
11511 }
11512 }
11513}
11514impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
11515 for Error
11516where
11517 R: Send + Sync + std::fmt::Debug + 'static,
11518{
11519 fn from(
11520 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
11521 ) -> Self {
11522 match err {
11523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11526 source: err.into(),
11527 }),
11528 }
11529 }
11530}
11531impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
11532 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
11533 match err {
11534 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11535 }
11536 }
11537}
11538impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
11539where
11540 R: Send + Sync + std::fmt::Debug + 'static,
11541{
11542 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
11543 match err {
11544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11547 source: err.into(),
11548 }),
11549 }
11550 }
11551}
11552impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
11553 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
11554 match err {
11555 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
11556 }
11557 }
11558}
11559impl<R>
11560 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
11561 for Error
11562where
11563 R: Send + Sync + std::fmt::Debug + 'static,
11564{
11565 fn from(
11566 err: ::aws_smithy_runtime_api::client::result::SdkError<
11567 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
11568 R,
11569 >,
11570 ) -> Self {
11571 match err {
11572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11575 source: err.into(),
11576 }),
11577 }
11578 }
11579}
11580impl From<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError> for Error {
11581 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
11582 match err {
11583 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
11584 }
11585 }
11586}
11587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
11588where
11589 R: Send + Sync + std::fmt::Debug + 'static,
11590{
11591 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
11592 match err {
11593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11596 source: err.into(),
11597 }),
11598 }
11599 }
11600}
11601impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
11602 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
11603 match err {
11604 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
11605 }
11606 }
11607}
11608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
11609where
11610 R: Send + Sync + std::fmt::Debug + 'static,
11611{
11612 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
11613 match err {
11614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11617 source: err.into(),
11618 }),
11619 }
11620 }
11621}
11622impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
11623 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
11624 match err {
11625 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11626 }
11627 }
11628}
11629impl<R>
11630 From<
11631 ::aws_smithy_runtime_api::client::result::SdkError<
11632 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11633 R,
11634 >,
11635 > for Error
11636where
11637 R: Send + Sync + std::fmt::Debug + 'static,
11638{
11639 fn from(
11640 err: ::aws_smithy_runtime_api::client::result::SdkError<
11641 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11642 R,
11643 >,
11644 ) -> Self {
11645 match err {
11646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11649 source: err.into(),
11650 }),
11651 }
11652 }
11653}
11654impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
11655 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
11656 match err {
11657 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
11658 Error::Unhandled(inner)
11659 }
11660 }
11661 }
11662}
11663impl<R>
11664 From<
11665 ::aws_smithy_runtime_api::client::result::SdkError<
11666 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11667 R,
11668 >,
11669 > for Error
11670where
11671 R: Send + Sync + std::fmt::Debug + 'static,
11672{
11673 fn from(
11674 err: ::aws_smithy_runtime_api::client::result::SdkError<
11675 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11676 R,
11677 >,
11678 ) -> Self {
11679 match err {
11680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11683 source: err.into(),
11684 }),
11685 }
11686 }
11687}
11688impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
11689 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
11690 match err {
11691 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
11692 Error::Unhandled(inner)
11693 }
11694 }
11695 }
11696}
11697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
11698 for Error
11699where
11700 R: Send + Sync + std::fmt::Debug + 'static,
11701{
11702 fn from(
11703 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
11704 ) -> Self {
11705 match err {
11706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11709 source: err.into(),
11710 }),
11711 }
11712 }
11713}
11714impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
11715 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
11716 match err {
11717 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11718 }
11719 }
11720}
11721impl<R>
11722 From<
11723 ::aws_smithy_runtime_api::client::result::SdkError<
11724 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11725 R,
11726 >,
11727 > for Error
11728where
11729 R: Send + Sync + std::fmt::Debug + 'static,
11730{
11731 fn from(
11732 err: ::aws_smithy_runtime_api::client::result::SdkError<
11733 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11734 R,
11735 >,
11736 ) -> Self {
11737 match err {
11738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11741 source: err.into(),
11742 }),
11743 }
11744 }
11745}
11746impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
11747 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
11748 match err {
11749 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
11750 Error::Unhandled(inner)
11751 }
11752 }
11753 }
11754}
11755impl<R>
11756 From<
11757 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError, R>,
11758 > for Error
11759where
11760 R: Send + Sync + std::fmt::Debug + 'static,
11761{
11762 fn from(
11763 err: ::aws_smithy_runtime_api::client::result::SdkError<
11764 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError,
11765 R,
11766 >,
11767 ) -> Self {
11768 match err {
11769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11772 source: err.into(),
11773 }),
11774 }
11775 }
11776}
11777impl From<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError> for Error {
11778 fn from(err: crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError) -> Self {
11779 match err {
11780 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError::Unhandled(inner) => Error::Unhandled(inner),
11781 }
11782 }
11783}
11784impl<R>
11785 From<
11786 ::aws_smithy_runtime_api::client::result::SdkError<
11787 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11788 R,
11789 >,
11790 > for Error
11791where
11792 R: Send + Sync + std::fmt::Debug + 'static,
11793{
11794 fn from(
11795 err: ::aws_smithy_runtime_api::client::result::SdkError<
11796 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11797 R,
11798 >,
11799 ) -> Self {
11800 match err {
11801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11804 source: err.into(),
11805 }),
11806 }
11807 }
11808}
11809impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
11810 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
11811 match err {
11812 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
11813 }
11814 }
11815}
11816impl<R>
11817 From<
11818 ::aws_smithy_runtime_api::client::result::SdkError<
11819 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11820 R,
11821 >,
11822 > for Error
11823where
11824 R: Send + Sync + std::fmt::Debug + 'static,
11825{
11826 fn from(
11827 err: ::aws_smithy_runtime_api::client::result::SdkError<
11828 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11829 R,
11830 >,
11831 ) -> Self {
11832 match err {
11833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11836 source: err.into(),
11837 }),
11838 }
11839 }
11840}
11841impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
11842 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
11843 match err {
11844 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
11845 Error::Unhandled(inner)
11846 }
11847 }
11848 }
11849}
11850impl<R>
11851 From<
11852 ::aws_smithy_runtime_api::client::result::SdkError<
11853 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11854 R,
11855 >,
11856 > for Error
11857where
11858 R: Send + Sync + std::fmt::Debug + 'static,
11859{
11860 fn from(
11861 err: ::aws_smithy_runtime_api::client::result::SdkError<
11862 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11863 R,
11864 >,
11865 ) -> Self {
11866 match err {
11867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11870 source: err.into(),
11871 }),
11872 }
11873 }
11874}
11875impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
11876 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
11877 match err {
11878 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11879 }
11880 }
11881}
11882impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
11883where
11884 R: Send + Sync + std::fmt::Debug + 'static,
11885{
11886 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
11887 match err {
11888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11891 source: err.into(),
11892 }),
11893 }
11894 }
11895}
11896impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
11897 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
11898 match err {
11899 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11900 }
11901 }
11902}
11903impl<R>
11904 From<
11905 ::aws_smithy_runtime_api::client::result::SdkError<
11906 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11907 R,
11908 >,
11909 > for Error
11910where
11911 R: Send + Sync + std::fmt::Debug + 'static,
11912{
11913 fn from(
11914 err: ::aws_smithy_runtime_api::client::result::SdkError<
11915 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11916 R,
11917 >,
11918 ) -> Self {
11919 match err {
11920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11923 source: err.into(),
11924 }),
11925 }
11926 }
11927}
11928impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
11929 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
11930 match err {
11931 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
11932 Error::Unhandled(inner)
11933 }
11934 }
11935 }
11936}
11937impl<R>
11938 From<
11939 ::aws_smithy_runtime_api::client::result::SdkError<
11940 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11941 R,
11942 >,
11943 > for Error
11944where
11945 R: Send + Sync + std::fmt::Debug + 'static,
11946{
11947 fn from(
11948 err: ::aws_smithy_runtime_api::client::result::SdkError<
11949 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11950 R,
11951 >,
11952 ) -> Self {
11953 match err {
11954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11957 source: err.into(),
11958 }),
11959 }
11960 }
11961}
11962impl From<crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11963 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11964 match err {
11965 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11966 Error::Unhandled(inner)
11967 }
11968 }
11969 }
11970}
11971impl<R>
11972 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11973 for Error
11974where
11975 R: Send + Sync + std::fmt::Debug + 'static,
11976{
11977 fn from(
11978 err: ::aws_smithy_runtime_api::client::result::SdkError<
11979 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11980 R,
11981 >,
11982 ) -> Self {
11983 match err {
11984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11987 source: err.into(),
11988 }),
11989 }
11990 }
11991}
11992impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11993 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11994 match err {
11995 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11996 }
11997 }
11998}
11999impl<R>
12000 From<
12001 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
12002 > for Error
12003where
12004 R: Send + Sync + std::fmt::Debug + 'static,
12005{
12006 fn from(
12007 err: ::aws_smithy_runtime_api::client::result::SdkError<
12008 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
12009 R,
12010 >,
12011 ) -> Self {
12012 match err {
12013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12016 source: err.into(),
12017 }),
12018 }
12019 }
12020}
12021impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
12022 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
12023 match err {
12024 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
12025 }
12026 }
12027}
12028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
12029where
12030 R: Send + Sync + std::fmt::Debug + 'static,
12031{
12032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
12033 match err {
12034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12037 source: err.into(),
12038 }),
12039 }
12040 }
12041}
12042impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
12043 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
12044 match err {
12045 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
12046 }
12047 }
12048}
12049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>>
12050 for Error
12051where
12052 R: Send + Sync + std::fmt::Debug + 'static,
12053{
12054 fn from(
12055 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>,
12056 ) -> Self {
12057 match err {
12058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12061 source: err.into(),
12062 }),
12063 }
12064 }
12065}
12066impl From<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError> for Error {
12067 fn from(err: crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError) -> Self {
12068 match err {
12069 crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError::Unhandled(inner) => Error::Unhandled(inner),
12070 }
12071 }
12072}
12073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
12074where
12075 R: Send + Sync + std::fmt::Debug + 'static,
12076{
12077 fn from(
12078 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
12079 ) -> Self {
12080 match err {
12081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12084 source: err.into(),
12085 }),
12086 }
12087 }
12088}
12089impl From<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
12090 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
12091 match err {
12092 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
12093 }
12094 }
12095}
12096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>> for Error
12097where
12098 R: Send + Sync + std::fmt::Debug + 'static,
12099{
12100 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>) -> Self {
12101 match err {
12102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12105 source: err.into(),
12106 }),
12107 }
12108 }
12109}
12110impl From<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
12111 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
12112 match err {
12113 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
12114 }
12115 }
12116}
12117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
12118where
12119 R: Send + Sync + std::fmt::Debug + 'static,
12120{
12121 fn from(
12122 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
12123 ) -> Self {
12124 match err {
12125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12128 source: err.into(),
12129 }),
12130 }
12131 }
12132}
12133impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
12134 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
12135 match err {
12136 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
12137 }
12138 }
12139}
12140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
12141where
12142 R: Send + Sync + std::fmt::Debug + 'static,
12143{
12144 fn from(
12145 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
12146 ) -> Self {
12147 match err {
12148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12151 source: err.into(),
12152 }),
12153 }
12154 }
12155}
12156impl From<crate::operation::detach_internet_gateway::DetachInternetGatewayError> for Error {
12157 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
12158 match err {
12159 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
12160 }
12161 }
12162}
12163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
12164where
12165 R: Send + Sync + std::fmt::Debug + 'static,
12166{
12167 fn from(
12168 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
12169 ) -> Self {
12170 match err {
12171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12174 source: err.into(),
12175 }),
12176 }
12177 }
12178}
12179impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
12180 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
12181 match err {
12182 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
12183 }
12184 }
12185}
12186impl<R>
12187 From<
12188 ::aws_smithy_runtime_api::client::result::SdkError<
12189 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
12190 R,
12191 >,
12192 > for Error
12193where
12194 R: Send + Sync + std::fmt::Debug + 'static,
12195{
12196 fn from(
12197 err: ::aws_smithy_runtime_api::client::result::SdkError<
12198 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
12199 R,
12200 >,
12201 ) -> Self {
12202 match err {
12203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12206 source: err.into(),
12207 }),
12208 }
12209 }
12210}
12211impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
12212 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
12213 match err {
12214 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
12215 Error::Unhandled(inner)
12216 }
12217 }
12218 }
12219}
12220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
12221where
12222 R: Send + Sync + std::fmt::Debug + 'static,
12223{
12224 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
12225 match err {
12226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12229 source: err.into(),
12230 }),
12231 }
12232 }
12233}
12234impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
12235 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
12236 match err {
12237 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
12238 }
12239 }
12240}
12241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
12242where
12243 R: Send + Sync + std::fmt::Debug + 'static,
12244{
12245 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
12246 match err {
12247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12250 source: err.into(),
12251 }),
12252 }
12253 }
12254}
12255impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
12256 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
12257 match err {
12258 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
12259 }
12260 }
12261}
12262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
12263where
12264 R: Send + Sync + std::fmt::Debug + 'static,
12265{
12266 fn from(
12267 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
12268 ) -> Self {
12269 match err {
12270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12273 source: err.into(),
12274 }),
12275 }
12276 }
12277}
12278impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
12279 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
12280 match err {
12281 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12282 }
12283 }
12284}
12285impl<R>
12286 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
12287 for Error
12288where
12289 R: Send + Sync + std::fmt::Debug + 'static,
12290{
12291 fn from(
12292 err: ::aws_smithy_runtime_api::client::result::SdkError<
12293 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
12294 R,
12295 >,
12296 ) -> Self {
12297 match err {
12298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12301 source: err.into(),
12302 }),
12303 }
12304 }
12305}
12306impl From<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
12307 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
12308 match err {
12309 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12310 }
12311 }
12312}
12313impl<R>
12314 From<
12315 ::aws_smithy_runtime_api::client::result::SdkError<
12316 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12317 R,
12318 >,
12319 > for Error
12320where
12321 R: Send + Sync + std::fmt::Debug + 'static,
12322{
12323 fn from(
12324 err: ::aws_smithy_runtime_api::client::result::SdkError<
12325 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12326 R,
12327 >,
12328 ) -> Self {
12329 match err {
12330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12333 source: err.into(),
12334 }),
12335 }
12336 }
12337}
12338impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12339 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12340 match err {
12341 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12342 inner,
12343 ) => Error::Unhandled(inner),
12344 }
12345 }
12346}
12347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
12348where
12349 R: Send + Sync + std::fmt::Debug + 'static,
12350{
12351 fn from(
12352 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
12353 ) -> Self {
12354 match err {
12355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12358 source: err.into(),
12359 }),
12360 }
12361 }
12362}
12363impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
12364 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
12365 match err {
12366 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12367 }
12368 }
12369}
12370impl<R>
12371 From<
12372 ::aws_smithy_runtime_api::client::result::SdkError<
12373 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12374 R,
12375 >,
12376 > for Error
12377where
12378 R: Send + Sync + std::fmt::Debug + 'static,
12379{
12380 fn from(
12381 err: ::aws_smithy_runtime_api::client::result::SdkError<
12382 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12383 R,
12384 >,
12385 ) -> Self {
12386 match err {
12387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12390 source: err.into(),
12391 }),
12392 }
12393 }
12394}
12395impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
12396 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
12397 match err {
12398 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12399 }
12400 }
12401}
12402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
12403where
12404 R: Send + Sync + std::fmt::Debug + 'static,
12405{
12406 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
12407 match err {
12408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12411 source: err.into(),
12412 }),
12413 }
12414 }
12415}
12416impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
12417 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
12418 match err {
12419 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12420 }
12421 }
12422}
12423impl<R>
12424 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
12425 for Error
12426where
12427 R: Send + Sync + std::fmt::Debug + 'static,
12428{
12429 fn from(
12430 err: ::aws_smithy_runtime_api::client::result::SdkError<
12431 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
12432 R,
12433 >,
12434 ) -> Self {
12435 match err {
12436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12439 source: err.into(),
12440 }),
12441 }
12442 }
12443}
12444impl From<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
12445 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
12446 match err {
12447 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12448 }
12449 }
12450}
12451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
12452where
12453 R: Send + Sync + std::fmt::Debug + 'static,
12454{
12455 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> Self {
12456 match err {
12457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12460 source: err.into(),
12461 }),
12462 }
12463 }
12464}
12465impl From<crate::operation::disable_image::DisableImageError> for Error {
12466 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
12467 match err {
12468 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
12469 }
12470 }
12471}
12472impl<R>
12473 From<
12474 ::aws_smithy_runtime_api::client::result::SdkError<
12475 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
12476 R,
12477 >,
12478 > for Error
12479where
12480 R: Send + Sync + std::fmt::Debug + 'static,
12481{
12482 fn from(
12483 err: ::aws_smithy_runtime_api::client::result::SdkError<
12484 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
12485 R,
12486 >,
12487 ) -> Self {
12488 match err {
12489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12492 source: err.into(),
12493 }),
12494 }
12495 }
12496}
12497impl From<crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
12498 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
12499 match err {
12500 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12501 }
12502 }
12503}
12504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
12505 for Error
12506where
12507 R: Send + Sync + std::fmt::Debug + 'static,
12508{
12509 fn from(
12510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
12511 ) -> Self {
12512 match err {
12513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12516 source: err.into(),
12517 }),
12518 }
12519 }
12520}
12521impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
12522 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
12523 match err {
12524 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
12525 }
12526 }
12527}
12528impl<R>
12529 From<
12530 ::aws_smithy_runtime_api::client::result::SdkError<
12531 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12532 R,
12533 >,
12534 > for Error
12535where
12536 R: Send + Sync + std::fmt::Debug + 'static,
12537{
12538 fn from(
12539 err: ::aws_smithy_runtime_api::client::result::SdkError<
12540 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12541 R,
12542 >,
12543 ) -> Self {
12544 match err {
12545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12548 source: err.into(),
12549 }),
12550 }
12551 }
12552}
12553impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
12554 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
12555 match err {
12556 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
12557 Error::Unhandled(inner)
12558 }
12559 }
12560 }
12561}
12562impl<R>
12563 From<
12564 ::aws_smithy_runtime_api::client::result::SdkError<
12565 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12566 R,
12567 >,
12568 > for Error
12569where
12570 R: Send + Sync + std::fmt::Debug + 'static,
12571{
12572 fn from(
12573 err: ::aws_smithy_runtime_api::client::result::SdkError<
12574 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12575 R,
12576 >,
12577 ) -> Self {
12578 match err {
12579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12582 source: err.into(),
12583 }),
12584 }
12585 }
12586}
12587impl From<crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError> for Error {
12588 fn from(err: crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError) -> Self {
12589 match err {
12590 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
12591 Error::Unhandled(inner)
12592 }
12593 }
12594 }
12595}
12596impl<R>
12597 From<
12598 ::aws_smithy_runtime_api::client::result::SdkError<
12599 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12600 R,
12601 >,
12602 > for Error
12603where
12604 R: Send + Sync + std::fmt::Debug + 'static,
12605{
12606 fn from(
12607 err: ::aws_smithy_runtime_api::client::result::SdkError<
12608 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12609 R,
12610 >,
12611 ) -> Self {
12612 match err {
12613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12616 source: err.into(),
12617 }),
12618 }
12619 }
12620}
12621impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
12622 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
12623 match err {
12624 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12625 Error::Unhandled(inner)
12626 }
12627 }
12628 }
12629}
12630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>> for Error
12631where
12632 R: Send + Sync + std::fmt::Debug + 'static,
12633{
12634 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>) -> Self {
12635 match err {
12636 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12637 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12638 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12639 source: err.into(),
12640 }),
12641 }
12642 }
12643}
12644impl From<crate::operation::disable_ipam_policy::DisableIpamPolicyError> for Error {
12645 fn from(err: crate::operation::disable_ipam_policy::DisableIpamPolicyError) -> Self {
12646 match err {
12647 crate::operation::disable_ipam_policy::DisableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
12648 }
12649 }
12650}
12651impl<R>
12652 From<
12653 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
12654 > for Error
12655where
12656 R: Send + Sync + std::fmt::Debug + 'static,
12657{
12658 fn from(
12659 err: ::aws_smithy_runtime_api::client::result::SdkError<
12660 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
12661 R,
12662 >,
12663 ) -> Self {
12664 match err {
12665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12668 source: err.into(),
12669 }),
12670 }
12671 }
12672}
12673impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
12674 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
12675 match err {
12676 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12677 }
12678 }
12679}
12680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
12681 for Error
12682where
12683 R: Send + Sync + std::fmt::Debug + 'static,
12684{
12685 fn from(
12686 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
12687 ) -> Self {
12688 match err {
12689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12692 source: err.into(),
12693 }),
12694 }
12695 }
12696}
12697impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
12698 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
12699 match err {
12700 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12701 }
12702 }
12703}
12704impl<R>
12705 From<
12706 ::aws_smithy_runtime_api::client::result::SdkError<
12707 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12708 R,
12709 >,
12710 > for Error
12711where
12712 R: Send + Sync + std::fmt::Debug + 'static,
12713{
12714 fn from(
12715 err: ::aws_smithy_runtime_api::client::result::SdkError<
12716 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12717 R,
12718 >,
12719 ) -> Self {
12720 match err {
12721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12724 source: err.into(),
12725 }),
12726 }
12727 }
12728}
12729impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
12730 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
12731 match err {
12732 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
12733 Error::Unhandled(inner)
12734 }
12735 }
12736 }
12737}
12738impl<R>
12739 From<
12740 ::aws_smithy_runtime_api::client::result::SdkError<
12741 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12742 R,
12743 >,
12744 > for Error
12745where
12746 R: Send + Sync + std::fmt::Debug + 'static,
12747{
12748 fn from(
12749 err: ::aws_smithy_runtime_api::client::result::SdkError<
12750 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12751 R,
12752 >,
12753 ) -> Self {
12754 match err {
12755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12758 source: err.into(),
12759 }),
12760 }
12761 }
12762}
12763impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
12764 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
12765 match err {
12766 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
12767 Error::Unhandled(inner)
12768 }
12769 }
12770 }
12771}
12772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
12773 for Error
12774where
12775 R: Send + Sync + std::fmt::Debug + 'static,
12776{
12777 fn from(
12778 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
12779 ) -> Self {
12780 match err {
12781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12784 source: err.into(),
12785 }),
12786 }
12787 }
12788}
12789impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
12790 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
12791 match err {
12792 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12793 }
12794 }
12795}
12796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
12797where
12798 R: Send + Sync + std::fmt::Debug + 'static,
12799{
12800 fn from(
12801 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
12802 ) -> Self {
12803 match err {
12804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12807 source: err.into(),
12808 }),
12809 }
12810 }
12811}
12812impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
12813 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
12814 match err {
12815 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12816 }
12817 }
12818}
12819impl<R>
12820 From<
12821 ::aws_smithy_runtime_api::client::result::SdkError<
12822 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12823 R,
12824 >,
12825 > for Error
12826where
12827 R: Send + Sync + std::fmt::Debug + 'static,
12828{
12829 fn from(
12830 err: ::aws_smithy_runtime_api::client::result::SdkError<
12831 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12832 R,
12833 >,
12834 ) -> Self {
12835 match err {
12836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12839 source: err.into(),
12840 }),
12841 }
12842 }
12843}
12844impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
12845 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
12846 match err {
12847 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12848 }
12849 }
12850}
12851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
12852where
12853 R: Send + Sync + std::fmt::Debug + 'static,
12854{
12855 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
12856 match err {
12857 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12858 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12859 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12860 source: err.into(),
12861 }),
12862 }
12863 }
12864}
12865impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
12866 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
12867 match err {
12868 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
12869 }
12870 }
12871}
12872impl<R>
12873 From<
12874 ::aws_smithy_runtime_api::client::result::SdkError<
12875 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12876 R,
12877 >,
12878 > for Error
12879where
12880 R: Send + Sync + std::fmt::Debug + 'static,
12881{
12882 fn from(
12883 err: ::aws_smithy_runtime_api::client::result::SdkError<
12884 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12885 R,
12886 >,
12887 ) -> Self {
12888 match err {
12889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12892 source: err.into(),
12893 }),
12894 }
12895 }
12896}
12897impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
12898 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
12899 match err {
12900 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
12901 Error::Unhandled(inner)
12902 }
12903 }
12904 }
12905}
12906impl<R>
12907 From<
12908 ::aws_smithy_runtime_api::client::result::SdkError<
12909 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12910 R,
12911 >,
12912 > for Error
12913where
12914 R: Send + Sync + std::fmt::Debug + 'static,
12915{
12916 fn from(
12917 err: ::aws_smithy_runtime_api::client::result::SdkError<
12918 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12919 R,
12920 >,
12921 ) -> Self {
12922 match err {
12923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12926 source: err.into(),
12927 }),
12928 }
12929 }
12930}
12931impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
12932 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
12933 match err {
12934 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
12935 Error::Unhandled(inner)
12936 }
12937 }
12938 }
12939}
12940impl<R>
12941 From<
12942 ::aws_smithy_runtime_api::client::result::SdkError<
12943 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12944 R,
12945 >,
12946 > for Error
12947where
12948 R: Send + Sync + std::fmt::Debug + 'static,
12949{
12950 fn from(
12951 err: ::aws_smithy_runtime_api::client::result::SdkError<
12952 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12953 R,
12954 >,
12955 ) -> Self {
12956 match err {
12957 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12958 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12959 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12960 source: err.into(),
12961 }),
12962 }
12963 }
12964}
12965impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
12966 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
12967 match err {
12968 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
12969 Error::Unhandled(inner)
12970 }
12971 }
12972 }
12973}
12974impl<R>
12975 From<
12976 ::aws_smithy_runtime_api::client::result::SdkError<
12977 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12978 R,
12979 >,
12980 > for Error
12981where
12982 R: Send + Sync + std::fmt::Debug + 'static,
12983{
12984 fn from(
12985 err: ::aws_smithy_runtime_api::client::result::SdkError<
12986 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12987 R,
12988 >,
12989 ) -> Self {
12990 match err {
12991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12994 source: err.into(),
12995 }),
12996 }
12997 }
12998}
12999impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
13000 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
13001 match err {
13002 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
13003 }
13004 }
13005}
13006impl<R>
13007 From<
13008 ::aws_smithy_runtime_api::client::result::SdkError<
13009 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
13010 R,
13011 >,
13012 > for Error
13013where
13014 R: Send + Sync + std::fmt::Debug + 'static,
13015{
13016 fn from(
13017 err: ::aws_smithy_runtime_api::client::result::SdkError<
13018 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
13019 R,
13020 >,
13021 ) -> Self {
13022 match err {
13023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13026 source: err.into(),
13027 }),
13028 }
13029 }
13030}
13031impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
13032 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
13033 match err {
13034 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
13035 }
13036 }
13037}
13038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
13039where
13040 R: Send + Sync + std::fmt::Debug + 'static,
13041{
13042 fn from(
13043 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
13044 ) -> Self {
13045 match err {
13046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13049 source: err.into(),
13050 }),
13051 }
13052 }
13053}
13054impl From<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
13055 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
13056 match err {
13057 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
13058 }
13059 }
13060}
13061impl<R>
13062 From<
13063 ::aws_smithy_runtime_api::client::result::SdkError<
13064 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
13065 R,
13066 >,
13067 > for Error
13068where
13069 R: Send + Sync + std::fmt::Debug + 'static,
13070{
13071 fn from(
13072 err: ::aws_smithy_runtime_api::client::result::SdkError<
13073 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
13074 R,
13075 >,
13076 ) -> Self {
13077 match err {
13078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13081 source: err.into(),
13082 }),
13083 }
13084 }
13085}
13086impl From<crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
13087 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
13088 match err {
13089 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
13090 Error::Unhandled(inner)
13091 }
13092 }
13093 }
13094}
13095impl<R>
13096 From<
13097 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
13098 > for Error
13099where
13100 R: Send + Sync + std::fmt::Debug + 'static,
13101{
13102 fn from(
13103 err: ::aws_smithy_runtime_api::client::result::SdkError<
13104 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
13105 R,
13106 >,
13107 ) -> Self {
13108 match err {
13109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13112 source: err.into(),
13113 }),
13114 }
13115 }
13116}
13117impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
13118 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
13119 match err {
13120 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
13121 }
13122 }
13123}
13124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
13125 for Error
13126where
13127 R: Send + Sync + std::fmt::Debug + 'static,
13128{
13129 fn from(
13130 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
13131 ) -> Self {
13132 match err {
13133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13136 source: err.into(),
13137 }),
13138 }
13139 }
13140}
13141impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
13142 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
13143 match err {
13144 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
13145 }
13146 }
13147}
13148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
13149where
13150 R: Send + Sync + std::fmt::Debug + 'static,
13151{
13152 fn from(
13153 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
13154 ) -> Self {
13155 match err {
13156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13159 source: err.into(),
13160 }),
13161 }
13162 }
13163}
13164impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
13165 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
13166 match err {
13167 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
13168 }
13169 }
13170}
13171impl<R>
13172 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
13173 for Error
13174where
13175 R: Send + Sync + std::fmt::Debug + 'static,
13176{
13177 fn from(
13178 err: ::aws_smithy_runtime_api::client::result::SdkError<
13179 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
13180 R,
13181 >,
13182 ) -> Self {
13183 match err {
13184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13187 source: err.into(),
13188 }),
13189 }
13190 }
13191}
13192impl From<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
13193 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
13194 match err {
13195 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
13196 }
13197 }
13198}
13199impl<R>
13200 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, R>>
13201 for Error
13202where
13203 R: Send + Sync + std::fmt::Debug + 'static,
13204{
13205 fn from(
13206 err: ::aws_smithy_runtime_api::client::result::SdkError<
13207 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError,
13208 R,
13209 >,
13210 ) -> Self {
13211 match err {
13212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13215 source: err.into(),
13216 }),
13217 }
13218 }
13219}
13220impl From<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
13221 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
13222 match err {
13223 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
13224 }
13225 }
13226}
13227impl<R>
13228 From<
13229 ::aws_smithy_runtime_api::client::result::SdkError<
13230 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
13231 R,
13232 >,
13233 > for Error
13234where
13235 R: Send + Sync + std::fmt::Debug + 'static,
13236{
13237 fn from(
13238 err: ::aws_smithy_runtime_api::client::result::SdkError<
13239 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
13240 R,
13241 >,
13242 ) -> Self {
13243 match err {
13244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13247 source: err.into(),
13248 }),
13249 }
13250 }
13251}
13252impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
13253 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
13254 match err {
13255 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
13256 Error::Unhandled(inner)
13257 }
13258 }
13259 }
13260}
13261impl<R>
13262 From<
13263 ::aws_smithy_runtime_api::client::result::SdkError<
13264 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13265 R,
13266 >,
13267 > for Error
13268where
13269 R: Send + Sync + std::fmt::Debug + 'static,
13270{
13271 fn from(
13272 err: ::aws_smithy_runtime_api::client::result::SdkError<
13273 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13274 R,
13275 >,
13276 ) -> Self {
13277 match err {
13278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13281 source: err.into(),
13282 }),
13283 }
13284 }
13285}
13286impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
13287 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
13288 match err {
13289 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
13290 Error::Unhandled(inner)
13291 }
13292 }
13293 }
13294}
13295impl<R>
13296 From<
13297 ::aws_smithy_runtime_api::client::result::SdkError<
13298 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13299 R,
13300 >,
13301 > for Error
13302where
13303 R: Send + Sync + std::fmt::Debug + 'static,
13304{
13305 fn from(
13306 err: ::aws_smithy_runtime_api::client::result::SdkError<
13307 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13308 R,
13309 >,
13310 ) -> Self {
13311 match err {
13312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13315 source: err.into(),
13316 }),
13317 }
13318 }
13319}
13320impl From<crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
13321 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
13322 match err {
13323 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
13324 Error::Unhandled(inner)
13325 }
13326 }
13327 }
13328}
13329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
13330 for Error
13331where
13332 R: Send + Sync + std::fmt::Debug + 'static,
13333{
13334 fn from(
13335 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
13336 ) -> Self {
13337 match err {
13338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13341 source: err.into(),
13342 }),
13343 }
13344 }
13345}
13346impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
13347 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
13348 match err {
13349 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
13350 }
13351 }
13352}
13353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
13354 for Error
13355where
13356 R: Send + Sync + std::fmt::Debug + 'static,
13357{
13358 fn from(
13359 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
13360 ) -> Self {
13361 match err {
13362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13365 source: err.into(),
13366 }),
13367 }
13368 }
13369}
13370impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
13371 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
13372 match err {
13373 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
13374 }
13375 }
13376}
13377impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
13378where
13379 R: Send + Sync + std::fmt::Debug + 'static,
13380{
13381 fn from(
13382 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
13383 ) -> Self {
13384 match err {
13385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13388 source: err.into(),
13389 }),
13390 }
13391 }
13392}
13393impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
13394 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
13395 match err {
13396 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
13397 }
13398 }
13399}
13400impl<R>
13401 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
13402 for Error
13403where
13404 R: Send + Sync + std::fmt::Debug + 'static,
13405{
13406 fn from(
13407 err: ::aws_smithy_runtime_api::client::result::SdkError<
13408 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
13409 R,
13410 >,
13411 ) -> Self {
13412 match err {
13413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13416 source: err.into(),
13417 }),
13418 }
13419 }
13420}
13421impl From<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
13422 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
13423 match err {
13424 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13425 }
13426 }
13427}
13428impl<R>
13429 From<
13430 ::aws_smithy_runtime_api::client::result::SdkError<
13431 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13432 R,
13433 >,
13434 > for Error
13435where
13436 R: Send + Sync + std::fmt::Debug + 'static,
13437{
13438 fn from(
13439 err: ::aws_smithy_runtime_api::client::result::SdkError<
13440 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13441 R,
13442 >,
13443 ) -> Self {
13444 match err {
13445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13448 source: err.into(),
13449 }),
13450 }
13451 }
13452}
13453impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
13454 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
13455 match err {
13456 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
13457 inner,
13458 ) => Error::Unhandled(inner),
13459 }
13460 }
13461}
13462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
13463where
13464 R: Send + Sync + std::fmt::Debug + 'static,
13465{
13466 fn from(
13467 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
13468 ) -> Self {
13469 match err {
13470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13473 source: err.into(),
13474 }),
13475 }
13476 }
13477}
13478impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
13479 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
13480 match err {
13481 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
13482 }
13483 }
13484}
13485impl<R>
13486 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
13487 for Error
13488where
13489 R: Send + Sync + std::fmt::Debug + 'static,
13490{
13491 fn from(
13492 err: ::aws_smithy_runtime_api::client::result::SdkError<
13493 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
13494 R,
13495 >,
13496 ) -> Self {
13497 match err {
13498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13501 source: err.into(),
13502 }),
13503 }
13504 }
13505}
13506impl From<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
13507 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
13508 match err {
13509 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13510 }
13511 }
13512}
13513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
13514where
13515 R: Send + Sync + std::fmt::Debug + 'static,
13516{
13517 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
13518 match err {
13519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13522 source: err.into(),
13523 }),
13524 }
13525 }
13526}
13527impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
13528 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
13529 match err {
13530 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
13531 }
13532 }
13533}
13534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
13535 for Error
13536where
13537 R: Send + Sync + std::fmt::Debug + 'static,
13538{
13539 fn from(
13540 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
13541 ) -> Self {
13542 match err {
13543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13546 source: err.into(),
13547 }),
13548 }
13549 }
13550}
13551impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
13552 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
13553 match err {
13554 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
13555 }
13556 }
13557}
13558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
13559where
13560 R: Send + Sync + std::fmt::Debug + 'static,
13561{
13562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
13563 match err {
13564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13567 source: err.into(),
13568 }),
13569 }
13570 }
13571}
13572impl From<crate::operation::enable_image::EnableImageError> for Error {
13573 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
13574 match err {
13575 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
13576 }
13577 }
13578}
13579impl<R>
13580 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
13581 for Error
13582where
13583 R: Send + Sync + std::fmt::Debug + 'static,
13584{
13585 fn from(
13586 err: ::aws_smithy_runtime_api::client::result::SdkError<
13587 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
13588 R,
13589 >,
13590 ) -> Self {
13591 match err {
13592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13595 source: err.into(),
13596 }),
13597 }
13598 }
13599}
13600impl From<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError> for Error {
13601 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
13602 match err {
13603 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13604 }
13605 }
13606}
13607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
13608where
13609 R: Send + Sync + std::fmt::Debug + 'static,
13610{
13611 fn from(
13612 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
13613 ) -> Self {
13614 match err {
13615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13618 source: err.into(),
13619 }),
13620 }
13621 }
13622}
13623impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
13624 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
13625 match err {
13626 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
13627 }
13628 }
13629}
13630impl<R>
13631 From<
13632 ::aws_smithy_runtime_api::client::result::SdkError<
13633 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13634 R,
13635 >,
13636 > for Error
13637where
13638 R: Send + Sync + std::fmt::Debug + 'static,
13639{
13640 fn from(
13641 err: ::aws_smithy_runtime_api::client::result::SdkError<
13642 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13643 R,
13644 >,
13645 ) -> Self {
13646 match err {
13647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13650 source: err.into(),
13651 }),
13652 }
13653 }
13654}
13655impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
13656 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
13657 match err {
13658 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
13659 Error::Unhandled(inner)
13660 }
13661 }
13662 }
13663}
13664impl<R>
13665 From<
13666 ::aws_smithy_runtime_api::client::result::SdkError<
13667 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13668 R,
13669 >,
13670 > for Error
13671where
13672 R: Send + Sync + std::fmt::Debug + 'static,
13673{
13674 fn from(
13675 err: ::aws_smithy_runtime_api::client::result::SdkError<
13676 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13677 R,
13678 >,
13679 ) -> Self {
13680 match err {
13681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13684 source: err.into(),
13685 }),
13686 }
13687 }
13688}
13689impl From<crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError> for Error {
13690 fn from(err: crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError) -> Self {
13691 match err {
13692 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
13693 Error::Unhandled(inner)
13694 }
13695 }
13696 }
13697}
13698impl<R>
13699 From<
13700 ::aws_smithy_runtime_api::client::result::SdkError<
13701 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13702 R,
13703 >,
13704 > for Error
13705where
13706 R: Send + Sync + std::fmt::Debug + 'static,
13707{
13708 fn from(
13709 err: ::aws_smithy_runtime_api::client::result::SdkError<
13710 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13711 R,
13712 >,
13713 ) -> Self {
13714 match err {
13715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13718 source: err.into(),
13719 }),
13720 }
13721 }
13722}
13723impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
13724 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
13725 match err {
13726 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
13727 Error::Unhandled(inner)
13728 }
13729 }
13730 }
13731}
13732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>> for Error
13733where
13734 R: Send + Sync + std::fmt::Debug + 'static,
13735{
13736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>) -> Self {
13737 match err {
13738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13741 source: err.into(),
13742 }),
13743 }
13744 }
13745}
13746impl From<crate::operation::enable_ipam_policy::EnableIpamPolicyError> for Error {
13747 fn from(err: crate::operation::enable_ipam_policy::EnableIpamPolicyError) -> Self {
13748 match err {
13749 crate::operation::enable_ipam_policy::EnableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
13750 }
13751 }
13752}
13753impl<R>
13754 From<
13755 ::aws_smithy_runtime_api::client::result::SdkError<
13756 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13757 R,
13758 >,
13759 > for Error
13760where
13761 R: Send + Sync + std::fmt::Debug + 'static,
13762{
13763 fn from(
13764 err: ::aws_smithy_runtime_api::client::result::SdkError<
13765 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13766 R,
13767 >,
13768 ) -> Self {
13769 match err {
13770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13773 source: err.into(),
13774 }),
13775 }
13776 }
13777}
13778impl From<crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
13779 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
13780 match err {
13781 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
13782 inner,
13783 ) => Error::Unhandled(inner),
13784 }
13785 }
13786}
13787impl<R>
13788 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
13789 for Error
13790where
13791 R: Send + Sync + std::fmt::Debug + 'static,
13792{
13793 fn from(
13794 err: ::aws_smithy_runtime_api::client::result::SdkError<
13795 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
13796 R,
13797 >,
13798 ) -> Self {
13799 match err {
13800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13803 source: err.into(),
13804 }),
13805 }
13806 }
13807}
13808impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
13809 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
13810 match err {
13811 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
13812 }
13813 }
13814}
13815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
13816 for Error
13817where
13818 R: Send + Sync + std::fmt::Debug + 'static,
13819{
13820 fn from(
13821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
13822 ) -> Self {
13823 match err {
13824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13827 source: err.into(),
13828 }),
13829 }
13830 }
13831}
13832impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
13833 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
13834 match err {
13835 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
13836 }
13837 }
13838}
13839impl<R>
13840 From<
13841 ::aws_smithy_runtime_api::client::result::SdkError<
13842 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13843 R,
13844 >,
13845 > for Error
13846where
13847 R: Send + Sync + std::fmt::Debug + 'static,
13848{
13849 fn from(
13850 err: ::aws_smithy_runtime_api::client::result::SdkError<
13851 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13852 R,
13853 >,
13854 ) -> Self {
13855 match err {
13856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13859 source: err.into(),
13860 }),
13861 }
13862 }
13863}
13864impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
13865 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
13866 match err {
13867 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13868 }
13869 }
13870}
13871impl<R>
13872 From<
13873 ::aws_smithy_runtime_api::client::result::SdkError<
13874 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13875 R,
13876 >,
13877 > for Error
13878where
13879 R: Send + Sync + std::fmt::Debug + 'static,
13880{
13881 fn from(
13882 err: ::aws_smithy_runtime_api::client::result::SdkError<
13883 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13884 R,
13885 >,
13886 ) -> Self {
13887 match err {
13888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13891 source: err.into(),
13892 }),
13893 }
13894 }
13895}
13896impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
13897 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
13898 match err {
13899 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
13900 Error::Unhandled(inner)
13901 }
13902 }
13903 }
13904}
13905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
13906 for Error
13907where
13908 R: Send + Sync + std::fmt::Debug + 'static,
13909{
13910 fn from(
13911 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
13912 ) -> Self {
13913 match err {
13914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13917 source: err.into(),
13918 }),
13919 }
13920 }
13921}
13922impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
13923 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
13924 match err {
13925 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
13926 }
13927 }
13928}
13929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
13930where
13931 R: Send + Sync + std::fmt::Debug + 'static,
13932{
13933 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
13934 match err {
13935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13938 source: err.into(),
13939 }),
13940 }
13941 }
13942}
13943impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
13944 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
13945 match err {
13946 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
13947 }
13948 }
13949}
13950impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
13951where
13952 R: Send + Sync + std::fmt::Debug + 'static,
13953{
13954 fn from(
13955 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
13956 ) -> Self {
13957 match err {
13958 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13959 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13960 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13961 source: err.into(),
13962 }),
13963 }
13964 }
13965}
13966impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
13967 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
13968 match err {
13969 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
13970 }
13971 }
13972}
13973impl<R>
13974 From<
13975 ::aws_smithy_runtime_api::client::result::SdkError<
13976 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13977 R,
13978 >,
13979 > for Error
13980where
13981 R: Send + Sync + std::fmt::Debug + 'static,
13982{
13983 fn from(
13984 err: ::aws_smithy_runtime_api::client::result::SdkError<
13985 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13986 R,
13987 >,
13988 ) -> Self {
13989 match err {
13990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13993 source: err.into(),
13994 }),
13995 }
13996 }
13997}
13998impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
13999 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
14000 match err {
14001 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
14002 }
14003 }
14004}
14005impl<R>
14006 From<
14007 ::aws_smithy_runtime_api::client::result::SdkError<
14008 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
14009 R,
14010 >,
14011 > for Error
14012where
14013 R: Send + Sync + std::fmt::Debug + 'static,
14014{
14015 fn from(
14016 err: ::aws_smithy_runtime_api::client::result::SdkError<
14017 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
14018 R,
14019 >,
14020 ) -> Self {
14021 match err {
14022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14025 source: err.into(),
14026 }),
14027 }
14028 }
14029}
14030impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
14031 fn from(
14032 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
14033 ) -> Self {
14034 match err {
14035 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
14036 }
14037 }
14038}
14039impl<R>
14040 From<
14041 ::aws_smithy_runtime_api::client::result::SdkError<
14042 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
14043 R,
14044 >,
14045 > for Error
14046where
14047 R: Send + Sync + std::fmt::Debug + 'static,
14048{
14049 fn from(
14050 err: ::aws_smithy_runtime_api::client::result::SdkError<
14051 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
14052 R,
14053 >,
14054 ) -> Self {
14055 match err {
14056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14059 source: err.into(),
14060 }),
14061 }
14062 }
14063}
14064impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
14065 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
14066 match err {
14067 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
14068 Error::Unhandled(inner)
14069 }
14070 }
14071 }
14072}
14073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
14074where
14075 R: Send + Sync + std::fmt::Debug + 'static,
14076{
14077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
14078 match err {
14079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14082 source: err.into(),
14083 }),
14084 }
14085 }
14086}
14087impl From<crate::operation::export_image::ExportImageError> for Error {
14088 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
14089 match err {
14090 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
14091 }
14092 }
14093}
14094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
14095 for Error
14096where
14097 R: Send + Sync + std::fmt::Debug + 'static,
14098{
14099 fn from(
14100 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
14101 ) -> Self {
14102 match err {
14103 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14104 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14105 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14106 source: err.into(),
14107 }),
14108 }
14109 }
14110}
14111impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
14112 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
14113 match err {
14114 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
14115 }
14116 }
14117}
14118impl<R>
14119 From<
14120 ::aws_smithy_runtime_api::client::result::SdkError<
14121 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14122 R,
14123 >,
14124 > for Error
14125where
14126 R: Send + Sync + std::fmt::Debug + 'static,
14127{
14128 fn from(
14129 err: ::aws_smithy_runtime_api::client::result::SdkError<
14130 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14131 R,
14132 >,
14133 ) -> Self {
14134 match err {
14135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14138 source: err.into(),
14139 }),
14140 }
14141 }
14142}
14143impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
14144 fn from(
14145 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14146 ) -> Self {
14147 match err {
14148 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
14149 }
14150 }
14151}
14152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>>
14153 for Error
14154where
14155 R: Send + Sync + std::fmt::Debug + 'static,
14156{
14157 fn from(
14158 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>,
14159 ) -> Self {
14160 match err {
14161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14164 source: err.into(),
14165 }),
14166 }
14167 }
14168}
14169impl From<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
14170 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
14171 match err {
14172 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
14173 }
14174 }
14175}
14176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
14177 for Error
14178where
14179 R: Send + Sync + std::fmt::Debug + 'static,
14180{
14181 fn from(
14182 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
14183 ) -> Self {
14184 match err {
14185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14188 source: err.into(),
14189 }),
14190 }
14191 }
14192}
14193impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
14194 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
14195 match err {
14196 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
14197 }
14198 }
14199}
14200impl<R>
14201 From<
14202 ::aws_smithy_runtime_api::client::result::SdkError<
14203 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
14204 R,
14205 >,
14206 > for Error
14207where
14208 R: Send + Sync + std::fmt::Debug + 'static,
14209{
14210 fn from(
14211 err: ::aws_smithy_runtime_api::client::result::SdkError<
14212 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
14213 R,
14214 >,
14215 ) -> Self {
14216 match err {
14217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14220 source: err.into(),
14221 }),
14222 }
14223 }
14224}
14225impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
14226 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
14227 match err {
14228 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
14229 Error::Unhandled(inner)
14230 }
14231 }
14232 }
14233}
14234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
14235 for Error
14236where
14237 R: Send + Sync + std::fmt::Debug + 'static,
14238{
14239 fn from(
14240 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
14241 ) -> Self {
14242 match err {
14243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14246 source: err.into(),
14247 }),
14248 }
14249 }
14250}
14251impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
14252 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
14253 match err {
14254 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14255 }
14256 }
14257}
14258impl<R>
14259 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
14260 for Error
14261where
14262 R: Send + Sync + std::fmt::Debug + 'static,
14263{
14264 fn from(
14265 err: ::aws_smithy_runtime_api::client::result::SdkError<
14266 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
14267 R,
14268 >,
14269 ) -> Self {
14270 match err {
14271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14274 source: err.into(),
14275 }),
14276 }
14277 }
14278}
14279impl From<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
14280 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
14281 match err {
14282 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
14283 }
14284 }
14285}
14286impl<R>
14287 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, R>>
14288 for Error
14289where
14290 R: Send + Sync + std::fmt::Debug + 'static,
14291{
14292 fn from(
14293 err: ::aws_smithy_runtime_api::client::result::SdkError<
14294 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError,
14295 R,
14296 >,
14297 ) -> Self {
14298 match err {
14299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14302 source: err.into(),
14303 }),
14304 }
14305 }
14306}
14307impl From<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
14308 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
14309 match err {
14310 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
14311 }
14312 }
14313}
14314impl<R>
14315 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, R>>
14316 for Error
14317where
14318 R: Send + Sync + std::fmt::Debug + 'static,
14319{
14320 fn from(
14321 err: ::aws_smithy_runtime_api::client::result::SdkError<
14322 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError,
14323 R,
14324 >,
14325 ) -> Self {
14326 match err {
14327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14330 source: err.into(),
14331 }),
14332 }
14333 }
14334}
14335impl From<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError> for Error {
14336 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
14337 match err {
14338 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
14339 }
14340 }
14341}
14342impl<R>
14343 From<
14344 ::aws_smithy_runtime_api::client::result::SdkError<
14345 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14346 R,
14347 >,
14348 > for Error
14349where
14350 R: Send + Sync + std::fmt::Debug + 'static,
14351{
14352 fn from(
14353 err: ::aws_smithy_runtime_api::client::result::SdkError<
14354 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14355 R,
14356 >,
14357 ) -> Self {
14358 match err {
14359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14362 source: err.into(),
14363 }),
14364 }
14365 }
14366}
14367impl From<crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
14368 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
14369 match err {
14370 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
14371 Error::Unhandled(inner)
14372 }
14373 }
14374 }
14375}
14376impl<R>
14377 From<
14378 ::aws_smithy_runtime_api::client::result::SdkError<
14379 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError,
14380 R,
14381 >,
14382 > for Error
14383where
14384 R: Send + Sync + std::fmt::Debug + 'static,
14385{
14386 fn from(
14387 err: ::aws_smithy_runtime_api::client::result::SdkError<
14388 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError,
14389 R,
14390 >,
14391 ) -> Self {
14392 match err {
14393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14396 source: err.into(),
14397 }),
14398 }
14399 }
14400}
14401impl From<crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError> for Error {
14402 fn from(err: crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError) -> Self {
14403 match err {
14404 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError::Unhandled(inner) => {
14405 Error::Unhandled(inner)
14406 }
14407 }
14408 }
14409}
14410impl<R>
14411 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
14412 for Error
14413where
14414 R: Send + Sync + std::fmt::Debug + 'static,
14415{
14416 fn from(
14417 err: ::aws_smithy_runtime_api::client::result::SdkError<
14418 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
14419 R,
14420 >,
14421 ) -> Self {
14422 match err {
14423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14426 source: err.into(),
14427 }),
14428 }
14429 }
14430}
14431impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
14432 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
14433 match err {
14434 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
14435 }
14436 }
14437}
14438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
14439where
14440 R: Send + Sync + std::fmt::Debug + 'static,
14441{
14442 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
14443 match err {
14444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14447 source: err.into(),
14448 }),
14449 }
14450 }
14451}
14452impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
14453 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
14454 match err {
14455 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
14456 }
14457 }
14458}
14459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
14460where
14461 R: Send + Sync + std::fmt::Debug + 'static,
14462{
14463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
14464 match err {
14465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14468 source: err.into(),
14469 }),
14470 }
14471 }
14472}
14473impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
14474 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
14475 match err {
14476 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
14477 }
14478 }
14479}
14480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
14481where
14482 R: Send + Sync + std::fmt::Debug + 'static,
14483{
14484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
14485 match err {
14486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14489 source: err.into(),
14490 }),
14491 }
14492 }
14493}
14494impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
14495 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
14496 match err {
14497 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
14498 }
14499 }
14500}
14501impl<R>
14502 From<
14503 ::aws_smithy_runtime_api::client::result::SdkError<
14504 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14505 R,
14506 >,
14507 > for Error
14508where
14509 R: Send + Sync + std::fmt::Debug + 'static,
14510{
14511 fn from(
14512 err: ::aws_smithy_runtime_api::client::result::SdkError<
14513 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14514 R,
14515 >,
14516 ) -> Self {
14517 match err {
14518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14521 source: err.into(),
14522 }),
14523 }
14524 }
14525}
14526impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
14527 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
14528 match err {
14529 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
14530 Error::Unhandled(inner)
14531 }
14532 }
14533 }
14534}
14535impl<R>
14536 From<
14537 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
14538 > for Error
14539where
14540 R: Send + Sync + std::fmt::Debug + 'static,
14541{
14542 fn from(
14543 err: ::aws_smithy_runtime_api::client::result::SdkError<
14544 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
14545 R,
14546 >,
14547 ) -> Self {
14548 match err {
14549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14552 source: err.into(),
14553 }),
14554 }
14555 }
14556}
14557impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
14558 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
14559 match err {
14560 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
14561 }
14562 }
14563}
14564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
14565 for Error
14566where
14567 R: Send + Sync + std::fmt::Debug + 'static,
14568{
14569 fn from(
14570 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
14571 ) -> Self {
14572 match err {
14573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14576 source: err.into(),
14577 }),
14578 }
14579 }
14580}
14581impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
14582 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
14583 match err {
14584 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
14585 }
14586 }
14587}
14588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
14589 for Error
14590where
14591 R: Send + Sync + std::fmt::Debug + 'static,
14592{
14593 fn from(
14594 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
14595 ) -> Self {
14596 match err {
14597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14600 source: err.into(),
14601 }),
14602 }
14603 }
14604}
14605impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
14606 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
14607 match err {
14608 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
14609 }
14610 }
14611}
14612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>> for Error
14613where
14614 R: Send + Sync + std::fmt::Debug + 'static,
14615{
14616 fn from(
14617 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>,
14618 ) -> Self {
14619 match err {
14620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14623 source: err.into(),
14624 }),
14625 }
14626 }
14627}
14628impl From<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError> for Error {
14629 fn from(err: crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError) -> Self {
14630 match err {
14631 crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14632 }
14633 }
14634}
14635impl<R>
14636 From<
14637 ::aws_smithy_runtime_api::client::result::SdkError<
14638 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14639 R,
14640 >,
14641 > for Error
14642where
14643 R: Send + Sync + std::fmt::Debug + 'static,
14644{
14645 fn from(
14646 err: ::aws_smithy_runtime_api::client::result::SdkError<
14647 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14648 R,
14649 >,
14650 ) -> Self {
14651 match err {
14652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14655 source: err.into(),
14656 }),
14657 }
14658 }
14659}
14660impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
14661 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
14662 match err {
14663 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
14664 }
14665 }
14666}
14667impl<R>
14668 From<
14669 ::aws_smithy_runtime_api::client::result::SdkError<
14670 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14671 R,
14672 >,
14673 > for Error
14674where
14675 R: Send + Sync + std::fmt::Debug + 'static,
14676{
14677 fn from(
14678 err: ::aws_smithy_runtime_api::client::result::SdkError<
14679 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14680 R,
14681 >,
14682 ) -> Self {
14683 match err {
14684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14687 source: err.into(),
14688 }),
14689 }
14690 }
14691}
14692impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
14693 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
14694 match err {
14695 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
14696 }
14697 }
14698}
14699impl<R>
14700 From<
14701 ::aws_smithy_runtime_api::client::result::SdkError<
14702 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14703 R,
14704 >,
14705 > for Error
14706where
14707 R: Send + Sync + std::fmt::Debug + 'static,
14708{
14709 fn from(
14710 err: ::aws_smithy_runtime_api::client::result::SdkError<
14711 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14712 R,
14713 >,
14714 ) -> Self {
14715 match err {
14716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14719 source: err.into(),
14720 }),
14721 }
14722 }
14723}
14724impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
14725 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
14726 match err {
14727 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
14728 Error::Unhandled(inner)
14729 }
14730 }
14731 }
14732}
14733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>> for Error
14734where
14735 R: Send + Sync + std::fmt::Debug + 'static,
14736{
14737 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>) -> Self {
14738 match err {
14739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14742 source: err.into(),
14743 }),
14744 }
14745 }
14746}
14747impl From<crate::operation::get_image_ancestry::GetImageAncestryError> for Error {
14748 fn from(err: crate::operation::get_image_ancestry::GetImageAncestryError) -> Self {
14749 match err {
14750 crate::operation::get_image_ancestry::GetImageAncestryError::Unhandled(inner) => Error::Unhandled(inner),
14751 }
14752 }
14753}
14754impl<R>
14755 From<
14756 ::aws_smithy_runtime_api::client::result::SdkError<
14757 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14758 R,
14759 >,
14760 > for Error
14761where
14762 R: Send + Sync + std::fmt::Debug + 'static,
14763{
14764 fn from(
14765 err: ::aws_smithy_runtime_api::client::result::SdkError<
14766 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14767 R,
14768 >,
14769 ) -> Self {
14770 match err {
14771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14774 source: err.into(),
14775 }),
14776 }
14777 }
14778}
14779impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
14780 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
14781 match err {
14782 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
14783 }
14784 }
14785}
14786impl<R>
14787 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
14788 for Error
14789where
14790 R: Send + Sync + std::fmt::Debug + 'static,
14791{
14792 fn from(
14793 err: ::aws_smithy_runtime_api::client::result::SdkError<
14794 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
14795 R,
14796 >,
14797 ) -> Self {
14798 match err {
14799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14802 source: err.into(),
14803 }),
14804 }
14805 }
14806}
14807impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
14808 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
14809 match err {
14810 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
14811 }
14812 }
14813}
14814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
14815where
14816 R: Send + Sync + std::fmt::Debug + 'static,
14817{
14818 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
14819 match err {
14820 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14821 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14822 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14823 source: err.into(),
14824 }),
14825 }
14826 }
14827}
14828impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
14829 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
14830 match err {
14831 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
14832 }
14833 }
14834}
14835impl<R>
14836 From<
14837 ::aws_smithy_runtime_api::client::result::SdkError<
14838 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14839 R,
14840 >,
14841 > for Error
14842where
14843 R: Send + Sync + std::fmt::Debug + 'static,
14844{
14845 fn from(
14846 err: ::aws_smithy_runtime_api::client::result::SdkError<
14847 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14848 R,
14849 >,
14850 ) -> Self {
14851 match err {
14852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14855 source: err.into(),
14856 }),
14857 }
14858 }
14859}
14860impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
14861 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
14862 match err {
14863 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
14864 Error::Unhandled(inner)
14865 }
14866 }
14867 }
14868}
14869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
14870where
14871 R: Send + Sync + std::fmt::Debug + 'static,
14872{
14873 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
14874 match err {
14875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14878 source: err.into(),
14879 }),
14880 }
14881 }
14882}
14883impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
14884 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
14885 match err {
14886 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
14887 }
14888 }
14889}
14890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
14891where
14892 R: Send + Sync + std::fmt::Debug + 'static,
14893{
14894 fn from(
14895 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
14896 ) -> Self {
14897 match err {
14898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14901 source: err.into(),
14902 }),
14903 }
14904 }
14905}
14906impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
14907 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
14908 match err {
14909 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
14910 }
14911 }
14912}
14913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
14914 for Error
14915where
14916 R: Send + Sync + std::fmt::Debug + 'static,
14917{
14918 fn from(
14919 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
14920 ) -> Self {
14921 match err {
14922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14925 source: err.into(),
14926 }),
14927 }
14928 }
14929}
14930impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14931 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14932 match err {
14933 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14934 }
14935 }
14936}
14937impl<R>
14938 From<
14939 ::aws_smithy_runtime_api::client::result::SdkError<
14940 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14941 R,
14942 >,
14943 > for Error
14944where
14945 R: Send + Sync + std::fmt::Debug + 'static,
14946{
14947 fn from(
14948 err: ::aws_smithy_runtime_api::client::result::SdkError<
14949 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14950 R,
14951 >,
14952 ) -> Self {
14953 match err {
14954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14957 source: err.into(),
14958 }),
14959 }
14960 }
14961}
14962impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14963 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14964 match err {
14965 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14966 Error::Unhandled(inner)
14967 }
14968 }
14969 }
14970}
14971impl<R>
14972 From<
14973 ::aws_smithy_runtime_api::client::result::SdkError<
14974 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14975 R,
14976 >,
14977 > for Error
14978where
14979 R: Send + Sync + std::fmt::Debug + 'static,
14980{
14981 fn from(
14982 err: ::aws_smithy_runtime_api::client::result::SdkError<
14983 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14984 R,
14985 >,
14986 ) -> Self {
14987 match err {
14988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14991 source: err.into(),
14992 }),
14993 }
14994 }
14995}
14996impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14997 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14998 match err {
14999 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
15000 }
15001 }
15002}
15003impl<R>
15004 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError, R>>
15005 for Error
15006where
15007 R: Send + Sync + std::fmt::Debug + 'static,
15008{
15009 fn from(
15010 err: ::aws_smithy_runtime_api::client::result::SdkError<
15011 crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError,
15012 R,
15013 >,
15014 ) -> Self {
15015 match err {
15016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15019 source: err.into(),
15020 }),
15021 }
15022 }
15023}
15024impl From<crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError> for Error {
15025 fn from(err: crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError) -> Self {
15026 match err {
15027 crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
15028 }
15029 }
15030}
15031impl<R>
15032 From<
15033 ::aws_smithy_runtime_api::client::result::SdkError<
15034 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
15035 R,
15036 >,
15037 > for Error
15038where
15039 R: Send + Sync + std::fmt::Debug + 'static,
15040{
15041 fn from(
15042 err: ::aws_smithy_runtime_api::client::result::SdkError<
15043 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
15044 R,
15045 >,
15046 ) -> Self {
15047 match err {
15048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15051 source: err.into(),
15052 }),
15053 }
15054 }
15055}
15056impl From<crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError> for Error {
15057 fn from(err: crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError) -> Self {
15058 match err {
15059 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError::Unhandled(inner) => {
15060 Error::Unhandled(inner)
15061 }
15062 }
15063 }
15064}
15065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
15066 for Error
15067where
15068 R: Send + Sync + std::fmt::Debug + 'static,
15069{
15070 fn from(
15071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
15072 ) -> Self {
15073 match err {
15074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15077 source: err.into(),
15078 }),
15079 }
15080 }
15081}
15082impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
15083 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
15084 match err {
15085 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
15086 }
15087 }
15088}
15089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
15090where
15091 R: Send + Sync + std::fmt::Debug + 'static,
15092{
15093 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
15094 match err {
15095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15098 source: err.into(),
15099 }),
15100 }
15101 }
15102}
15103impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
15104 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
15105 match err {
15106 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
15107 }
15108 }
15109}
15110impl<R>
15111 From<
15112 ::aws_smithy_runtime_api::client::result::SdkError<
15113 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
15114 R,
15115 >,
15116 > for Error
15117where
15118 R: Send + Sync + std::fmt::Debug + 'static,
15119{
15120 fn from(
15121 err: ::aws_smithy_runtime_api::client::result::SdkError<
15122 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
15123 R,
15124 >,
15125 ) -> Self {
15126 match err {
15127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15130 source: err.into(),
15131 }),
15132 }
15133 }
15134}
15135impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
15136 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
15137 match err {
15138 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
15139 }
15140 }
15141}
15142impl<R>
15143 From<
15144 ::aws_smithy_runtime_api::client::result::SdkError<
15145 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
15146 R,
15147 >,
15148 > for Error
15149where
15150 R: Send + Sync + std::fmt::Debug + 'static,
15151{
15152 fn from(
15153 err: ::aws_smithy_runtime_api::client::result::SdkError<
15154 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
15155 R,
15156 >,
15157 ) -> Self {
15158 match err {
15159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15162 source: err.into(),
15163 }),
15164 }
15165 }
15166}
15167impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
15168 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
15169 match err {
15170 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
15171 Error::Unhandled(inner)
15172 }
15173 }
15174 }
15175}
15176impl<R>
15177 From<
15178 ::aws_smithy_runtime_api::client::result::SdkError<
15179 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
15180 R,
15181 >,
15182 > for Error
15183where
15184 R: Send + Sync + std::fmt::Debug + 'static,
15185{
15186 fn from(
15187 err: ::aws_smithy_runtime_api::client::result::SdkError<
15188 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
15189 R,
15190 >,
15191 ) -> Self {
15192 match err {
15193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15196 source: err.into(),
15197 }),
15198 }
15199 }
15200}
15201impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
15202 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
15203 match err {
15204 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
15205 Error::Unhandled(inner)
15206 }
15207 }
15208 }
15209}
15210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
15211where
15212 R: Send + Sync + std::fmt::Debug + 'static,
15213{
15214 fn from(
15215 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
15216 ) -> Self {
15217 match err {
15218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15221 source: err.into(),
15222 }),
15223 }
15224 }
15225}
15226impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
15227 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
15228 match err {
15229 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
15230 }
15231 }
15232}
15233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
15234where
15235 R: Send + Sync + std::fmt::Debug + 'static,
15236{
15237 fn from(
15238 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
15239 ) -> Self {
15240 match err {
15241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15244 source: err.into(),
15245 }),
15246 }
15247 }
15248}
15249impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
15250 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
15251 match err {
15252 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
15253 }
15254 }
15255}
15256impl<R>
15257 From<
15258 ::aws_smithy_runtime_api::client::result::SdkError<
15259 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
15260 R,
15261 >,
15262 > for Error
15263where
15264 R: Send + Sync + std::fmt::Debug + 'static,
15265{
15266 fn from(
15267 err: ::aws_smithy_runtime_api::client::result::SdkError<
15268 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
15269 R,
15270 >,
15271 ) -> Self {
15272 match err {
15273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15276 source: err.into(),
15277 }),
15278 }
15279 }
15280}
15281impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
15282 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
15283 match err {
15284 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
15285 Error::Unhandled(inner)
15286 }
15287 }
15288 }
15289}
15290impl<R>
15291 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
15292 for Error
15293where
15294 R: Send + Sync + std::fmt::Debug + 'static,
15295{
15296 fn from(
15297 err: ::aws_smithy_runtime_api::client::result::SdkError<
15298 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
15299 R,
15300 >,
15301 ) -> Self {
15302 match err {
15303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15306 source: err.into(),
15307 }),
15308 }
15309 }
15310}
15311impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
15312 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
15313 match err {
15314 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
15315 }
15316 }
15317}
15318impl<R>
15319 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError, R>>
15320 for Error
15321where
15322 R: Send + Sync + std::fmt::Debug + 'static,
15323{
15324 fn from(
15325 err: ::aws_smithy_runtime_api::client::result::SdkError<
15326 crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError,
15327 R,
15328 >,
15329 ) -> Self {
15330 match err {
15331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15334 source: err.into(),
15335 }),
15336 }
15337 }
15338}
15339impl From<crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError> for Error {
15340 fn from(err: crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError) -> Self {
15341 match err {
15342 crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
15343 }
15344 }
15345}
15346impl<R>
15347 From<
15348 ::aws_smithy_runtime_api::client::result::SdkError<
15349 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15350 R,
15351 >,
15352 > for Error
15353where
15354 R: Send + Sync + std::fmt::Debug + 'static,
15355{
15356 fn from(
15357 err: ::aws_smithy_runtime_api::client::result::SdkError<
15358 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15359 R,
15360 >,
15361 ) -> Self {
15362 match err {
15363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15366 source: err.into(),
15367 }),
15368 }
15369 }
15370}
15371impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
15372 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
15373 match err {
15374 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
15375 inner,
15376 ) => Error::Unhandled(inner),
15377 }
15378 }
15379}
15380impl<R>
15381 From<
15382 ::aws_smithy_runtime_api::client::result::SdkError<
15383 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15384 R,
15385 >,
15386 > for Error
15387where
15388 R: Send + Sync + std::fmt::Debug + 'static,
15389{
15390 fn from(
15391 err: ::aws_smithy_runtime_api::client::result::SdkError<
15392 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15393 R,
15394 >,
15395 ) -> Self {
15396 match err {
15397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15400 source: err.into(),
15401 }),
15402 }
15403 }
15404}
15405impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
15406 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
15407 match err {
15408 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
15409 Error::Unhandled(inner)
15410 }
15411 }
15412 }
15413}
15414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
15415where
15416 R: Send + Sync + std::fmt::Debug + 'static,
15417{
15418 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
15419 match err {
15420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15423 source: err.into(),
15424 }),
15425 }
15426 }
15427}
15428impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
15429 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
15430 match err {
15431 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
15432 }
15433 }
15434}
15435impl<R>
15436 From<
15437 ::aws_smithy_runtime_api::client::result::SdkError<
15438 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15439 R,
15440 >,
15441 > for Error
15442where
15443 R: Send + Sync + std::fmt::Debug + 'static,
15444{
15445 fn from(
15446 err: ::aws_smithy_runtime_api::client::result::SdkError<
15447 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15448 R,
15449 >,
15450 ) -> Self {
15451 match err {
15452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15455 source: err.into(),
15456 }),
15457 }
15458 }
15459}
15460impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
15461 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
15462 match err {
15463 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
15464 Error::Unhandled(inner)
15465 }
15466 }
15467 }
15468}
15469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
15470 for Error
15471where
15472 R: Send + Sync + std::fmt::Debug + 'static,
15473{
15474 fn from(
15475 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
15476 ) -> Self {
15477 match err {
15478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15481 source: err.into(),
15482 }),
15483 }
15484 }
15485}
15486impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
15487 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
15488 match err {
15489 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
15490 }
15491 }
15492}
15493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
15494 for Error
15495where
15496 R: Send + Sync + std::fmt::Debug + 'static,
15497{
15498 fn from(
15499 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
15500 ) -> Self {
15501 match err {
15502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15505 source: err.into(),
15506 }),
15507 }
15508 }
15509}
15510impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
15511 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
15512 match err {
15513 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
15514 }
15515 }
15516}
15517impl<R>
15518 From<
15519 ::aws_smithy_runtime_api::client::result::SdkError<
15520 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15521 R,
15522 >,
15523 > for Error
15524where
15525 R: Send + Sync + std::fmt::Debug + 'static,
15526{
15527 fn from(
15528 err: ::aws_smithy_runtime_api::client::result::SdkError<
15529 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15530 R,
15531 >,
15532 ) -> Self {
15533 match err {
15534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15537 source: err.into(),
15538 }),
15539 }
15540 }
15541}
15542impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
15543 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
15544 match err {
15545 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
15546 }
15547 }
15548}
15549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
15550 for Error
15551where
15552 R: Send + Sync + std::fmt::Debug + 'static,
15553{
15554 fn from(
15555 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
15556 ) -> Self {
15557 match err {
15558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15561 source: err.into(),
15562 }),
15563 }
15564 }
15565}
15566impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
15567 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
15568 match err {
15569 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
15570 }
15571 }
15572}
15573impl<R>
15574 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
15575 for Error
15576where
15577 R: Send + Sync + std::fmt::Debug + 'static,
15578{
15579 fn from(
15580 err: ::aws_smithy_runtime_api::client::result::SdkError<
15581 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
15582 R,
15583 >,
15584 ) -> Self {
15585 match err {
15586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15589 source: err.into(),
15590 }),
15591 }
15592 }
15593}
15594impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
15595 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
15596 match err {
15597 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
15598 }
15599 }
15600}
15601impl<R>
15602 From<
15603 ::aws_smithy_runtime_api::client::result::SdkError<
15604 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15605 R,
15606 >,
15607 > for Error
15608where
15609 R: Send + Sync + std::fmt::Debug + 'static,
15610{
15611 fn from(
15612 err: ::aws_smithy_runtime_api::client::result::SdkError<
15613 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15614 R,
15615 >,
15616 ) -> Self {
15617 match err {
15618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15621 source: err.into(),
15622 }),
15623 }
15624 }
15625}
15626impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
15627 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
15628 match err {
15629 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
15630 Error::Unhandled(inner)
15631 }
15632 }
15633 }
15634}
15635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
15636 for Error
15637where
15638 R: Send + Sync + std::fmt::Debug + 'static,
15639{
15640 fn from(
15641 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
15642 ) -> Self {
15643 match err {
15644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15647 source: err.into(),
15648 }),
15649 }
15650 }
15651}
15652impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
15653 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
15654 match err {
15655 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
15656 }
15657 }
15658}
15659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
15660 for Error
15661where
15662 R: Send + Sync + std::fmt::Debug + 'static,
15663{
15664 fn from(
15665 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
15666 ) -> Self {
15667 match err {
15668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15671 source: err.into(),
15672 }),
15673 }
15674 }
15675}
15676impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
15677 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
15678 match err {
15679 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
15680 }
15681 }
15682}
15683impl<R>
15684 From<
15685 ::aws_smithy_runtime_api::client::result::SdkError<
15686 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15687 R,
15688 >,
15689 > for Error
15690where
15691 R: Send + Sync + std::fmt::Debug + 'static,
15692{
15693 fn from(
15694 err: ::aws_smithy_runtime_api::client::result::SdkError<
15695 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15696 R,
15697 >,
15698 ) -> Self {
15699 match err {
15700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15703 source: err.into(),
15704 }),
15705 }
15706 }
15707}
15708impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
15709 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
15710 match err {
15711 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
15712 Error::Unhandled(inner)
15713 }
15714 }
15715 }
15716}
15717impl<R>
15718 From<
15719 ::aws_smithy_runtime_api::client::result::SdkError<
15720 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15721 R,
15722 >,
15723 > for Error
15724where
15725 R: Send + Sync + std::fmt::Debug + 'static,
15726{
15727 fn from(
15728 err: ::aws_smithy_runtime_api::client::result::SdkError<
15729 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15730 R,
15731 >,
15732 ) -> Self {
15733 match err {
15734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15737 source: err.into(),
15738 }),
15739 }
15740 }
15741}
15742impl From<crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError> for Error {
15743 fn from(err: crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError) -> Self {
15744 match err {
15745 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError::Unhandled(inner) => {
15746 Error::Unhandled(inner)
15747 }
15748 }
15749 }
15750}
15751impl<R>
15752 From<
15753 ::aws_smithy_runtime_api::client::result::SdkError<
15754 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15755 R,
15756 >,
15757 > for Error
15758where
15759 R: Send + Sync + std::fmt::Debug + 'static,
15760{
15761 fn from(
15762 err: ::aws_smithy_runtime_api::client::result::SdkError<
15763 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15764 R,
15765 >,
15766 ) -> Self {
15767 match err {
15768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15771 source: err.into(),
15772 }),
15773 }
15774 }
15775}
15776impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
15777 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
15778 match err {
15779 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
15780 inner,
15781 ) => Error::Unhandled(inner),
15782 }
15783 }
15784}
15785impl<R>
15786 From<
15787 ::aws_smithy_runtime_api::client::result::SdkError<
15788 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15789 R,
15790 >,
15791 > for Error
15792where
15793 R: Send + Sync + std::fmt::Debug + 'static,
15794{
15795 fn from(
15796 err: ::aws_smithy_runtime_api::client::result::SdkError<
15797 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15798 R,
15799 >,
15800 ) -> Self {
15801 match err {
15802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15805 source: err.into(),
15806 }),
15807 }
15808 }
15809}
15810impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
15811 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
15812 match err {
15813 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
15814 Error::Unhandled(inner)
15815 }
15816 }
15817 }
15818}
15819impl<R>
15820 From<
15821 ::aws_smithy_runtime_api::client::result::SdkError<
15822 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15823 R,
15824 >,
15825 > for Error
15826where
15827 R: Send + Sync + std::fmt::Debug + 'static,
15828{
15829 fn from(
15830 err: ::aws_smithy_runtime_api::client::result::SdkError<
15831 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15832 R,
15833 >,
15834 ) -> Self {
15835 match err {
15836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15839 source: err.into(),
15840 }),
15841 }
15842 }
15843}
15844impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
15845 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
15846 match err {
15847 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
15848 Error::Unhandled(inner)
15849 }
15850 }
15851 }
15852}
15853impl<R>
15854 From<
15855 ::aws_smithy_runtime_api::client::result::SdkError<
15856 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15857 R,
15858 >,
15859 > for Error
15860where
15861 R: Send + Sync + std::fmt::Debug + 'static,
15862{
15863 fn from(
15864 err: ::aws_smithy_runtime_api::client::result::SdkError<
15865 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15866 R,
15867 >,
15868 ) -> Self {
15869 match err {
15870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15873 source: err.into(),
15874 }),
15875 }
15876 }
15877}
15878impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
15879 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
15880 match err {
15881 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
15882 Error::Unhandled(inner)
15883 }
15884 }
15885 }
15886}
15887impl<R>
15888 From<
15889 ::aws_smithy_runtime_api::client::result::SdkError<
15890 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15891 R,
15892 >,
15893 > for Error
15894where
15895 R: Send + Sync + std::fmt::Debug + 'static,
15896{
15897 fn from(
15898 err: ::aws_smithy_runtime_api::client::result::SdkError<
15899 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15900 R,
15901 >,
15902 ) -> Self {
15903 match err {
15904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15907 source: err.into(),
15908 }),
15909 }
15910 }
15911}
15912impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
15913 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
15914 match err {
15915 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
15916 Error::Unhandled(inner)
15917 }
15918 }
15919 }
15920}
15921impl<R>
15922 From<
15923 ::aws_smithy_runtime_api::client::result::SdkError<
15924 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15925 R,
15926 >,
15927 > for Error
15928where
15929 R: Send + Sync + std::fmt::Debug + 'static,
15930{
15931 fn from(
15932 err: ::aws_smithy_runtime_api::client::result::SdkError<
15933 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15934 R,
15935 >,
15936 ) -> Self {
15937 match err {
15938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15941 source: err.into(),
15942 }),
15943 }
15944 }
15945}
15946impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
15947 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
15948 match err {
15949 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
15950 Error::Unhandled(inner)
15951 }
15952 }
15953 }
15954}
15955impl<R>
15956 From<
15957 ::aws_smithy_runtime_api::client::result::SdkError<
15958 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15959 R,
15960 >,
15961 > for Error
15962where
15963 R: Send + Sync + std::fmt::Debug + 'static,
15964{
15965 fn from(
15966 err: ::aws_smithy_runtime_api::client::result::SdkError<
15967 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15968 R,
15969 >,
15970 ) -> Self {
15971 match err {
15972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15975 source: err.into(),
15976 }),
15977 }
15978 }
15979}
15980impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
15981 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
15982 match err {
15983 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15984 }
15985 }
15986}
15987impl<R>
15988 From<
15989 ::aws_smithy_runtime_api::client::result::SdkError<
15990 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15991 R,
15992 >,
15993 > for Error
15994where
15995 R: Send + Sync + std::fmt::Debug + 'static,
15996{
15997 fn from(
15998 err: ::aws_smithy_runtime_api::client::result::SdkError<
15999 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
16000 R,
16001 >,
16002 ) -> Self {
16003 match err {
16004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16007 source: err.into(),
16008 }),
16009 }
16010 }
16011}
16012impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
16013 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
16014 match err {
16015 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
16016 Error::Unhandled(inner)
16017 }
16018 }
16019 }
16020}
16021impl<R>
16022 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
16023 for Error
16024where
16025 R: Send + Sync + std::fmt::Debug + 'static,
16026{
16027 fn from(
16028 err: ::aws_smithy_runtime_api::client::result::SdkError<
16029 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
16030 R,
16031 >,
16032 ) -> Self {
16033 match err {
16034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16037 source: err.into(),
16038 }),
16039 }
16040 }
16041}
16042impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
16043 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
16044 match err {
16045 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16046 }
16047 }
16048}
16049impl<R>
16050 From<
16051 ::aws_smithy_runtime_api::client::result::SdkError<
16052 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
16053 R,
16054 >,
16055 > for Error
16056where
16057 R: Send + Sync + std::fmt::Debug + 'static,
16058{
16059 fn from(
16060 err: ::aws_smithy_runtime_api::client::result::SdkError<
16061 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
16062 R,
16063 >,
16064 ) -> Self {
16065 match err {
16066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16069 source: err.into(),
16070 }),
16071 }
16072 }
16073}
16074impl From<crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError> for Error {
16075 fn from(err: crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError) -> Self {
16076 match err {
16077 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError::Unhandled(
16078 inner,
16079 ) => Error::Unhandled(inner),
16080 }
16081 }
16082}
16083impl<R>
16084 From<
16085 ::aws_smithy_runtime_api::client::result::SdkError<
16086 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
16087 R,
16088 >,
16089 > for Error
16090where
16091 R: Send + Sync + std::fmt::Debug + 'static,
16092{
16093 fn from(
16094 err: ::aws_smithy_runtime_api::client::result::SdkError<
16095 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
16096 R,
16097 >,
16098 ) -> Self {
16099 match err {
16100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16103 source: err.into(),
16104 }),
16105 }
16106 }
16107}
16108impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
16109 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
16110 match err {
16111 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
16112 Error::Unhandled(inner)
16113 }
16114 }
16115 }
16116}
16117impl<R>
16118 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
16119 for Error
16120where
16121 R: Send + Sync + std::fmt::Debug + 'static,
16122{
16123 fn from(
16124 err: ::aws_smithy_runtime_api::client::result::SdkError<
16125 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
16126 R,
16127 >,
16128 ) -> Self {
16129 match err {
16130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16133 source: err.into(),
16134 }),
16135 }
16136 }
16137}
16138impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
16139 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
16140 match err {
16141 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
16142 }
16143 }
16144}
16145impl<R>
16146 From<
16147 ::aws_smithy_runtime_api::client::result::SdkError<
16148 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
16149 R,
16150 >,
16151 > for Error
16152where
16153 R: Send + Sync + std::fmt::Debug + 'static,
16154{
16155 fn from(
16156 err: ::aws_smithy_runtime_api::client::result::SdkError<
16157 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
16158 R,
16159 >,
16160 ) -> Self {
16161 match err {
16162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16165 source: err.into(),
16166 }),
16167 }
16168 }
16169}
16170impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
16171 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
16172 match err {
16173 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
16174 }
16175 }
16176}
16177impl<R>
16178 From<
16179 ::aws_smithy_runtime_api::client::result::SdkError<
16180 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16181 R,
16182 >,
16183 > for Error
16184where
16185 R: Send + Sync + std::fmt::Debug + 'static,
16186{
16187 fn from(
16188 err: ::aws_smithy_runtime_api::client::result::SdkError<
16189 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16190 R,
16191 >,
16192 ) -> Self {
16193 match err {
16194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16197 source: err.into(),
16198 }),
16199 }
16200 }
16201}
16202impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
16203 fn from(
16204 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16205 ) -> Self {
16206 match err {
16207 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
16208 }
16209 }
16210}
16211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
16212where
16213 R: Send + Sync + std::fmt::Debug + 'static,
16214{
16215 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
16216 match err {
16217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16220 source: err.into(),
16221 }),
16222 }
16223 }
16224}
16225impl From<crate::operation::import_image::ImportImageError> for Error {
16226 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
16227 match err {
16228 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
16229 }
16230 }
16231}
16232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
16233where
16234 R: Send + Sync + std::fmt::Debug + 'static,
16235{
16236 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
16237 match err {
16238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16241 source: err.into(),
16242 }),
16243 }
16244 }
16245}
16246impl From<crate::operation::import_instance::ImportInstanceError> for Error {
16247 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
16248 match err {
16249 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
16250 }
16251 }
16252}
16253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
16254where
16255 R: Send + Sync + std::fmt::Debug + 'static,
16256{
16257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
16258 match err {
16259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16262 source: err.into(),
16263 }),
16264 }
16265 }
16266}
16267impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
16268 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
16269 match err {
16270 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
16271 }
16272 }
16273}
16274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
16275where
16276 R: Send + Sync + std::fmt::Debug + 'static,
16277{
16278 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
16279 match err {
16280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16283 source: err.into(),
16284 }),
16285 }
16286 }
16287}
16288impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
16289 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
16290 match err {
16291 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
16292 }
16293 }
16294}
16295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
16296where
16297 R: Send + Sync + std::fmt::Debug + 'static,
16298{
16299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
16300 match err {
16301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16304 source: err.into(),
16305 }),
16306 }
16307 }
16308}
16309impl From<crate::operation::import_volume::ImportVolumeError> for Error {
16310 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
16311 match err {
16312 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
16313 }
16314 }
16315}
16316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
16317 for Error
16318where
16319 R: Send + Sync + std::fmt::Debug + 'static,
16320{
16321 fn from(
16322 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
16323 ) -> Self {
16324 match err {
16325 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16326 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16327 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16328 source: err.into(),
16329 }),
16330 }
16331 }
16332}
16333impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
16334 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
16335 match err {
16336 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16337 }
16338 }
16339}
16340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
16341 for Error
16342where
16343 R: Send + Sync + std::fmt::Debug + 'static,
16344{
16345 fn from(
16346 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
16347 ) -> Self {
16348 match err {
16349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16352 source: err.into(),
16353 }),
16354 }
16355 }
16356}
16357impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
16358 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
16359 match err {
16360 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16361 }
16362 }
16363}
16364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>>
16365 for Error
16366where
16367 R: Send + Sync + std::fmt::Debug + 'static,
16368{
16369 fn from(
16370 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>,
16371 ) -> Self {
16372 match err {
16373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16376 source: err.into(),
16377 }),
16378 }
16379 }
16380}
16381impl From<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError> for Error {
16382 fn from(err: crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError) -> Self {
16383 match err {
16384 crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16385 }
16386 }
16387}
16388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
16389where
16390 R: Send + Sync + std::fmt::Debug + 'static,
16391{
16392 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
16393 match err {
16394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16397 source: err.into(),
16398 }),
16399 }
16400 }
16401}
16402impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
16403 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
16404 match err {
16405 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
16406 }
16407 }
16408}
16409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
16410where
16411 R: Send + Sync + std::fmt::Debug + 'static,
16412{
16413 fn from(
16414 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
16415 ) -> Self {
16416 match err {
16417 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16418 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16419 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16420 source: err.into(),
16421 }),
16422 }
16423 }
16424}
16425impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
16426 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
16427 match err {
16428 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16429 }
16430 }
16431}
16432impl<R>
16433 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
16434 for Error
16435where
16436 R: Send + Sync + std::fmt::Debug + 'static,
16437{
16438 fn from(
16439 err: ::aws_smithy_runtime_api::client::result::SdkError<
16440 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
16441 R,
16442 >,
16443 ) -> Self {
16444 match err {
16445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16448 source: err.into(),
16449 }),
16450 }
16451 }
16452}
16453impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
16454 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
16455 match err {
16456 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
16457 }
16458 }
16459}
16460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
16461 for Error
16462where
16463 R: Send + Sync + std::fmt::Debug + 'static,
16464{
16465 fn from(
16466 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
16467 ) -> Self {
16468 match err {
16469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16472 source: err.into(),
16473 }),
16474 }
16475 }
16476}
16477impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
16478 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
16479 match err {
16480 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
16481 }
16482 }
16483}
16484impl<R>
16485 From<
16486 ::aws_smithy_runtime_api::client::result::SdkError<
16487 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16488 R,
16489 >,
16490 > for Error
16491where
16492 R: Send + Sync + std::fmt::Debug + 'static,
16493{
16494 fn from(
16495 err: ::aws_smithy_runtime_api::client::result::SdkError<
16496 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16497 R,
16498 >,
16499 ) -> Self {
16500 match err {
16501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16504 source: err.into(),
16505 }),
16506 }
16507 }
16508}
16509impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
16510 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
16511 match err {
16512 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
16513 }
16514 }
16515}
16516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
16517 for Error
16518where
16519 R: Send + Sync + std::fmt::Debug + 'static,
16520{
16521 fn from(
16522 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
16523 ) -> Self {
16524 match err {
16525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16528 source: err.into(),
16529 }),
16530 }
16531 }
16532}
16533impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
16534 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
16535 match err {
16536 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16537 }
16538 }
16539}
16540impl<R>
16541 From<
16542 ::aws_smithy_runtime_api::client::result::SdkError<
16543 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16544 R,
16545 >,
16546 > for Error
16547where
16548 R: Send + Sync + std::fmt::Debug + 'static,
16549{
16550 fn from(
16551 err: ::aws_smithy_runtime_api::client::result::SdkError<
16552 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16553 R,
16554 >,
16555 ) -> Self {
16556 match err {
16557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16560 source: err.into(),
16561 }),
16562 }
16563 }
16564}
16565impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
16566 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
16567 match err {
16568 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
16569 }
16570 }
16571}
16572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
16573 for Error
16574where
16575 R: Send + Sync + std::fmt::Debug + 'static,
16576{
16577 fn from(
16578 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
16579 ) -> Self {
16580 match err {
16581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16584 source: err.into(),
16585 }),
16586 }
16587 }
16588}
16589impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
16590 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
16591 match err {
16592 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
16593 }
16594 }
16595}
16596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
16597where
16598 R: Send + Sync + std::fmt::Debug + 'static,
16599{
16600 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
16601 match err {
16602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16605 source: err.into(),
16606 }),
16607 }
16608 }
16609}
16610impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
16611 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
16612 match err {
16613 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
16614 }
16615 }
16616}
16617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
16618 for Error
16619where
16620 R: Send + Sync + std::fmt::Debug + 'static,
16621{
16622 fn from(
16623 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
16624 ) -> Self {
16625 match err {
16626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16629 source: err.into(),
16630 }),
16631 }
16632 }
16633}
16634impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
16635 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
16636 match err {
16637 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16638 }
16639 }
16640}
16641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
16642where
16643 R: Send + Sync + std::fmt::Debug + 'static,
16644{
16645 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
16646 match err {
16647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16650 source: err.into(),
16651 }),
16652 }
16653 }
16654}
16655impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
16656 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
16657 match err {
16658 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
16659 }
16660 }
16661}
16662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
16663 for Error
16664where
16665 R: Send + Sync + std::fmt::Debug + 'static,
16666{
16667 fn from(
16668 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
16669 ) -> Self {
16670 match err {
16671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16674 source: err.into(),
16675 }),
16676 }
16677 }
16678}
16679impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
16680 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
16681 match err {
16682 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16683 }
16684 }
16685}
16686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
16687where
16688 R: Send + Sync + std::fmt::Debug + 'static,
16689{
16690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
16691 match err {
16692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16695 source: err.into(),
16696 }),
16697 }
16698 }
16699}
16700impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
16701 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
16702 match err {
16703 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16704 }
16705 }
16706}
16707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
16708where
16709 R: Send + Sync + std::fmt::Debug + 'static,
16710{
16711 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
16712 match err {
16713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16716 source: err.into(),
16717 }),
16718 }
16719 }
16720}
16721impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
16722 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
16723 match err {
16724 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16725 }
16726 }
16727}
16728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
16729 for Error
16730where
16731 R: Send + Sync + std::fmt::Debug + 'static,
16732{
16733 fn from(
16734 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
16735 ) -> Self {
16736 match err {
16737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16740 source: err.into(),
16741 }),
16742 }
16743 }
16744}
16745impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
16746 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
16747 match err {
16748 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16749 }
16750 }
16751}
16752impl<R>
16753 From<
16754 ::aws_smithy_runtime_api::client::result::SdkError<
16755 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16756 R,
16757 >,
16758 > for Error
16759where
16760 R: Send + Sync + std::fmt::Debug + 'static,
16761{
16762 fn from(
16763 err: ::aws_smithy_runtime_api::client::result::SdkError<
16764 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16765 R,
16766 >,
16767 ) -> Self {
16768 match err {
16769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16772 source: err.into(),
16773 }),
16774 }
16775 }
16776}
16777impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
16778 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
16779 match err {
16780 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
16781 Error::Unhandled(inner)
16782 }
16783 }
16784 }
16785}
16786impl<R>
16787 From<
16788 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
16789 > for Error
16790where
16791 R: Send + Sync + std::fmt::Debug + 'static,
16792{
16793 fn from(
16794 err: ::aws_smithy_runtime_api::client::result::SdkError<
16795 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
16796 R,
16797 >,
16798 ) -> Self {
16799 match err {
16800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16803 source: err.into(),
16804 }),
16805 }
16806 }
16807}
16808impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
16809 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
16810 match err {
16811 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16812 }
16813 }
16814}
16815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
16816 for Error
16817where
16818 R: Send + Sync + std::fmt::Debug + 'static,
16819{
16820 fn from(
16821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
16822 ) -> Self {
16823 match err {
16824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16827 source: err.into(),
16828 }),
16829 }
16830 }
16831}
16832impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
16833 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
16834 match err {
16835 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16836 }
16837 }
16838}
16839impl<R>
16840 From<
16841 ::aws_smithy_runtime_api::client::result::SdkError<
16842 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16843 R,
16844 >,
16845 > for Error
16846where
16847 R: Send + Sync + std::fmt::Debug + 'static,
16848{
16849 fn from(
16850 err: ::aws_smithy_runtime_api::client::result::SdkError<
16851 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16852 R,
16853 >,
16854 ) -> Self {
16855 match err {
16856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16859 source: err.into(),
16860 }),
16861 }
16862 }
16863}
16864impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
16865 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
16866 match err {
16867 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
16868 Error::Unhandled(inner)
16869 }
16870 }
16871 }
16872}
16873impl<R>
16874 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
16875 for Error
16876where
16877 R: Send + Sync + std::fmt::Debug + 'static,
16878{
16879 fn from(
16880 err: ::aws_smithy_runtime_api::client::result::SdkError<
16881 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
16882 R,
16883 >,
16884 ) -> Self {
16885 match err {
16886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16889 source: err.into(),
16890 }),
16891 }
16892 }
16893}
16894impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
16895 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
16896 match err {
16897 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
16898 }
16899 }
16900}
16901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
16902 for Error
16903where
16904 R: Send + Sync + std::fmt::Debug + 'static,
16905{
16906 fn from(
16907 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
16908 ) -> Self {
16909 match err {
16910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16913 source: err.into(),
16914 }),
16915 }
16916 }
16917}
16918impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
16919 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
16920 match err {
16921 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
16922 }
16923 }
16924}
16925impl<R>
16926 From<
16927 ::aws_smithy_runtime_api::client::result::SdkError<
16928 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16929 R,
16930 >,
16931 > for Error
16932where
16933 R: Send + Sync + std::fmt::Debug + 'static,
16934{
16935 fn from(
16936 err: ::aws_smithy_runtime_api::client::result::SdkError<
16937 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16938 R,
16939 >,
16940 ) -> Self {
16941 match err {
16942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16945 source: err.into(),
16946 }),
16947 }
16948 }
16949}
16950impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
16951 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
16952 match err {
16953 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16954 }
16955 }
16956}
16957impl<R>
16958 From<
16959 ::aws_smithy_runtime_api::client::result::SdkError<
16960 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16961 R,
16962 >,
16963 > for Error
16964where
16965 R: Send + Sync + std::fmt::Debug + 'static,
16966{
16967 fn from(
16968 err: ::aws_smithy_runtime_api::client::result::SdkError<
16969 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16970 R,
16971 >,
16972 ) -> Self {
16973 match err {
16974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16977 source: err.into(),
16978 }),
16979 }
16980 }
16981}
16982impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
16983 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
16984 match err {
16985 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
16986 }
16987 }
16988}
16989impl<R>
16990 From<
16991 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
16992 > for Error
16993where
16994 R: Send + Sync + std::fmt::Debug + 'static,
16995{
16996 fn from(
16997 err: ::aws_smithy_runtime_api::client::result::SdkError<
16998 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
16999 R,
17000 >,
17001 ) -> Self {
17002 match err {
17003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17006 source: err.into(),
17007 }),
17008 }
17009 }
17010}
17011impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
17012 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
17013 match err {
17014 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17015 }
17016 }
17017}
17018impl<R>
17019 From<
17020 ::aws_smithy_runtime_api::client::result::SdkError<
17021 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
17022 R,
17023 >,
17024 > for Error
17025where
17026 R: Send + Sync + std::fmt::Debug + 'static,
17027{
17028 fn from(
17029 err: ::aws_smithy_runtime_api::client::result::SdkError<
17030 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
17031 R,
17032 >,
17033 ) -> Self {
17034 match err {
17035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17038 source: err.into(),
17039 }),
17040 }
17041 }
17042}
17043impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
17044 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
17045 match err {
17046 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
17047 Error::Unhandled(inner)
17048 }
17049 }
17050 }
17051}
17052impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
17053 for Error
17054where
17055 R: Send + Sync + std::fmt::Debug + 'static,
17056{
17057 fn from(
17058 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
17059 ) -> Self {
17060 match err {
17061 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17062 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17063 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17064 source: err.into(),
17065 }),
17066 }
17067 }
17068}
17069impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
17070 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
17071 match err {
17072 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
17073 }
17074 }
17075}
17076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
17077where
17078 R: Send + Sync + std::fmt::Debug + 'static,
17079{
17080 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
17081 match err {
17082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17085 source: err.into(),
17086 }),
17087 }
17088 }
17089}
17090impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
17091 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
17092 match err {
17093 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
17094 }
17095 }
17096}
17097impl<R>
17098 From<
17099 ::aws_smithy_runtime_api::client::result::SdkError<
17100 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
17101 R,
17102 >,
17103 > for Error
17104where
17105 R: Send + Sync + std::fmt::Debug + 'static,
17106{
17107 fn from(
17108 err: ::aws_smithy_runtime_api::client::result::SdkError<
17109 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
17110 R,
17111 >,
17112 ) -> Self {
17113 match err {
17114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17117 source: err.into(),
17118 }),
17119 }
17120 }
17121}
17122impl From<crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError> for Error {
17123 fn from(err: crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError) -> Self {
17124 match err {
17125 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
17126 }
17127 }
17128}
17129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
17130where
17131 R: Send + Sync + std::fmt::Debug + 'static,
17132{
17133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
17134 match err {
17135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17138 source: err.into(),
17139 }),
17140 }
17141 }
17142}
17143impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
17144 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
17145 match err {
17146 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
17147 }
17148 }
17149}
17150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool_allocation::ModifyIpamPoolAllocationError, R>>
17151 for Error
17152where
17153 R: Send + Sync + std::fmt::Debug + 'static,
17154{
17155 fn from(
17156 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool_allocation::ModifyIpamPoolAllocationError, R>,
17157 ) -> Self {
17158 match err {
17159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17162 source: err.into(),
17163 }),
17164 }
17165 }
17166}
17167impl From<crate::operation::modify_ipam_pool_allocation::ModifyIpamPoolAllocationError> for Error {
17168 fn from(err: crate::operation::modify_ipam_pool_allocation::ModifyIpamPoolAllocationError) -> Self {
17169 match err {
17170 crate::operation::modify_ipam_pool_allocation::ModifyIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
17171 }
17172 }
17173}
17174impl<R>
17175 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
17176 for Error
17177where
17178 R: Send + Sync + std::fmt::Debug + 'static,
17179{
17180 fn from(
17181 err: ::aws_smithy_runtime_api::client::result::SdkError<
17182 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
17183 R,
17184 >,
17185 ) -> Self {
17186 match err {
17187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17190 source: err.into(),
17191 }),
17192 }
17193 }
17194}
17195impl From<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
17196 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
17197 match err {
17198 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
17199 }
17200 }
17201}
17202impl<R>
17203 From<
17204 ::aws_smithy_runtime_api::client::result::SdkError<
17205 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
17206 R,
17207 >,
17208 > for Error
17209where
17210 R: Send + Sync + std::fmt::Debug + 'static,
17211{
17212 fn from(
17213 err: ::aws_smithy_runtime_api::client::result::SdkError<
17214 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
17215 R,
17216 >,
17217 ) -> Self {
17218 match err {
17219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17222 source: err.into(),
17223 }),
17224 }
17225 }
17226}
17227impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
17228 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
17229 match err {
17230 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
17231 Error::Unhandled(inner)
17232 }
17233 }
17234 }
17235}
17236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
17237 for Error
17238where
17239 R: Send + Sync + std::fmt::Debug + 'static,
17240{
17241 fn from(
17242 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
17243 ) -> Self {
17244 match err {
17245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17248 source: err.into(),
17249 }),
17250 }
17251 }
17252}
17253impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
17254 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
17255 match err {
17256 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
17257 }
17258 }
17259}
17260impl<R>
17261 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
17262 for Error
17263where
17264 R: Send + Sync + std::fmt::Debug + 'static,
17265{
17266 fn from(
17267 err: ::aws_smithy_runtime_api::client::result::SdkError<
17268 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
17269 R,
17270 >,
17271 ) -> Self {
17272 match err {
17273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17276 source: err.into(),
17277 }),
17278 }
17279 }
17280}
17281impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
17282 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
17283 match err {
17284 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
17285 }
17286 }
17287}
17288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
17289where
17290 R: Send + Sync + std::fmt::Debug + 'static,
17291{
17292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
17293 match err {
17294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17297 source: err.into(),
17298 }),
17299 }
17300 }
17301}
17302impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
17303 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
17304 match err {
17305 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
17306 }
17307 }
17308}
17309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
17310where
17311 R: Send + Sync + std::fmt::Debug + 'static,
17312{
17313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
17314 match err {
17315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17318 source: err.into(),
17319 }),
17320 }
17321 }
17322}
17323impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
17324 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
17325 match err {
17326 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
17327 }
17328 }
17329}
17330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
17331 for Error
17332where
17333 R: Send + Sync + std::fmt::Debug + 'static,
17334{
17335 fn from(
17336 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
17337 ) -> Self {
17338 match err {
17339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17342 source: err.into(),
17343 }),
17344 }
17345 }
17346}
17347impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
17348 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
17349 match err {
17350 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
17351 }
17352 }
17353}
17354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
17355 for Error
17356where
17357 R: Send + Sync + std::fmt::Debug + 'static,
17358{
17359 fn from(
17360 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
17361 ) -> Self {
17362 match err {
17363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17366 source: err.into(),
17367 }),
17368 }
17369 }
17370}
17371impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
17372 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
17373 match err {
17374 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
17375 }
17376 }
17377}
17378impl<R>
17379 From<
17380 ::aws_smithy_runtime_api::client::result::SdkError<
17381 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError,
17382 R,
17383 >,
17384 > for Error
17385where
17386 R: Send + Sync + std::fmt::Debug + 'static,
17387{
17388 fn from(
17389 err: ::aws_smithy_runtime_api::client::result::SdkError<
17390 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError,
17391 R,
17392 >,
17393 ) -> Self {
17394 match err {
17395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17398 source: err.into(),
17399 }),
17400 }
17401 }
17402}
17403impl From<crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError> for Error {
17404 fn from(err: crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError) -> Self {
17405 match err {
17406 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
17407 }
17408 }
17409}
17410impl<R>
17411 From<
17412 ::aws_smithy_runtime_api::client::result::SdkError<
17413 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17414 R,
17415 >,
17416 > for Error
17417where
17418 R: Send + Sync + std::fmt::Debug + 'static,
17419{
17420 fn from(
17421 err: ::aws_smithy_runtime_api::client::result::SdkError<
17422 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17423 R,
17424 >,
17425 ) -> Self {
17426 match err {
17427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17430 source: err.into(),
17431 }),
17432 }
17433 }
17434}
17435impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
17436 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
17437 match err {
17438 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17439 }
17440 }
17441}
17442impl<R>
17443 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
17444 for Error
17445where
17446 R: Send + Sync + std::fmt::Debug + 'static,
17447{
17448 fn from(
17449 err: ::aws_smithy_runtime_api::client::result::SdkError<
17450 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
17451 R,
17452 >,
17453 ) -> Self {
17454 match err {
17455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17458 source: err.into(),
17459 }),
17460 }
17461 }
17462}
17463impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
17464 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
17465 match err {
17466 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17467 }
17468 }
17469}
17470impl<R>
17471 From<
17472 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
17473 > for Error
17474where
17475 R: Send + Sync + std::fmt::Debug + 'static,
17476{
17477 fn from(
17478 err: ::aws_smithy_runtime_api::client::result::SdkError<
17479 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
17480 R,
17481 >,
17482 ) -> Self {
17483 match err {
17484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17487 source: err.into(),
17488 }),
17489 }
17490 }
17491}
17492impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
17493 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
17494 match err {
17495 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17496 }
17497 }
17498}
17499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
17500 for Error
17501where
17502 R: Send + Sync + std::fmt::Debug + 'static,
17503{
17504 fn from(
17505 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
17506 ) -> Self {
17507 match err {
17508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17511 source: err.into(),
17512 }),
17513 }
17514 }
17515}
17516impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
17517 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
17518 match err {
17519 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17520 }
17521 }
17522}
17523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
17524where
17525 R: Send + Sync + std::fmt::Debug + 'static,
17526{
17527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
17528 match err {
17529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17532 source: err.into(),
17533 }),
17534 }
17535 }
17536}
17537impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
17538 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
17539 match err {
17540 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
17541 }
17542 }
17543}
17544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
17545 for Error
17546where
17547 R: Send + Sync + std::fmt::Debug + 'static,
17548{
17549 fn from(
17550 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
17551 ) -> Self {
17552 match err {
17553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17556 source: err.into(),
17557 }),
17558 }
17559 }
17560}
17561impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
17562 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
17563 match err {
17564 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
17565 }
17566 }
17567}
17568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
17569 for Error
17570where
17571 R: Send + Sync + std::fmt::Debug + 'static,
17572{
17573 fn from(
17574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
17575 ) -> Self {
17576 match err {
17577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17580 source: err.into(),
17581 }),
17582 }
17583 }
17584}
17585impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
17586 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
17587 match err {
17588 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17589 }
17590 }
17591}
17592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
17593where
17594 R: Send + Sync + std::fmt::Debug + 'static,
17595{
17596 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
17597 match err {
17598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17601 source: err.into(),
17602 }),
17603 }
17604 }
17605}
17606impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
17607 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
17608 match err {
17609 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
17610 }
17611 }
17612}
17613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
17614 for Error
17615where
17616 R: Send + Sync + std::fmt::Debug + 'static,
17617{
17618 fn from(
17619 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
17620 ) -> Self {
17621 match err {
17622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17625 source: err.into(),
17626 }),
17627 }
17628 }
17629}
17630impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
17631 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
17632 match err {
17633 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
17634 }
17635 }
17636}
17637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
17638where
17639 R: Send + Sync + std::fmt::Debug + 'static,
17640{
17641 fn from(
17642 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
17643 ) -> Self {
17644 match err {
17645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17648 source: err.into(),
17649 }),
17650 }
17651 }
17652}
17653impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
17654 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
17655 match err {
17656 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17657 }
17658 }
17659}
17660impl<R>
17661 From<
17662 ::aws_smithy_runtime_api::client::result::SdkError<
17663 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17664 R,
17665 >,
17666 > for Error
17667where
17668 R: Send + Sync + std::fmt::Debug + 'static,
17669{
17670 fn from(
17671 err: ::aws_smithy_runtime_api::client::result::SdkError<
17672 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17673 R,
17674 >,
17675 ) -> Self {
17676 match err {
17677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17680 source: err.into(),
17681 }),
17682 }
17683 }
17684}
17685impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
17686 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
17687 match err {
17688 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
17689 Error::Unhandled(inner)
17690 }
17691 }
17692 }
17693}
17694impl<R>
17695 From<
17696 ::aws_smithy_runtime_api::client::result::SdkError<
17697 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17698 R,
17699 >,
17700 > for Error
17701where
17702 R: Send + Sync + std::fmt::Debug + 'static,
17703{
17704 fn from(
17705 err: ::aws_smithy_runtime_api::client::result::SdkError<
17706 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17707 R,
17708 >,
17709 ) -> Self {
17710 match err {
17711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17714 source: err.into(),
17715 }),
17716 }
17717 }
17718}
17719impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
17720 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
17721 match err {
17722 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
17723 }
17724 }
17725}
17726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
17727 for Error
17728where
17729 R: Send + Sync + std::fmt::Debug + 'static,
17730{
17731 fn from(
17732 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
17733 ) -> Self {
17734 match err {
17735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17738 source: err.into(),
17739 }),
17740 }
17741 }
17742}
17743impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
17744 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
17745 match err {
17746 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
17747 }
17748 }
17749}
17750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
17751where
17752 R: Send + Sync + std::fmt::Debug + 'static,
17753{
17754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> Self {
17755 match err {
17756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17759 source: err.into(),
17760 }),
17761 }
17762 }
17763}
17764impl From<crate::operation::modify_transit_gateway::ModifyTransitGatewayError> for Error {
17765 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
17766 match err {
17767 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
17768 }
17769 }
17770}
17771impl<R>
17772 From<
17773 ::aws_smithy_runtime_api::client::result::SdkError<
17774 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17775 R,
17776 >,
17777 > for Error
17778where
17779 R: Send + Sync + std::fmt::Debug + 'static,
17780{
17781 fn from(
17782 err: ::aws_smithy_runtime_api::client::result::SdkError<
17783 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17784 R,
17785 >,
17786 ) -> Self {
17787 match err {
17788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17791 source: err.into(),
17792 }),
17793 }
17794 }
17795}
17796impl From<crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError> for Error {
17797 fn from(err: crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError) -> Self {
17798 match err {
17799 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError::Unhandled(inner) => {
17800 Error::Unhandled(inner)
17801 }
17802 }
17803 }
17804}
17805impl<R>
17806 From<
17807 ::aws_smithy_runtime_api::client::result::SdkError<
17808 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17809 R,
17810 >,
17811 > for Error
17812where
17813 R: Send + Sync + std::fmt::Debug + 'static,
17814{
17815 fn from(
17816 err: ::aws_smithy_runtime_api::client::result::SdkError<
17817 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17818 R,
17819 >,
17820 ) -> Self {
17821 match err {
17822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17825 source: err.into(),
17826 }),
17827 }
17828 }
17829}
17830impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
17831 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
17832 match err {
17833 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
17834 Error::Unhandled(inner)
17835 }
17836 }
17837 }
17838}
17839impl<R>
17840 From<
17841 ::aws_smithy_runtime_api::client::result::SdkError<
17842 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17843 R,
17844 >,
17845 > for Error
17846where
17847 R: Send + Sync + std::fmt::Debug + 'static,
17848{
17849 fn from(
17850 err: ::aws_smithy_runtime_api::client::result::SdkError<
17851 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17852 R,
17853 >,
17854 ) -> Self {
17855 match err {
17856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17859 source: err.into(),
17860 }),
17861 }
17862 }
17863}
17864impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
17865 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
17866 match err {
17867 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17868 Error::Unhandled(inner)
17869 }
17870 }
17871 }
17872}
17873impl<R>
17874 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
17875 for Error
17876where
17877 R: Send + Sync + std::fmt::Debug + 'static,
17878{
17879 fn from(
17880 err: ::aws_smithy_runtime_api::client::result::SdkError<
17881 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
17882 R,
17883 >,
17884 ) -> Self {
17885 match err {
17886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17889 source: err.into(),
17890 }),
17891 }
17892 }
17893}
17894impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
17895 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
17896 match err {
17897 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17898 }
17899 }
17900}
17901impl<R>
17902 From<
17903 ::aws_smithy_runtime_api::client::result::SdkError<
17904 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17905 R,
17906 >,
17907 > for Error
17908where
17909 R: Send + Sync + std::fmt::Debug + 'static,
17910{
17911 fn from(
17912 err: ::aws_smithy_runtime_api::client::result::SdkError<
17913 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17914 R,
17915 >,
17916 ) -> Self {
17917 match err {
17918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17921 source: err.into(),
17922 }),
17923 }
17924 }
17925}
17926impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
17927 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
17928 match err {
17929 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
17930 Error::Unhandled(inner)
17931 }
17932 }
17933 }
17934}
17935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
17936 for Error
17937where
17938 R: Send + Sync + std::fmt::Debug + 'static,
17939{
17940 fn from(
17941 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
17942 ) -> Self {
17943 match err {
17944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17947 source: err.into(),
17948 }),
17949 }
17950 }
17951}
17952impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
17953 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
17954 match err {
17955 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
17956 }
17957 }
17958}
17959impl<R>
17960 From<
17961 ::aws_smithy_runtime_api::client::result::SdkError<
17962 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17963 R,
17964 >,
17965 > for Error
17966where
17967 R: Send + Sync + std::fmt::Debug + 'static,
17968{
17969 fn from(
17970 err: ::aws_smithy_runtime_api::client::result::SdkError<
17971 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17972 R,
17973 >,
17974 ) -> Self {
17975 match err {
17976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17979 source: err.into(),
17980 }),
17981 }
17982 }
17983}
17984impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
17985 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
17986 match err {
17987 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
17988 }
17989 }
17990}
17991impl<R>
17992 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
17993 for Error
17994where
17995 R: Send + Sync + std::fmt::Debug + 'static,
17996{
17997 fn from(
17998 err: ::aws_smithy_runtime_api::client::result::SdkError<
17999 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
18000 R,
18001 >,
18002 ) -> Self {
18003 match err {
18004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18007 source: err.into(),
18008 }),
18009 }
18010 }
18011}
18012impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
18013 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
18014 match err {
18015 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
18016 }
18017 }
18018}
18019impl<R>
18020 From<
18021 ::aws_smithy_runtime_api::client::result::SdkError<
18022 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
18023 R,
18024 >,
18025 > for Error
18026where
18027 R: Send + Sync + std::fmt::Debug + 'static,
18028{
18029 fn from(
18030 err: ::aws_smithy_runtime_api::client::result::SdkError<
18031 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
18032 R,
18033 >,
18034 ) -> Self {
18035 match err {
18036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18039 source: err.into(),
18040 }),
18041 }
18042 }
18043}
18044impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
18045 fn from(
18046 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
18047 ) -> Self {
18048 match err {
18049 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
18050 }
18051 }
18052}
18053impl<R>
18054 From<
18055 ::aws_smithy_runtime_api::client::result::SdkError<
18056 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
18057 R,
18058 >,
18059 > for Error
18060where
18061 R: Send + Sync + std::fmt::Debug + 'static,
18062{
18063 fn from(
18064 err: ::aws_smithy_runtime_api::client::result::SdkError<
18065 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
18066 R,
18067 >,
18068 ) -> Self {
18069 match err {
18070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18073 source: err.into(),
18074 }),
18075 }
18076 }
18077}
18078impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
18079 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
18080 match err {
18081 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
18082 Error::Unhandled(inner)
18083 }
18084 }
18085 }
18086}
18087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
18088where
18089 R: Send + Sync + std::fmt::Debug + 'static,
18090{
18091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> Self {
18092 match err {
18093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18096 source: err.into(),
18097 }),
18098 }
18099 }
18100}
18101impl From<crate::operation::modify_volume::ModifyVolumeError> for Error {
18102 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
18103 match err {
18104 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
18105 }
18106 }
18107}
18108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
18109where
18110 R: Send + Sync + std::fmt::Debug + 'static,
18111{
18112 fn from(
18113 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
18114 ) -> Self {
18115 match err {
18116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18119 source: err.into(),
18120 }),
18121 }
18122 }
18123}
18124impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
18125 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
18126 match err {
18127 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18128 }
18129 }
18130}
18131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
18132where
18133 R: Send + Sync + std::fmt::Debug + 'static,
18134{
18135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
18136 match err {
18137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18140 source: err.into(),
18141 }),
18142 }
18143 }
18144}
18145impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
18146 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
18147 match err {
18148 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18149 }
18150 }
18151}
18152impl<R>
18153 From<
18154 ::aws_smithy_runtime_api::client::result::SdkError<
18155 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
18156 R,
18157 >,
18158 > for Error
18159where
18160 R: Send + Sync + std::fmt::Debug + 'static,
18161{
18162 fn from(
18163 err: ::aws_smithy_runtime_api::client::result::SdkError<
18164 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
18165 R,
18166 >,
18167 ) -> Self {
18168 match err {
18169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18172 source: err.into(),
18173 }),
18174 }
18175 }
18176}
18177impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
18178 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
18179 match err {
18180 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
18181 Error::Unhandled(inner)
18182 }
18183 }
18184 }
18185}
18186impl<R>
18187 From<
18188 ::aws_smithy_runtime_api::client::result::SdkError<
18189 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
18190 R,
18191 >,
18192 > for Error
18193where
18194 R: Send + Sync + std::fmt::Debug + 'static,
18195{
18196 fn from(
18197 err: ::aws_smithy_runtime_api::client::result::SdkError<
18198 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
18199 R,
18200 >,
18201 ) -> Self {
18202 match err {
18203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18206 source: err.into(),
18207 }),
18208 }
18209 }
18210}
18211impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
18212 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
18213 match err {
18214 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
18215 Error::Unhandled(inner)
18216 }
18217 }
18218 }
18219}
18220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>>
18221 for Error
18222where
18223 R: Send + Sync + std::fmt::Debug + 'static,
18224{
18225 fn from(
18226 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>,
18227 ) -> Self {
18228 match err {
18229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18232 source: err.into(),
18233 }),
18234 }
18235 }
18236}
18237impl From<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError> for Error {
18238 fn from(err: crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError) -> Self {
18239 match err {
18240 crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
18241 }
18242 }
18243}
18244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
18245where
18246 R: Send + Sync + std::fmt::Debug + 'static,
18247{
18248 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
18249 match err {
18250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18253 source: err.into(),
18254 }),
18255 }
18256 }
18257}
18258impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
18259 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
18260 match err {
18261 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
18262 }
18263 }
18264}
18265impl<R>
18266 From<
18267 ::aws_smithy_runtime_api::client::result::SdkError<
18268 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
18269 R,
18270 >,
18271 > for Error
18272where
18273 R: Send + Sync + std::fmt::Debug + 'static,
18274{
18275 fn from(
18276 err: ::aws_smithy_runtime_api::client::result::SdkError<
18277 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
18278 R,
18279 >,
18280 ) -> Self {
18281 match err {
18282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18285 source: err.into(),
18286 }),
18287 }
18288 }
18289}
18290impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
18291 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
18292 match err {
18293 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
18294 Error::Unhandled(inner)
18295 }
18296 }
18297 }
18298}
18299impl<R>
18300 From<
18301 ::aws_smithy_runtime_api::client::result::SdkError<
18302 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
18303 R,
18304 >,
18305 > for Error
18306where
18307 R: Send + Sync + std::fmt::Debug + 'static,
18308{
18309 fn from(
18310 err: ::aws_smithy_runtime_api::client::result::SdkError<
18311 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
18312 R,
18313 >,
18314 ) -> Self {
18315 match err {
18316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18319 source: err.into(),
18320 }),
18321 }
18322 }
18323}
18324impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
18325 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
18326 match err {
18327 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
18328 Error::Unhandled(inner)
18329 }
18330 }
18331 }
18332}
18333impl<R>
18334 From<
18335 ::aws_smithy_runtime_api::client::result::SdkError<
18336 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
18337 R,
18338 >,
18339 > for Error
18340where
18341 R: Send + Sync + std::fmt::Debug + 'static,
18342{
18343 fn from(
18344 err: ::aws_smithy_runtime_api::client::result::SdkError<
18345 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
18346 R,
18347 >,
18348 ) -> Self {
18349 match err {
18350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18353 source: err.into(),
18354 }),
18355 }
18356 }
18357}
18358impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
18359 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
18360 match err {
18361 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
18362 inner,
18363 ) => Error::Unhandled(inner),
18364 }
18365 }
18366}
18367impl<R>
18368 From<
18369 ::aws_smithy_runtime_api::client::result::SdkError<
18370 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
18371 R,
18372 >,
18373 > for Error
18374where
18375 R: Send + Sync + std::fmt::Debug + 'static,
18376{
18377 fn from(
18378 err: ::aws_smithy_runtime_api::client::result::SdkError<
18379 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
18380 R,
18381 >,
18382 ) -> Self {
18383 match err {
18384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18387 source: err.into(),
18388 }),
18389 }
18390 }
18391}
18392impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
18393 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
18394 match err {
18395 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
18396 Error::Unhandled(inner)
18397 }
18398 }
18399 }
18400}
18401impl<R>
18402 From<
18403 ::aws_smithy_runtime_api::client::result::SdkError<
18404 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18405 R,
18406 >,
18407 > for Error
18408where
18409 R: Send + Sync + std::fmt::Debug + 'static,
18410{
18411 fn from(
18412 err: ::aws_smithy_runtime_api::client::result::SdkError<
18413 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18414 R,
18415 >,
18416 ) -> Self {
18417 match err {
18418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18421 source: err.into(),
18422 }),
18423 }
18424 }
18425}
18426impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
18427 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
18428 match err {
18429 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
18430 Error::Unhandled(inner)
18431 }
18432 }
18433 }
18434}
18435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
18436where
18437 R: Send + Sync + std::fmt::Debug + 'static,
18438{
18439 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
18440 match err {
18441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18444 source: err.into(),
18445 }),
18446 }
18447 }
18448}
18449impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
18450 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
18451 match err {
18452 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
18453 }
18454 }
18455}
18456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
18457where
18458 R: Send + Sync + std::fmt::Debug + 'static,
18459{
18460 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
18461 match err {
18462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18465 source: err.into(),
18466 }),
18467 }
18468 }
18469}
18470impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
18471 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
18472 match err {
18473 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
18474 }
18475 }
18476}
18477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
18478 for Error
18479where
18480 R: Send + Sync + std::fmt::Debug + 'static,
18481{
18482 fn from(
18483 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
18484 ) -> Self {
18485 match err {
18486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18489 source: err.into(),
18490 }),
18491 }
18492 }
18493}
18494impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
18495 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
18496 match err {
18497 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18498 }
18499 }
18500}
18501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
18502 for Error
18503where
18504 R: Send + Sync + std::fmt::Debug + 'static,
18505{
18506 fn from(
18507 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
18508 ) -> Self {
18509 match err {
18510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18513 source: err.into(),
18514 }),
18515 }
18516 }
18517}
18518impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
18519 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
18520 match err {
18521 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
18522 }
18523 }
18524}
18525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
18526 for Error
18527where
18528 R: Send + Sync + std::fmt::Debug + 'static,
18529{
18530 fn from(
18531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
18532 ) -> Self {
18533 match err {
18534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18537 source: err.into(),
18538 }),
18539 }
18540 }
18541}
18542impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
18543 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
18544 match err {
18545 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18546 }
18547 }
18548}
18549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
18550where
18551 R: Send + Sync + std::fmt::Debug + 'static,
18552{
18553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
18554 match err {
18555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18558 source: err.into(),
18559 }),
18560 }
18561 }
18562}
18563impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
18564 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
18565 match err {
18566 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18567 }
18568 }
18569}
18570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
18571where
18572 R: Send + Sync + std::fmt::Debug + 'static,
18573{
18574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
18575 match err {
18576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18579 source: err.into(),
18580 }),
18581 }
18582 }
18583}
18584impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
18585 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
18586 match err {
18587 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
18588 }
18589 }
18590}
18591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
18592where
18593 R: Send + Sync + std::fmt::Debug + 'static,
18594{
18595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
18596 match err {
18597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18600 source: err.into(),
18601 }),
18602 }
18603 }
18604}
18605impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
18606 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
18607 match err {
18608 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
18609 }
18610 }
18611}
18612impl<R>
18613 From<
18614 ::aws_smithy_runtime_api::client::result::SdkError<
18615 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18616 R,
18617 >,
18618 > for Error
18619where
18620 R: Send + Sync + std::fmt::Debug + 'static,
18621{
18622 fn from(
18623 err: ::aws_smithy_runtime_api::client::result::SdkError<
18624 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18625 R,
18626 >,
18627 ) -> Self {
18628 match err {
18629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18632 source: err.into(),
18633 }),
18634 }
18635 }
18636}
18637impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
18638 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
18639 match err {
18640 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18641 }
18642 }
18643}
18644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
18645where
18646 R: Send + Sync + std::fmt::Debug + 'static,
18647{
18648 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
18649 match err {
18650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18653 source: err.into(),
18654 }),
18655 }
18656 }
18657}
18658impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
18659 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
18660 match err {
18661 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
18662 }
18663 }
18664}
18665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
18666where
18667 R: Send + Sync + std::fmt::Debug + 'static,
18668{
18669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
18670 match err {
18671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18674 source: err.into(),
18675 }),
18676 }
18677 }
18678}
18679impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
18680 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
18681 match err {
18682 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
18683 }
18684 }
18685}
18686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
18687where
18688 R: Send + Sync + std::fmt::Debug + 'static,
18689{
18690 fn from(
18691 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
18692 ) -> Self {
18693 match err {
18694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18697 source: err.into(),
18698 }),
18699 }
18700 }
18701}
18702impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
18703 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
18704 match err {
18705 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18706 }
18707 }
18708}
18709impl<R>
18710 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
18711 for Error
18712where
18713 R: Send + Sync + std::fmt::Debug + 'static,
18714{
18715 fn from(
18716 err: ::aws_smithy_runtime_api::client::result::SdkError<
18717 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
18718 R,
18719 >,
18720 ) -> Self {
18721 match err {
18722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18725 source: err.into(),
18726 }),
18727 }
18728 }
18729}
18730impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
18731 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
18732 match err {
18733 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18734 }
18735 }
18736}
18737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
18738where
18739 R: Send + Sync + std::fmt::Debug + 'static,
18740{
18741 fn from(
18742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
18743 ) -> Self {
18744 match err {
18745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18748 source: err.into(),
18749 }),
18750 }
18751 }
18752}
18753impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
18754 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
18755 match err {
18756 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
18757 }
18758 }
18759}
18760impl<R>
18761 From<
18762 ::aws_smithy_runtime_api::client::result::SdkError<
18763 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18764 R,
18765 >,
18766 > for Error
18767where
18768 R: Send + Sync + std::fmt::Debug + 'static,
18769{
18770 fn from(
18771 err: ::aws_smithy_runtime_api::client::result::SdkError<
18772 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18773 R,
18774 >,
18775 ) -> Self {
18776 match err {
18777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18780 source: err.into(),
18781 }),
18782 }
18783 }
18784}
18785impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
18786 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
18787 match err {
18788 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
18789 }
18790 }
18791}
18792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
18793 for Error
18794where
18795 R: Send + Sync + std::fmt::Debug + 'static,
18796{
18797 fn from(
18798 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
18799 ) -> Self {
18800 match err {
18801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18804 source: err.into(),
18805 }),
18806 }
18807 }
18808}
18809impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
18810 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
18811 match err {
18812 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
18813 }
18814 }
18815}
18816impl<R>
18817 From<
18818 ::aws_smithy_runtime_api::client::result::SdkError<
18819 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18820 R,
18821 >,
18822 > for Error
18823where
18824 R: Send + Sync + std::fmt::Debug + 'static,
18825{
18826 fn from(
18827 err: ::aws_smithy_runtime_api::client::result::SdkError<
18828 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18829 R,
18830 >,
18831 ) -> Self {
18832 match err {
18833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18836 source: err.into(),
18837 }),
18838 }
18839 }
18840}
18841impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
18842 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
18843 match err {
18844 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
18845 Error::Unhandled(inner)
18846 }
18847 }
18848 }
18849}
18850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
18851 for Error
18852where
18853 R: Send + Sync + std::fmt::Debug + 'static,
18854{
18855 fn from(
18856 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
18857 ) -> Self {
18858 match err {
18859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18862 source: err.into(),
18863 }),
18864 }
18865 }
18866}
18867impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
18868 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
18869 match err {
18870 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18871 }
18872 }
18873}
18874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
18875where
18876 R: Send + Sync + std::fmt::Debug + 'static,
18877{
18878 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
18879 match err {
18880 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18881 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18882 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18883 source: err.into(),
18884 }),
18885 }
18886 }
18887}
18888impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
18889 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
18890 match err {
18891 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18892 }
18893 }
18894}
18895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
18896where
18897 R: Send + Sync + std::fmt::Debug + 'static,
18898{
18899 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
18900 match err {
18901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18904 source: err.into(),
18905 }),
18906 }
18907 }
18908}
18909impl From<crate::operation::register_image::RegisterImageError> for Error {
18910 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
18911 match err {
18912 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
18913 }
18914 }
18915}
18916impl<R>
18917 From<
18918 ::aws_smithy_runtime_api::client::result::SdkError<
18919 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18920 R,
18921 >,
18922 > for Error
18923where
18924 R: Send + Sync + std::fmt::Debug + 'static,
18925{
18926 fn from(
18927 err: ::aws_smithy_runtime_api::client::result::SdkError<
18928 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18929 R,
18930 >,
18931 ) -> Self {
18932 match err {
18933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18936 source: err.into(),
18937 }),
18938 }
18939 }
18940}
18941impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
18942 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
18943 match err {
18944 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
18945 Error::Unhandled(inner)
18946 }
18947 }
18948 }
18949}
18950impl<R>
18951 From<
18952 ::aws_smithy_runtime_api::client::result::SdkError<
18953 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18954 R,
18955 >,
18956 > for Error
18957where
18958 R: Send + Sync + std::fmt::Debug + 'static,
18959{
18960 fn from(
18961 err: ::aws_smithy_runtime_api::client::result::SdkError<
18962 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18963 R,
18964 >,
18965 ) -> Self {
18966 match err {
18967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18970 source: err.into(),
18971 }),
18972 }
18973 }
18974}
18975impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
18976 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
18977 match err {
18978 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
18979 inner,
18980 ) => Error::Unhandled(inner),
18981 }
18982 }
18983}
18984impl<R>
18985 From<
18986 ::aws_smithy_runtime_api::client::result::SdkError<
18987 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18988 R,
18989 >,
18990 > for Error
18991where
18992 R: Send + Sync + std::fmt::Debug + 'static,
18993{
18994 fn from(
18995 err: ::aws_smithy_runtime_api::client::result::SdkError<
18996 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18997 R,
18998 >,
18999 ) -> Self {
19000 match err {
19001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19004 source: err.into(),
19005 }),
19006 }
19007 }
19008}
19009impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
19010 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
19011 match err {
19012 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
19013 inner,
19014 ) => Error::Unhandled(inner),
19015 }
19016 }
19017}
19018impl<R>
19019 From<
19020 ::aws_smithy_runtime_api::client::result::SdkError<
19021 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
19022 R,
19023 >,
19024 > for Error
19025where
19026 R: Send + Sync + std::fmt::Debug + 'static,
19027{
19028 fn from(
19029 err: ::aws_smithy_runtime_api::client::result::SdkError<
19030 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
19031 R,
19032 >,
19033 ) -> Self {
19034 match err {
19035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19038 source: err.into(),
19039 }),
19040 }
19041 }
19042}
19043impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
19044 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
19045 match err {
19046 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
19047 Error::Unhandled(inner)
19048 }
19049 }
19050 }
19051}
19052impl<R>
19053 From<
19054 ::aws_smithy_runtime_api::client::result::SdkError<
19055 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError,
19056 R,
19057 >,
19058 > for Error
19059where
19060 R: Send + Sync + std::fmt::Debug + 'static,
19061{
19062 fn from(
19063 err: ::aws_smithy_runtime_api::client::result::SdkError<
19064 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError,
19065 R,
19066 >,
19067 ) -> Self {
19068 match err {
19069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19072 source: err.into(),
19073 }),
19074 }
19075 }
19076}
19077impl From<crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError> for Error {
19078 fn from(err: crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError) -> Self {
19079 match err {
19080 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError::Unhandled(inner) => {
19081 Error::Unhandled(inner)
19082 }
19083 }
19084 }
19085}
19086impl<R>
19087 From<
19088 ::aws_smithy_runtime_api::client::result::SdkError<
19089 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19090 R,
19091 >,
19092 > for Error
19093where
19094 R: Send + Sync + std::fmt::Debug + 'static,
19095{
19096 fn from(
19097 err: ::aws_smithy_runtime_api::client::result::SdkError<
19098 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19099 R,
19100 >,
19101 ) -> Self {
19102 match err {
19103 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19104 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19105 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19106 source: err.into(),
19107 }),
19108 }
19109 }
19110}
19111impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
19112 fn from(
19113 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19114 ) -> Self {
19115 match err {
19116 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
19117 }
19118 }
19119}
19120impl<R>
19121 From<
19122 ::aws_smithy_runtime_api::client::result::SdkError<
19123 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
19124 R,
19125 >,
19126 > for Error
19127where
19128 R: Send + Sync + std::fmt::Debug + 'static,
19129{
19130 fn from(
19131 err: ::aws_smithy_runtime_api::client::result::SdkError<
19132 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
19133 R,
19134 >,
19135 ) -> Self {
19136 match err {
19137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19140 source: err.into(),
19141 }),
19142 }
19143 }
19144}
19145impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
19146 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
19147 match err {
19148 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
19149 Error::Unhandled(inner)
19150 }
19151 }
19152 }
19153}
19154impl<R>
19155 From<
19156 ::aws_smithy_runtime_api::client::result::SdkError<
19157 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
19158 R,
19159 >,
19160 > for Error
19161where
19162 R: Send + Sync + std::fmt::Debug + 'static,
19163{
19164 fn from(
19165 err: ::aws_smithy_runtime_api::client::result::SdkError<
19166 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
19167 R,
19168 >,
19169 ) -> Self {
19170 match err {
19171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19174 source: err.into(),
19175 }),
19176 }
19177 }
19178}
19179impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
19180 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
19181 match err {
19182 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
19183 Error::Unhandled(inner)
19184 }
19185 }
19186 }
19187}
19188impl<R>
19189 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
19190 for Error
19191where
19192 R: Send + Sync + std::fmt::Debug + 'static,
19193{
19194 fn from(
19195 err: ::aws_smithy_runtime_api::client::result::SdkError<
19196 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
19197 R,
19198 >,
19199 ) -> Self {
19200 match err {
19201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19204 source: err.into(),
19205 }),
19206 }
19207 }
19208}
19209impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
19210 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
19211 match err {
19212 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19213 }
19214 }
19215}
19216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
19217 for Error
19218where
19219 R: Send + Sync + std::fmt::Debug + 'static,
19220{
19221 fn from(
19222 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
19223 ) -> Self {
19224 match err {
19225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19228 source: err.into(),
19229 }),
19230 }
19231 }
19232}
19233impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
19234 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
19235 match err {
19236 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
19237 }
19238 }
19239}
19240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
19241where
19242 R: Send + Sync + std::fmt::Debug + 'static,
19243{
19244 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
19245 match err {
19246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19249 source: err.into(),
19250 }),
19251 }
19252 }
19253}
19254impl From<crate::operation::release_address::ReleaseAddressError> for Error {
19255 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
19256 match err {
19257 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
19258 }
19259 }
19260}
19261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
19262where
19263 R: Send + Sync + std::fmt::Debug + 'static,
19264{
19265 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
19266 match err {
19267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19270 source: err.into(),
19271 }),
19272 }
19273 }
19274}
19275impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
19276 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
19277 match err {
19278 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
19279 }
19280 }
19281}
19282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
19283 for Error
19284where
19285 R: Send + Sync + std::fmt::Debug + 'static,
19286{
19287 fn from(
19288 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
19289 ) -> Self {
19290 match err {
19291 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19292 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19293 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19294 source: err.into(),
19295 }),
19296 }
19297 }
19298}
19299impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
19300 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
19301 match err {
19302 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
19303 }
19304 }
19305}
19306impl<R>
19307 From<
19308 ::aws_smithy_runtime_api::client::result::SdkError<
19309 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
19310 R,
19311 >,
19312 > for Error
19313where
19314 R: Send + Sync + std::fmt::Debug + 'static,
19315{
19316 fn from(
19317 err: ::aws_smithy_runtime_api::client::result::SdkError<
19318 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
19319 R,
19320 >,
19321 ) -> Self {
19322 match err {
19323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19326 source: err.into(),
19327 }),
19328 }
19329 }
19330}
19331impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
19332 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
19333 match err {
19334 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
19335 Error::Unhandled(inner)
19336 }
19337 }
19338 }
19339}
19340impl<R>
19341 From<
19342 ::aws_smithy_runtime_api::client::result::SdkError<
19343 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
19344 R,
19345 >,
19346 > for Error
19347where
19348 R: Send + Sync + std::fmt::Debug + 'static,
19349{
19350 fn from(
19351 err: ::aws_smithy_runtime_api::client::result::SdkError<
19352 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
19353 R,
19354 >,
19355 ) -> Self {
19356 match err {
19357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19360 source: err.into(),
19361 }),
19362 }
19363 }
19364}
19365impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
19366 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
19367 match err {
19368 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
19369 inner,
19370 ) => Error::Unhandled(inner),
19371 }
19372 }
19373}
19374impl<R>
19375 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
19376 for Error
19377where
19378 R: Send + Sync + std::fmt::Debug + 'static,
19379{
19380 fn from(
19381 err: ::aws_smithy_runtime_api::client::result::SdkError<
19382 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
19383 R,
19384 >,
19385 ) -> Self {
19386 match err {
19387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19390 source: err.into(),
19391 }),
19392 }
19393 }
19394}
19395impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
19396 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
19397 match err {
19398 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
19399 }
19400 }
19401}
19402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
19403 for Error
19404where
19405 R: Send + Sync + std::fmt::Debug + 'static,
19406{
19407 fn from(
19408 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
19409 ) -> Self {
19410 match err {
19411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19414 source: err.into(),
19415 }),
19416 }
19417 }
19418}
19419impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
19420 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
19421 match err {
19422 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
19423 }
19424 }
19425}
19426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
19427where
19428 R: Send + Sync + std::fmt::Debug + 'static,
19429{
19430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
19431 match err {
19432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19435 source: err.into(),
19436 }),
19437 }
19438 }
19439}
19440impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
19441 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
19442 match err {
19443 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
19444 }
19445 }
19446}
19447impl<R>
19448 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
19449 for Error
19450where
19451 R: Send + Sync + std::fmt::Debug + 'static,
19452{
19453 fn from(
19454 err: ::aws_smithy_runtime_api::client::result::SdkError<
19455 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
19456 R,
19457 >,
19458 ) -> Self {
19459 match err {
19460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19463 source: err.into(),
19464 }),
19465 }
19466 }
19467}
19468impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
19469 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
19470 match err {
19471 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
19472 }
19473 }
19474}
19475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
19476 for Error
19477where
19478 R: Send + Sync + std::fmt::Debug + 'static,
19479{
19480 fn from(
19481 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
19482 ) -> Self {
19483 match err {
19484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19487 source: err.into(),
19488 }),
19489 }
19490 }
19491}
19492impl From<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
19493 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
19494 match err {
19495 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
19496 }
19497 }
19498}
19499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
19500where
19501 R: Send + Sync + std::fmt::Debug + 'static,
19502{
19503 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
19504 match err {
19505 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19506 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19507 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19508 source: err.into(),
19509 }),
19510 }
19511 }
19512}
19513impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
19514 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
19515 match err {
19516 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
19517 }
19518 }
19519}
19520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
19521where
19522 R: Send + Sync + std::fmt::Debug + 'static,
19523{
19524 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
19525 match err {
19526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19529 source: err.into(),
19530 }),
19531 }
19532 }
19533}
19534impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
19535 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
19536 match err {
19537 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
19538 }
19539 }
19540}
19541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
19542where
19543 R: Send + Sync + std::fmt::Debug + 'static,
19544{
19545 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> Self {
19546 match err {
19547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19550 source: err.into(),
19551 }),
19552 }
19553 }
19554}
19555impl From<crate::operation::request_spot_fleet::RequestSpotFleetError> for Error {
19556 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
19557 match err {
19558 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
19559 }
19560 }
19561}
19562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>> for Error
19563where
19564 R: Send + Sync + std::fmt::Debug + 'static,
19565{
19566 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>) -> Self {
19567 match err {
19568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19571 source: err.into(),
19572 }),
19573 }
19574 }
19575}
19576impl From<crate::operation::request_spot_instances::RequestSpotInstancesError> for Error {
19577 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
19578 match err {
19579 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19580 }
19581 }
19582}
19583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
19584where
19585 R: Send + Sync + std::fmt::Debug + 'static,
19586{
19587 fn from(
19588 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
19589 ) -> Self {
19590 match err {
19591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19594 source: err.into(),
19595 }),
19596 }
19597 }
19598}
19599impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
19600 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
19601 match err {
19602 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19603 }
19604 }
19605}
19606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
19607 for Error
19608where
19609 R: Send + Sync + std::fmt::Debug + 'static,
19610{
19611 fn from(
19612 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
19613 ) -> Self {
19614 match err {
19615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19618 source: err.into(),
19619 }),
19620 }
19621 }
19622}
19623impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
19624 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
19625 match err {
19626 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
19627 }
19628 }
19629}
19630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
19631 for Error
19632where
19633 R: Send + Sync + std::fmt::Debug + 'static,
19634{
19635 fn from(
19636 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
19637 ) -> Self {
19638 match err {
19639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19642 source: err.into(),
19643 }),
19644 }
19645 }
19646}
19647impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
19648 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
19649 match err {
19650 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19651 }
19652 }
19653}
19654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
19655where
19656 R: Send + Sync + std::fmt::Debug + 'static,
19657{
19658 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
19659 match err {
19660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19663 source: err.into(),
19664 }),
19665 }
19666 }
19667}
19668impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
19669 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
19670 match err {
19671 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19672 }
19673 }
19674}
19675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
19676where
19677 R: Send + Sync + std::fmt::Debug + 'static,
19678{
19679 fn from(
19680 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
19681 ) -> Self {
19682 match err {
19683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19686 source: err.into(),
19687 }),
19688 }
19689 }
19690}
19691impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
19692 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
19693 match err {
19694 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19695 }
19696 }
19697}
19698impl<R>
19699 From<
19700 ::aws_smithy_runtime_api::client::result::SdkError<
19701 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19702 R,
19703 >,
19704 > for Error
19705where
19706 R: Send + Sync + std::fmt::Debug + 'static,
19707{
19708 fn from(
19709 err: ::aws_smithy_runtime_api::client::result::SdkError<
19710 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19711 R,
19712 >,
19713 ) -> Self {
19714 match err {
19715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19718 source: err.into(),
19719 }),
19720 }
19721 }
19722}
19723impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
19724 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
19725 match err {
19726 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19727 }
19728 }
19729}
19730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
19731where
19732 R: Send + Sync + std::fmt::Debug + 'static,
19733{
19734 fn from(
19735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
19736 ) -> Self {
19737 match err {
19738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19741 source: err.into(),
19742 }),
19743 }
19744 }
19745}
19746impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
19747 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
19748 match err {
19749 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19750 }
19751 }
19752}
19753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
19754 for Error
19755where
19756 R: Send + Sync + std::fmt::Debug + 'static,
19757{
19758 fn from(
19759 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
19760 ) -> Self {
19761 match err {
19762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19765 source: err.into(),
19766 }),
19767 }
19768 }
19769}
19770impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
19771 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
19772 match err {
19773 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
19774 }
19775 }
19776}
19777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
19778 for Error
19779where
19780 R: Send + Sync + std::fmt::Debug + 'static,
19781{
19782 fn from(
19783 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
19784 ) -> Self {
19785 match err {
19786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19789 source: err.into(),
19790 }),
19791 }
19792 }
19793}
19794impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
19795 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
19796 match err {
19797 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19798 }
19799 }
19800}
19801impl<R>
19802 From<
19803 ::aws_smithy_runtime_api::client::result::SdkError<
19804 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19805 R,
19806 >,
19807 > for Error
19808where
19809 R: Send + Sync + std::fmt::Debug + 'static,
19810{
19811 fn from(
19812 err: ::aws_smithy_runtime_api::client::result::SdkError<
19813 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19814 R,
19815 >,
19816 ) -> Self {
19817 match err {
19818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19821 source: err.into(),
19822 }),
19823 }
19824 }
19825}
19826impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
19827 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
19828 match err {
19829 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
19830 }
19831 }
19832}
19833impl<R>
19834 From<
19835 ::aws_smithy_runtime_api::client::result::SdkError<
19836 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19837 R,
19838 >,
19839 > for Error
19840where
19841 R: Send + Sync + std::fmt::Debug + 'static,
19842{
19843 fn from(
19844 err: ::aws_smithy_runtime_api::client::result::SdkError<
19845 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19846 R,
19847 >,
19848 ) -> Self {
19849 match err {
19850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19853 source: err.into(),
19854 }),
19855 }
19856 }
19857}
19858impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
19859 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
19860 match err {
19861 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19862 }
19863 }
19864}
19865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
19866where
19867 R: Send + Sync + std::fmt::Debug + 'static,
19868{
19869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
19870 match err {
19871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19874 source: err.into(),
19875 }),
19876 }
19877 }
19878}
19879impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
19880 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
19881 match err {
19882 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
19883 }
19884 }
19885}
19886impl<R>
19887 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError, R>>
19888 for Error
19889where
19890 R: Send + Sync + std::fmt::Debug + 'static,
19891{
19892 fn from(
19893 err: ::aws_smithy_runtime_api::client::result::SdkError<
19894 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError,
19895 R,
19896 >,
19897 ) -> Self {
19898 match err {
19899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19902 source: err.into(),
19903 }),
19904 }
19905 }
19906}
19907impl From<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError> for Error {
19908 fn from(err: crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError) -> Self {
19909 match err {
19910 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19911 }
19912 }
19913}
19914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
19915 for Error
19916where
19917 R: Send + Sync + std::fmt::Debug + 'static,
19918{
19919 fn from(
19920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
19921 ) -> Self {
19922 match err {
19923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19926 source: err.into(),
19927 }),
19928 }
19929 }
19930}
19931impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
19932 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
19933 match err {
19934 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
19935 }
19936 }
19937}
19938impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
19939 for Error
19940where
19941 R: Send + Sync + std::fmt::Debug + 'static,
19942{
19943 fn from(
19944 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
19945 ) -> Self {
19946 match err {
19947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19950 source: err.into(),
19951 }),
19952 }
19953 }
19954}
19955impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
19956 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
19957 match err {
19958 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
19959 }
19960 }
19961}
19962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
19963 for Error
19964where
19965 R: Send + Sync + std::fmt::Debug + 'static,
19966{
19967 fn from(
19968 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
19969 ) -> Self {
19970 match err {
19971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19974 source: err.into(),
19975 }),
19976 }
19977 }
19978}
19979impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
19980 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
19981 match err {
19982 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
19983 }
19984 }
19985}
19986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
19987where
19988 R: Send + Sync + std::fmt::Debug + 'static,
19989{
19990 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> Self {
19991 match err {
19992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19995 source: err.into(),
19996 }),
19997 }
19998 }
19999}
20000impl From<crate::operation::run_instances::RunInstancesError> for Error {
20001 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
20002 match err {
20003 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20004 }
20005 }
20006}
20007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
20008where
20009 R: Send + Sync + std::fmt::Debug + 'static,
20010{
20011 fn from(
20012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
20013 ) -> Self {
20014 match err {
20015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20018 source: err.into(),
20019 }),
20020 }
20021 }
20022}
20023impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
20024 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
20025 match err {
20026 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20027 }
20028 }
20029}
20030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
20031 for Error
20032where
20033 R: Send + Sync + std::fmt::Debug + 'static,
20034{
20035 fn from(
20036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
20037 ) -> Self {
20038 match err {
20039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20042 source: err.into(),
20043 }),
20044 }
20045 }
20046}
20047impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
20048 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
20049 match err {
20050 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
20051 }
20052 }
20053}
20054impl<R>
20055 From<
20056 ::aws_smithy_runtime_api::client::result::SdkError<
20057 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
20058 R,
20059 >,
20060 > for Error
20061where
20062 R: Send + Sync + std::fmt::Debug + 'static,
20063{
20064 fn from(
20065 err: ::aws_smithy_runtime_api::client::result::SdkError<
20066 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
20067 R,
20068 >,
20069 ) -> Self {
20070 match err {
20071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20074 source: err.into(),
20075 }),
20076 }
20077 }
20078}
20079impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
20080 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
20081 match err {
20082 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
20083 Error::Unhandled(inner)
20084 }
20085 }
20086 }
20087}
20088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
20089 for Error
20090where
20091 R: Send + Sync + std::fmt::Debug + 'static,
20092{
20093 fn from(
20094 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
20095 ) -> Self {
20096 match err {
20097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20100 source: err.into(),
20101 }),
20102 }
20103 }
20104}
20105impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
20106 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
20107 match err {
20108 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
20109 }
20110 }
20111}
20112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
20113 for Error
20114where
20115 R: Send + Sync + std::fmt::Debug + 'static,
20116{
20117 fn from(
20118 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
20119 ) -> Self {
20120 match err {
20121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20124 source: err.into(),
20125 }),
20126 }
20127 }
20128}
20129impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
20130 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
20131 match err {
20132 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
20133 }
20134 }
20135}
20136impl<R>
20137 From<
20138 ::aws_smithy_runtime_api::client::result::SdkError<
20139 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
20140 R,
20141 >,
20142 > for Error
20143where
20144 R: Send + Sync + std::fmt::Debug + 'static,
20145{
20146 fn from(
20147 err: ::aws_smithy_runtime_api::client::result::SdkError<
20148 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
20149 R,
20150 >,
20151 ) -> Self {
20152 match err {
20153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20156 source: err.into(),
20157 }),
20158 }
20159 }
20160}
20161impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
20162 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
20163 match err {
20164 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
20165 }
20166 }
20167}
20168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
20169where
20170 R: Send + Sync + std::fmt::Debug + 'static,
20171{
20172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
20173 match err {
20174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20177 source: err.into(),
20178 }),
20179 }
20180 }
20181}
20182impl From<crate::operation::start_instances::StartInstancesError> for Error {
20183 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
20184 match err {
20185 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20186 }
20187 }
20188}
20189impl<R>
20190 From<
20191 ::aws_smithy_runtime_api::client::result::SdkError<
20192 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
20193 R,
20194 >,
20195 > for Error
20196where
20197 R: Send + Sync + std::fmt::Debug + 'static,
20198{
20199 fn from(
20200 err: ::aws_smithy_runtime_api::client::result::SdkError<
20201 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
20202 R,
20203 >,
20204 ) -> Self {
20205 match err {
20206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20209 source: err.into(),
20210 }),
20211 }
20212 }
20213}
20214impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
20215 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
20216 match err {
20217 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
20218 Error::Unhandled(inner)
20219 }
20220 }
20221 }
20222}
20223impl<R>
20224 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
20225 for Error
20226where
20227 R: Send + Sync + std::fmt::Debug + 'static,
20228{
20229 fn from(
20230 err: ::aws_smithy_runtime_api::client::result::SdkError<
20231 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
20232 R,
20233 >,
20234 ) -> Self {
20235 match err {
20236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20239 source: err.into(),
20240 }),
20241 }
20242 }
20243}
20244impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
20245 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
20246 match err {
20247 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
20248 }
20249 }
20250}
20251impl<R>
20252 From<
20253 ::aws_smithy_runtime_api::client::result::SdkError<
20254 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
20255 R,
20256 >,
20257 > for Error
20258where
20259 R: Send + Sync + std::fmt::Debug + 'static,
20260{
20261 fn from(
20262 err: ::aws_smithy_runtime_api::client::result::SdkError<
20263 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
20264 R,
20265 >,
20266 ) -> Self {
20267 match err {
20268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20271 source: err.into(),
20272 }),
20273 }
20274 }
20275}
20276impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
20277 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
20278 match err {
20279 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
20280 inner,
20281 ) => Error::Unhandled(inner),
20282 }
20283 }
20284}
20285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
20286where
20287 R: Send + Sync + std::fmt::Debug + 'static,
20288{
20289 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
20290 match err {
20291 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20292 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20293 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20294 source: err.into(),
20295 }),
20296 }
20297 }
20298}
20299impl From<crate::operation::stop_instances::StopInstancesError> for Error {
20300 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
20301 match err {
20302 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20303 }
20304 }
20305}
20306impl<R>
20307 From<
20308 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
20309 > for Error
20310where
20311 R: Send + Sync + std::fmt::Debug + 'static,
20312{
20313 fn from(
20314 err: ::aws_smithy_runtime_api::client::result::SdkError<
20315 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
20316 R,
20317 >,
20318 ) -> Self {
20319 match err {
20320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20323 source: err.into(),
20324 }),
20325 }
20326 }
20327}
20328impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
20329 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
20330 match err {
20331 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
20332 }
20333 }
20334}
20335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
20336where
20337 R: Send + Sync + std::fmt::Debug + 'static,
20338{
20339 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> Self {
20340 match err {
20341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20344 source: err.into(),
20345 }),
20346 }
20347 }
20348}
20349impl From<crate::operation::terminate_instances::TerminateInstancesError> for Error {
20350 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
20351 match err {
20352 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20353 }
20354 }
20355}
20356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
20357where
20358 R: Send + Sync + std::fmt::Debug + 'static,
20359{
20360 fn from(
20361 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
20362 ) -> Self {
20363 match err {
20364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20367 source: err.into(),
20368 }),
20369 }
20370 }
20371}
20372impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
20373 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
20374 match err {
20375 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
20376 }
20377 }
20378}
20379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
20380 for Error
20381where
20382 R: Send + Sync + std::fmt::Debug + 'static,
20383{
20384 fn from(
20385 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
20386 ) -> Self {
20387 match err {
20388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20391 source: err.into(),
20392 }),
20393 }
20394 }
20395}
20396impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
20397 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
20398 match err {
20399 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
20400 }
20401 }
20402}
20403impl<R>
20404 From<
20405 ::aws_smithy_runtime_api::client::result::SdkError<
20406 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
20407 R,
20408 >,
20409 > for Error
20410where
20411 R: Send + Sync + std::fmt::Debug + 'static,
20412{
20413 fn from(
20414 err: ::aws_smithy_runtime_api::client::result::SdkError<
20415 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
20416 R,
20417 >,
20418 ) -> Self {
20419 match err {
20420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20423 source: err.into(),
20424 }),
20425 }
20426 }
20427}
20428impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
20429 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
20430 match err {
20431 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
20432 Error::Unhandled(inner)
20433 }
20434 }
20435 }
20436}
20437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
20438where
20439 R: Send + Sync + std::fmt::Debug + 'static,
20440{
20441 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
20442 match err {
20443 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20444 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20445 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20446 source: err.into(),
20447 }),
20448 }
20449 }
20450}
20451impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
20452 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
20453 match err {
20454 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
20455 }
20456 }
20457}
20458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
20459where
20460 R: Send + Sync + std::fmt::Debug + 'static,
20461{
20462 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
20463 match err {
20464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20467 source: err.into(),
20468 }),
20469 }
20470 }
20471}
20472impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
20473 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
20474 match err {
20475 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20476 }
20477 }
20478}
20479impl<R>
20480 From<
20481 ::aws_smithy_runtime_api::client::result::SdkError<
20482 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError,
20483 R,
20484 >,
20485 > for Error
20486where
20487 R: Send + Sync + std::fmt::Debug + 'static,
20488{
20489 fn from(
20490 err: ::aws_smithy_runtime_api::client::result::SdkError<
20491 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError,
20492 R,
20493 >,
20494 ) -> Self {
20495 match err {
20496 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20497 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20498 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20499 source: err.into(),
20500 }),
20501 }
20502 }
20503}
20504impl From<crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError> for Error {
20505 fn from(err: crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError) -> Self {
20506 match err {
20507 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError::Unhandled(inner) => {
20508 Error::Unhandled(inner)
20509 }
20510 }
20511 }
20512}
20513impl<R>
20514 From<
20515 ::aws_smithy_runtime_api::client::result::SdkError<
20516 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20517 R,
20518 >,
20519 > for Error
20520where
20521 R: Send + Sync + std::fmt::Debug + 'static,
20522{
20523 fn from(
20524 err: ::aws_smithy_runtime_api::client::result::SdkError<
20525 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20526 R,
20527 >,
20528 ) -> Self {
20529 match err {
20530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20533 source: err.into(),
20534 }),
20535 }
20536 }
20537}
20538impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
20539 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
20540 match err {
20541 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
20542 Error::Unhandled(inner)
20543 }
20544 }
20545 }
20546}
20547impl<R>
20548 From<
20549 ::aws_smithy_runtime_api::client::result::SdkError<
20550 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20551 R,
20552 >,
20553 > for Error
20554where
20555 R: Send + Sync + std::fmt::Debug + 'static,
20556{
20557 fn from(
20558 err: ::aws_smithy_runtime_api::client::result::SdkError<
20559 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20560 R,
20561 >,
20562 ) -> Self {
20563 match err {
20564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20567 source: err.into(),
20568 }),
20569 }
20570 }
20571}
20572impl From<crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError> for Error {
20573 fn from(
20574 err: crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20575 ) -> Self {
20576 match err {
20577 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError::Unhandled(inner) => Error::Unhandled(inner),
20578 }
20579 }
20580}
20581impl<R>
20582 From<
20583 ::aws_smithy_runtime_api::client::result::SdkError<
20584 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20585 R,
20586 >,
20587 > for Error
20588where
20589 R: Send + Sync + std::fmt::Debug + 'static,
20590{
20591 fn from(
20592 err: ::aws_smithy_runtime_api::client::result::SdkError<
20593 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20594 R,
20595 >,
20596 ) -> Self {
20597 match err {
20598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20601 source: err.into(),
20602 }),
20603 }
20604 }
20605}
20606impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
20607 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
20608 match err {
20609 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
20610 Error::Unhandled(inner)
20611 }
20612 }
20613 }
20614}
20615impl<R>
20616 From<
20617 ::aws_smithy_runtime_api::client::result::SdkError<
20618 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20619 R,
20620 >,
20621 > for Error
20622where
20623 R: Send + Sync + std::fmt::Debug + 'static,
20624{
20625 fn from(
20626 err: ::aws_smithy_runtime_api::client::result::SdkError<
20627 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20628 R,
20629 >,
20630 ) -> Self {
20631 match err {
20632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20635 source: err.into(),
20636 }),
20637 }
20638 }
20639}
20640impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
20641 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
20642 match err {
20643 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
20644 Error::Unhandled(inner)
20645 }
20646 }
20647 }
20648}
20649impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
20650where
20651 R: Send + Sync + std::fmt::Debug + 'static,
20652{
20653 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
20654 match err {
20655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20658 source: err.into(),
20659 }),
20660 }
20661 }
20662}
20663impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
20664 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
20665 match err {
20666 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
20667 }
20668 }
20669}
20670impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
20671where
20672 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
20673 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
20674{
20675 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
20676 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20677 meta: ::std::default::Default::default(),
20678 source: err.into(),
20679 })
20680 }
20681}
20682impl ::std::error::Error for Error {
20683 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
20684 match self {
20685 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
20686 }
20687 }
20688}
20689impl ::aws_types::request_id::RequestId for Error {
20690 fn request_id(&self) -> Option<&str> {
20691 match self {
20692 Self::Unhandled(e) => e.meta.request_id(),
20693 }
20694 }
20695}