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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8966where
8967 R: Send + Sync + std::fmt::Debug + 'static,
8968{
8969 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8970 match err {
8971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8974 source: err.into(),
8975 }),
8976 }
8977 }
8978}
8979impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
8980 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
8981 match err {
8982 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
8983 }
8984 }
8985}
8986impl<R>
8987 From<
8988 ::aws_smithy_runtime_api::client::result::SdkError<
8989 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8990 R,
8991 >,
8992 > for Error
8993where
8994 R: Send + Sync + std::fmt::Debug + 'static,
8995{
8996 fn from(
8997 err: ::aws_smithy_runtime_api::client::result::SdkError<
8998 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8999 R,
9000 >,
9001 ) -> Self {
9002 match err {
9003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9006 source: err.into(),
9007 }),
9008 }
9009 }
9010}
9011impl From<crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError> for Error {
9012 fn from(err: crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError) -> Self {
9013 match err {
9014 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError::Unhandled(inner) => Error::Unhandled(inner),
9015 }
9016 }
9017}
9018impl<R>
9019 From<
9020 ::aws_smithy_runtime_api::client::result::SdkError<
9021 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
9022 R,
9023 >,
9024 > for Error
9025where
9026 R: Send + Sync + std::fmt::Debug + 'static,
9027{
9028 fn from(
9029 err: ::aws_smithy_runtime_api::client::result::SdkError<
9030 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
9031 R,
9032 >,
9033 ) -> Self {
9034 match err {
9035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9038 source: err.into(),
9039 }),
9040 }
9041 }
9042}
9043impl From<crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError> for Error {
9044 fn from(err: crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError) -> Self {
9045 match err {
9046 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError::Unhandled(inner) => {
9047 Error::Unhandled(inner)
9048 }
9049 }
9050 }
9051}
9052impl<R>
9053 From<
9054 ::aws_smithy_runtime_api::client::result::SdkError<
9055 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
9056 R,
9057 >,
9058 > for Error
9059where
9060 R: Send + Sync + std::fmt::Debug + 'static,
9061{
9062 fn from(
9063 err: ::aws_smithy_runtime_api::client::result::SdkError<
9064 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
9065 R,
9066 >,
9067 ) -> Self {
9068 match err {
9069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9072 source: err.into(),
9073 }),
9074 }
9075 }
9076}
9077impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
9078 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
9079 match err {
9080 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
9081 }
9082 }
9083}
9084impl<R>
9085 From<
9086 ::aws_smithy_runtime_api::client::result::SdkError<
9087 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
9088 R,
9089 >,
9090 > for Error
9091where
9092 R: Send + Sync + std::fmt::Debug + 'static,
9093{
9094 fn from(
9095 err: ::aws_smithy_runtime_api::client::result::SdkError<
9096 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
9097 R,
9098 >,
9099 ) -> Self {
9100 match err {
9101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9104 source: err.into(),
9105 }),
9106 }
9107 }
9108}
9109impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
9110 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
9111 match err {
9112 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
9113 Error::Unhandled(inner)
9114 }
9115 }
9116 }
9117}
9118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
9119where
9120 R: Send + Sync + std::fmt::Debug + 'static,
9121{
9122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
9123 match err {
9124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9127 source: err.into(),
9128 }),
9129 }
9130 }
9131}
9132impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
9133 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
9134 match err {
9135 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
9136 }
9137 }
9138}
9139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
9140where
9141 R: Send + Sync + std::fmt::Debug + 'static,
9142{
9143 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
9144 match err {
9145 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9146 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9147 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9148 source: err.into(),
9149 }),
9150 }
9151 }
9152}
9153impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
9154 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
9155 match err {
9156 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
9157 }
9158 }
9159}
9160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
9161where
9162 R: Send + Sync + std::fmt::Debug + 'static,
9163{
9164 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
9165 match err {
9166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9169 source: err.into(),
9170 }),
9171 }
9172 }
9173}
9174impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
9175 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
9176 match err {
9177 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9178 }
9179 }
9180}
9181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
9182where
9183 R: Send + Sync + std::fmt::Debug + 'static,
9184{
9185 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> Self {
9186 match err {
9187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9190 source: err.into(),
9191 }),
9192 }
9193 }
9194}
9195impl From<crate::operation::describe_key_pairs::DescribeKeyPairsError> for Error {
9196 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
9197 match err {
9198 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
9199 }
9200 }
9201}
9202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
9203 for Error
9204where
9205 R: Send + Sync + std::fmt::Debug + 'static,
9206{
9207 fn from(
9208 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
9209 ) -> Self {
9210 match err {
9211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9214 source: err.into(),
9215 }),
9216 }
9217 }
9218}
9219impl From<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError> for Error {
9220 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
9221 match err {
9222 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
9223 }
9224 }
9225}
9226impl<R>
9227 From<
9228 ::aws_smithy_runtime_api::client::result::SdkError<
9229 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9230 R,
9231 >,
9232 > for Error
9233where
9234 R: Send + Sync + std::fmt::Debug + 'static,
9235{
9236 fn from(
9237 err: ::aws_smithy_runtime_api::client::result::SdkError<
9238 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9239 R,
9240 >,
9241 ) -> Self {
9242 match err {
9243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9246 source: err.into(),
9247 }),
9248 }
9249 }
9250}
9251impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
9252 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
9253 match err {
9254 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
9255 }
9256 }
9257}
9258impl<R>
9259 From<
9260 ::aws_smithy_runtime_api::client::result::SdkError<
9261 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9262 R,
9263 >,
9264 > for Error
9265where
9266 R: Send + Sync + std::fmt::Debug + 'static,
9267{
9268 fn from(
9269 err: ::aws_smithy_runtime_api::client::result::SdkError<
9270 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9271 R,
9272 >,
9273 ) -> Self {
9274 match err {
9275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9278 source: err.into(),
9279 }),
9280 }
9281 }
9282}
9283impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
9284 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
9285 match err {
9286 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9287 }
9288 }
9289}
9290impl<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 {
9291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
9292 match err {
9293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9294 _ => Error::Unhandled(
9295 crate::error::sealed_unhandled::Unhandled {
9296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9297 source: err.into(),
9298 }
9299 ),
9300 }
9301 }
9302}
9303impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
9304 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
9305 match err {
9306 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
9307 }
9308 }
9309}
9310impl<R>
9311 From<
9312 ::aws_smithy_runtime_api::client::result::SdkError<
9313 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9314 R,
9315 >,
9316 > for Error
9317where
9318 R: Send + Sync + std::fmt::Debug + 'static,
9319{
9320 fn from(
9321 err: ::aws_smithy_runtime_api::client::result::SdkError<
9322 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9323 R,
9324 >,
9325 ) -> Self {
9326 match err {
9327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9330 source: err.into(),
9331 }),
9332 }
9333 }
9334}
9335impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
9336 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
9337 match err {
9338 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
9339 inner,
9340 ) => Error::Unhandled(inner),
9341 }
9342 }
9343}
9344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
9345where
9346 R: Send + Sync + std::fmt::Debug + 'static,
9347{
9348 fn from(
9349 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
9350 ) -> Self {
9351 match err {
9352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9355 source: err.into(),
9356 }),
9357 }
9358 }
9359}
9360impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
9361 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
9362 match err {
9363 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9364 }
9365 }
9366}
9367impl<R>
9368 From<
9369 ::aws_smithy_runtime_api::client::result::SdkError<
9370 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9371 R,
9372 >,
9373 > for Error
9374where
9375 R: Send + Sync + std::fmt::Debug + 'static,
9376{
9377 fn from(
9378 err: ::aws_smithy_runtime_api::client::result::SdkError<
9379 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9380 R,
9381 >,
9382 ) -> Self {
9383 match err {
9384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9387 source: err.into(),
9388 }),
9389 }
9390 }
9391}
9392impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
9393 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
9394 match err {
9395 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
9396 Error::Unhandled(inner)
9397 }
9398 }
9399 }
9400}
9401impl<R>
9402 From<
9403 ::aws_smithy_runtime_api::client::result::SdkError<
9404 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9405 R,
9406 >,
9407 > for Error
9408where
9409 R: Send + Sync + std::fmt::Debug + 'static,
9410{
9411 fn from(
9412 err: ::aws_smithy_runtime_api::client::result::SdkError<
9413 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9414 R,
9415 >,
9416 ) -> Self {
9417 match err {
9418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9421 source: err.into(),
9422 }),
9423 }
9424 }
9425}
9426impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
9427 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
9428 match err {
9429 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
9430 Error::Unhandled(inner)
9431 }
9432 }
9433 }
9434}
9435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
9436 for Error
9437where
9438 R: Send + Sync + std::fmt::Debug + 'static,
9439{
9440 fn from(
9441 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
9442 ) -> Self {
9443 match err {
9444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9447 source: err.into(),
9448 }),
9449 }
9450 }
9451}
9452impl From<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError> for Error {
9453 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
9454 match err {
9455 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9456 }
9457 }
9458}
9459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
9460where
9461 R: Send + Sync + std::fmt::Debug + 'static,
9462{
9463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
9464 match err {
9465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9468 source: err.into(),
9469 }),
9470 }
9471 }
9472}
9473impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
9474 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
9475 match err {
9476 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
9477 }
9478 }
9479}
9480impl<R>
9481 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
9482 for Error
9483where
9484 R: Send + Sync + std::fmt::Debug + 'static,
9485{
9486 fn from(
9487 err: ::aws_smithy_runtime_api::client::result::SdkError<
9488 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
9489 R,
9490 >,
9491 ) -> 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_modification_tasks::DescribeMacModificationTasksError> for Error {
9502 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
9503 match err {
9504 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
9505 }
9506 }
9507}
9508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
9509 for Error
9510where
9511 R: Send + Sync + std::fmt::Debug + 'static,
9512{
9513 fn from(
9514 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
9515 ) -> Self {
9516 match err {
9517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9520 source: err.into(),
9521 }),
9522 }
9523 }
9524}
9525impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
9526 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
9527 match err {
9528 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9529 }
9530 }
9531}
9532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
9533 for Error
9534where
9535 R: Send + Sync + std::fmt::Debug + 'static,
9536{
9537 fn from(
9538 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
9539 ) -> Self {
9540 match err {
9541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9544 source: err.into(),
9545 }),
9546 }
9547 }
9548}
9549impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
9550 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
9551 match err {
9552 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
9553 }
9554 }
9555}
9556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
9557where
9558 R: Send + Sync + std::fmt::Debug + 'static,
9559{
9560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
9561 match err {
9562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9565 source: err.into(),
9566 }),
9567 }
9568 }
9569}
9570impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
9571 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
9572 match err {
9573 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9574 }
9575 }
9576}
9577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
9578where
9579 R: Send + Sync + std::fmt::Debug + 'static,
9580{
9581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
9582 match err {
9583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9586 source: err.into(),
9587 }),
9588 }
9589 }
9590}
9591impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
9592 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
9593 match err {
9594 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
9595 }
9596 }
9597}
9598impl<R>
9599 From<
9600 ::aws_smithy_runtime_api::client::result::SdkError<
9601 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9602 R,
9603 >,
9604 > for Error
9605where
9606 R: Send + Sync + std::fmt::Debug + 'static,
9607{
9608 fn from(
9609 err: ::aws_smithy_runtime_api::client::result::SdkError<
9610 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9611 R,
9612 >,
9613 ) -> Self {
9614 match err {
9615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9618 source: err.into(),
9619 }),
9620 }
9621 }
9622}
9623impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
9624 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
9625 match err {
9626 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
9627 Error::Unhandled(inner)
9628 }
9629 }
9630 }
9631}
9632impl<R>
9633 From<
9634 ::aws_smithy_runtime_api::client::result::SdkError<
9635 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9636 R,
9637 >,
9638 > for Error
9639where
9640 R: Send + Sync + std::fmt::Debug + 'static,
9641{
9642 fn from(
9643 err: ::aws_smithy_runtime_api::client::result::SdkError<
9644 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9645 R,
9646 >,
9647 ) -> Self {
9648 match err {
9649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9652 source: err.into(),
9653 }),
9654 }
9655 }
9656}
9657impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
9658 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
9659 match err {
9660 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
9661 Error::Unhandled(inner)
9662 }
9663 }
9664 }
9665}
9666impl<R>
9667 From<
9668 ::aws_smithy_runtime_api::client::result::SdkError<
9669 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9670 R,
9671 >,
9672 > for Error
9673where
9674 R: Send + Sync + std::fmt::Debug + 'static,
9675{
9676 fn from(
9677 err: ::aws_smithy_runtime_api::client::result::SdkError<
9678 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9679 R,
9680 >,
9681 ) -> Self {
9682 match err {
9683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9686 source: err.into(),
9687 }),
9688 }
9689 }
9690}
9691impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
9692 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
9693 match err {
9694 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
9695 }
9696 }
9697}
9698impl<R>
9699 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
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_paths::DescribeNetworkInsightsPathsError,
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_paths::DescribeNetworkInsightsPathsError> for Error {
9720 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
9721 match err {
9722 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
9723 }
9724 }
9725}
9726impl<R>
9727 From<
9728 ::aws_smithy_runtime_api::client::result::SdkError<
9729 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9730 R,
9731 >,
9732 > for Error
9733where
9734 R: Send + Sync + std::fmt::Debug + 'static,
9735{
9736 fn from(
9737 err: ::aws_smithy_runtime_api::client::result::SdkError<
9738 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9739 R,
9740 >,
9741 ) -> Self {
9742 match err {
9743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9746 source: err.into(),
9747 }),
9748 }
9749 }
9750}
9751impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
9752 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
9753 match err {
9754 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
9755 Error::Unhandled(inner)
9756 }
9757 }
9758 }
9759}
9760impl<R>
9761 From<
9762 ::aws_smithy_runtime_api::client::result::SdkError<
9763 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9764 R,
9765 >,
9766 > for Error
9767where
9768 R: Send + Sync + std::fmt::Debug + 'static,
9769{
9770 fn from(
9771 err: ::aws_smithy_runtime_api::client::result::SdkError<
9772 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9773 R,
9774 >,
9775 ) -> Self {
9776 match err {
9777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9780 source: err.into(),
9781 }),
9782 }
9783 }
9784}
9785impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9786 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9787 match err {
9788 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9789 Error::Unhandled(inner)
9790 }
9791 }
9792 }
9793}
9794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9795 for Error
9796where
9797 R: Send + Sync + std::fmt::Debug + 'static,
9798{
9799 fn from(
9800 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9801 ) -> Self {
9802 match err {
9803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9806 source: err.into(),
9807 }),
9808 }
9809 }
9810}
9811impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9812 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9813 match err {
9814 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9815 }
9816 }
9817}
9818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9819where
9820 R: Send + Sync + std::fmt::Debug + 'static,
9821{
9822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9823 match err {
9824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9827 source: err.into(),
9828 }),
9829 }
9830 }
9831}
9832impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9833 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9834 match err {
9835 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9836 }
9837 }
9838}
9839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9840 for Error
9841where
9842 R: Send + Sync + std::fmt::Debug + 'static,
9843{
9844 fn from(
9845 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9846 ) -> Self {
9847 match err {
9848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9851 source: err.into(),
9852 }),
9853 }
9854 }
9855}
9856impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9857 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9858 match err {
9859 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9860 }
9861 }
9862}
9863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9864where
9865 R: Send + Sync + std::fmt::Debug + 'static,
9866{
9867 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9868 match err {
9869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9872 source: err.into(),
9873 }),
9874 }
9875 }
9876}
9877impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9878 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9879 match err {
9880 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9881 }
9882 }
9883}
9884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9885 for Error
9886where
9887 R: Send + Sync + std::fmt::Debug + 'static,
9888{
9889 fn from(
9890 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9891 ) -> Self {
9892 match err {
9893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9896 source: err.into(),
9897 }),
9898 }
9899 }
9900}
9901impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9902 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9903 match err {
9904 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9905 }
9906 }
9907}
9908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9909 for Error
9910where
9911 R: Send + Sync + std::fmt::Debug + 'static,
9912{
9913 fn from(
9914 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9915 ) -> Self {
9916 match err {
9917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9920 source: err.into(),
9921 }),
9922 }
9923 }
9924}
9925impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9926 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9927 match err {
9928 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9929 }
9930 }
9931}
9932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9933where
9934 R: Send + Sync + std::fmt::Debug + 'static,
9935{
9936 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9937 match err {
9938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9941 source: err.into(),
9942 }),
9943 }
9944 }
9945}
9946impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9947 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9948 match err {
9949 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9950 }
9951 }
9952}
9953impl<R>
9954 From<
9955 ::aws_smithy_runtime_api::client::result::SdkError<
9956 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9957 R,
9958 >,
9959 > for Error
9960where
9961 R: Send + Sync + std::fmt::Debug + 'static,
9962{
9963 fn from(
9964 err: ::aws_smithy_runtime_api::client::result::SdkError<
9965 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9966 R,
9967 >,
9968 ) -> Self {
9969 match err {
9970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9973 source: err.into(),
9974 }),
9975 }
9976 }
9977}
9978impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
9979 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
9980 match err {
9981 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
9982 }
9983 }
9984}
9985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
9986 for Error
9987where
9988 R: Send + Sync + std::fmt::Debug + 'static,
9989{
9990 fn from(
9991 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
9992 ) -> Self {
9993 match err {
9994 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9995 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9996 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9997 source: err.into(),
9998 }),
9999 }
10000 }
10001}
10002impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
10003 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
10004 match err {
10005 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10006 }
10007 }
10008}
10009impl<R>
10010 From<
10011 ::aws_smithy_runtime_api::client::result::SdkError<
10012 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
10013 R,
10014 >,
10015 > for Error
10016where
10017 R: Send + Sync + std::fmt::Debug + 'static,
10018{
10019 fn from(
10020 err: ::aws_smithy_runtime_api::client::result::SdkError<
10021 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
10022 R,
10023 >,
10024 ) -> Self {
10025 match err {
10026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10029 source: err.into(),
10030 }),
10031 }
10032 }
10033}
10034impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
10035 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
10036 match err {
10037 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
10038 Error::Unhandled(inner)
10039 }
10040 }
10041 }
10042}
10043impl<R>
10044 From<
10045 ::aws_smithy_runtime_api::client::result::SdkError<
10046 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
10047 R,
10048 >,
10049 > for Error
10050where
10051 R: Send + Sync + std::fmt::Debug + 'static,
10052{
10053 fn from(
10054 err: ::aws_smithy_runtime_api::client::result::SdkError<
10055 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
10056 R,
10057 >,
10058 ) -> Self {
10059 match err {
10060 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10061 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10062 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10063 source: err.into(),
10064 }),
10065 }
10066 }
10067}
10068impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
10069 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
10070 match err {
10071 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
10072 Error::Unhandled(inner)
10073 }
10074 }
10075 }
10076}
10077impl<R>
10078 From<
10079 ::aws_smithy_runtime_api::client::result::SdkError<
10080 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
10081 R,
10082 >,
10083 > for Error
10084where
10085 R: Send + Sync + std::fmt::Debug + 'static,
10086{
10087 fn from(
10088 err: ::aws_smithy_runtime_api::client::result::SdkError<
10089 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
10090 R,
10091 >,
10092 ) -> Self {
10093 match err {
10094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10097 source: err.into(),
10098 }),
10099 }
10100 }
10101}
10102impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
10103 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
10104 match err {
10105 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
10106 Error::Unhandled(inner)
10107 }
10108 }
10109 }
10110}
10111impl<R>
10112 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
10113 for Error
10114where
10115 R: Send + Sync + std::fmt::Debug + 'static,
10116{
10117 fn from(
10118 err: ::aws_smithy_runtime_api::client::result::SdkError<
10119 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError,
10120 R,
10121 >,
10122 ) -> Self {
10123 match err {
10124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10127 source: err.into(),
10128 }),
10129 }
10130 }
10131}
10132impl From<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
10133 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
10134 match err {
10135 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10136 }
10137 }
10138}
10139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
10140 for Error
10141where
10142 R: Send + Sync + std::fmt::Debug + 'static,
10143{
10144 fn from(
10145 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
10146 ) -> Self {
10147 match err {
10148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10151 source: err.into(),
10152 }),
10153 }
10154 }
10155}
10156impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
10157 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
10158 match err {
10159 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
10160 }
10161 }
10162}
10163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
10164where
10165 R: Send + Sync + std::fmt::Debug + 'static,
10166{
10167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
10168 match err {
10169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10172 source: err.into(),
10173 }),
10174 }
10175 }
10176}
10177impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
10178 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
10179 match err {
10180 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
10181 }
10182 }
10183}
10184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
10185where
10186 R: Send + Sync + std::fmt::Debug + 'static,
10187{
10188 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
10189 match err {
10190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10193 source: err.into(),
10194 }),
10195 }
10196 }
10197}
10198impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
10199 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
10200 match err {
10201 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
10202 }
10203 }
10204}
10205impl<R>
10206 From<
10207 ::aws_smithy_runtime_api::client::result::SdkError<
10208 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10209 R,
10210 >,
10211 > for Error
10212where
10213 R: Send + Sync + std::fmt::Debug + 'static,
10214{
10215 fn from(
10216 err: ::aws_smithy_runtime_api::client::result::SdkError<
10217 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10218 R,
10219 >,
10220 ) -> Self {
10221 match err {
10222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10225 source: err.into(),
10226 }),
10227 }
10228 }
10229}
10230impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
10231 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
10232 match err {
10233 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
10234 Error::Unhandled(inner)
10235 }
10236 }
10237 }
10238}
10239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
10240 for Error
10241where
10242 R: Send + Sync + std::fmt::Debug + 'static,
10243{
10244 fn from(
10245 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
10246 ) -> Self {
10247 match err {
10248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10251 source: err.into(),
10252 }),
10253 }
10254 }
10255}
10256impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
10257 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
10258 match err {
10259 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10260 }
10261 }
10262}
10263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError, R>>
10264 for Error
10265where
10266 R: Send + Sync + std::fmt::Debug + 'static,
10267{
10268 fn from(
10269 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError, R>,
10270 ) -> Self {
10271 match err {
10272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10275 source: err.into(),
10276 }),
10277 }
10278 }
10279}
10280impl From<crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError> for Error {
10281 fn from(err: crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError) -> Self {
10282 match err {
10283 crate::operation::describe_secondary_interfaces::DescribeSecondaryInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
10284 }
10285 }
10286}
10287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError, R>>
10288 for Error
10289where
10290 R: Send + Sync + std::fmt::Debug + 'static,
10291{
10292 fn from(
10293 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError, R>,
10294 ) -> Self {
10295 match err {
10296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10299 source: err.into(),
10300 }),
10301 }
10302 }
10303}
10304impl From<crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError> for Error {
10305 fn from(err: crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError) -> Self {
10306 match err {
10307 crate::operation::describe_secondary_networks::DescribeSecondaryNetworksError::Unhandled(inner) => Error::Unhandled(inner),
10308 }
10309 }
10310}
10311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError, R>>
10312 for Error
10313where
10314 R: Send + Sync + std::fmt::Debug + 'static,
10315{
10316 fn from(
10317 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError, R>,
10318 ) -> Self {
10319 match err {
10320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10323 source: err.into(),
10324 }),
10325 }
10326 }
10327}
10328impl From<crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError> for Error {
10329 fn from(err: crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError) -> Self {
10330 match err {
10331 crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10332 }
10333 }
10334}
10335impl<R>
10336 From<
10337 ::aws_smithy_runtime_api::client::result::SdkError<
10338 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10339 R,
10340 >,
10341 > for Error
10342where
10343 R: Send + Sync + std::fmt::Debug + 'static,
10344{
10345 fn from(
10346 err: ::aws_smithy_runtime_api::client::result::SdkError<
10347 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10348 R,
10349 >,
10350 ) -> Self {
10351 match err {
10352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10355 source: err.into(),
10356 }),
10357 }
10358 }
10359}
10360impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
10361 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
10362 match err {
10363 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
10364 }
10365 }
10366}
10367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
10368 for Error
10369where
10370 R: Send + Sync + std::fmt::Debug + 'static,
10371{
10372 fn from(
10373 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
10374 ) -> Self {
10375 match err {
10376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10379 source: err.into(),
10380 }),
10381 }
10382 }
10383}
10384impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
10385 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
10386 match err {
10387 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
10388 }
10389 }
10390}
10391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
10392where
10393 R: Send + Sync + std::fmt::Debug + 'static,
10394{
10395 fn from(
10396 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
10397 ) -> Self {
10398 match err {
10399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10402 source: err.into(),
10403 }),
10404 }
10405 }
10406}
10407impl From<crate::operation::describe_security_groups::DescribeSecurityGroupsError> for Error {
10408 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
10409 match err {
10410 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10411 }
10412 }
10413}
10414impl<R>
10415 From<
10416 ::aws_smithy_runtime_api::client::result::SdkError<
10417 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10418 R,
10419 >,
10420 > for Error
10421where
10422 R: Send + Sync + std::fmt::Debug + 'static,
10423{
10424 fn from(
10425 err: ::aws_smithy_runtime_api::client::result::SdkError<
10426 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10427 R,
10428 >,
10429 ) -> Self {
10430 match err {
10431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10434 source: err.into(),
10435 }),
10436 }
10437 }
10438}
10439impl From<crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
10440 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
10441 match err {
10442 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
10443 Error::Unhandled(inner)
10444 }
10445 }
10446 }
10447}
10448impl<R>
10449 From<
10450 ::aws_smithy_runtime_api::client::result::SdkError<
10451 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10452 R,
10453 >,
10454 > for Error
10455where
10456 R: Send + Sync + std::fmt::Debug + 'static,
10457{
10458 fn from(
10459 err: ::aws_smithy_runtime_api::client::result::SdkError<
10460 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10461 R,
10462 >,
10463 ) -> Self {
10464 match err {
10465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10468 source: err.into(),
10469 }),
10470 }
10471 }
10472}
10473impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
10474 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
10475 match err {
10476 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
10477 Error::Unhandled(inner)
10478 }
10479 }
10480 }
10481}
10482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
10483 for Error
10484where
10485 R: Send + Sync + std::fmt::Debug + 'static,
10486{
10487 fn from(
10488 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
10489 ) -> Self {
10490 match err {
10491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10494 source: err.into(),
10495 }),
10496 }
10497 }
10498}
10499impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
10500 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
10501 match err {
10502 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10503 }
10504 }
10505}
10506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
10507where
10508 R: Send + Sync + std::fmt::Debug + 'static,
10509{
10510 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
10511 match err {
10512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10515 source: err.into(),
10516 }),
10517 }
10518 }
10519}
10520impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
10521 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
10522 match err {
10523 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
10524 }
10525 }
10526}
10527impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
10528 for Error
10529where
10530 R: Send + Sync + std::fmt::Debug + 'static,
10531{
10532 fn from(
10533 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
10534 ) -> Self {
10535 match err {
10536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10539 source: err.into(),
10540 }),
10541 }
10542 }
10543}
10544impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
10545 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
10546 match err {
10547 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
10548 }
10549 }
10550}
10551impl<R>
10552 From<
10553 ::aws_smithy_runtime_api::client::result::SdkError<
10554 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10555 R,
10556 >,
10557 > for Error
10558where
10559 R: Send + Sync + std::fmt::Debug + 'static,
10560{
10561 fn from(
10562 err: ::aws_smithy_runtime_api::client::result::SdkError<
10563 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10564 R,
10565 >,
10566 ) -> Self {
10567 match err {
10568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10571 source: err.into(),
10572 }),
10573 }
10574 }
10575}
10576impl From<crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
10577 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
10578 match err {
10579 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
10580 }
10581 }
10582}
10583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
10584 for Error
10585where
10586 R: Send + Sync + std::fmt::Debug + 'static,
10587{
10588 fn from(
10589 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
10590 ) -> Self {
10591 match err {
10592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10595 source: err.into(),
10596 }),
10597 }
10598 }
10599}
10600impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
10601 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
10602 match err {
10603 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10604 }
10605 }
10606}
10607impl<R>
10608 From<
10609 ::aws_smithy_runtime_api::client::result::SdkError<
10610 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10611 R,
10612 >,
10613 > for Error
10614where
10615 R: Send + Sync + std::fmt::Debug + 'static,
10616{
10617 fn from(
10618 err: ::aws_smithy_runtime_api::client::result::SdkError<
10619 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10620 R,
10621 >,
10622 ) -> Self {
10623 match err {
10624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10627 source: err.into(),
10628 }),
10629 }
10630 }
10631}
10632impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
10633 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
10634 match err {
10635 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10636 }
10637 }
10638}
10639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
10640 for Error
10641where
10642 R: Send + Sync + std::fmt::Debug + 'static,
10643{
10644 fn from(
10645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
10646 ) -> Self {
10647 match err {
10648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10651 source: err.into(),
10652 }),
10653 }
10654 }
10655}
10656impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
10657 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
10658 match err {
10659 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10660 }
10661 }
10662}
10663impl<R>
10664 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
10665 for Error
10666where
10667 R: Send + Sync + std::fmt::Debug + 'static,
10668{
10669 fn from(
10670 err: ::aws_smithy_runtime_api::client::result::SdkError<
10671 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
10672 R,
10673 >,
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_instance_requests::DescribeSpotInstanceRequestsError> for Error {
10685 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
10686 match err {
10687 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10688 }
10689 }
10690}
10691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
10692 for Error
10693where
10694 R: Send + Sync + std::fmt::Debug + 'static,
10695{
10696 fn from(
10697 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
10698 ) -> Self {
10699 match err {
10700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10703 source: err.into(),
10704 }),
10705 }
10706 }
10707}
10708impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
10709 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
10710 match err {
10711 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10712 }
10713 }
10714}
10715impl<R>
10716 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
10717 for Error
10718where
10719 R: Send + Sync + std::fmt::Debug + 'static,
10720{
10721 fn from(
10722 err: ::aws_smithy_runtime_api::client::result::SdkError<
10723 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
10724 R,
10725 >,
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_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
10737 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
10738 match err {
10739 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10740 }
10741 }
10742}
10743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
10744 for Error
10745where
10746 R: Send + Sync + std::fmt::Debug + 'static,
10747{
10748 fn from(
10749 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
10750 ) -> Self {
10751 match err {
10752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10755 source: err.into(),
10756 }),
10757 }
10758 }
10759}
10760impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
10761 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
10762 match err {
10763 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
10764 }
10765 }
10766}
10767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
10768where
10769 R: Send + Sync + std::fmt::Debug + 'static,
10770{
10771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
10772 match err {
10773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10776 source: err.into(),
10777 }),
10778 }
10779 }
10780}
10781impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
10782 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
10783 match err {
10784 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10785 }
10786 }
10787}
10788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
10789where
10790 R: Send + Sync + std::fmt::Debug + 'static,
10791{
10792 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
10793 match err {
10794 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10795 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10796 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10797 source: err.into(),
10798 }),
10799 }
10800 }
10801}
10802impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
10803 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
10804 match err {
10805 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
10806 }
10807 }
10808}
10809impl<R>
10810 From<
10811 ::aws_smithy_runtime_api::client::result::SdkError<
10812 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10813 R,
10814 >,
10815 > for Error
10816where
10817 R: Send + Sync + std::fmt::Debug + 'static,
10818{
10819 fn from(
10820 err: ::aws_smithy_runtime_api::client::result::SdkError<
10821 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10822 R,
10823 >,
10824 ) -> Self {
10825 match err {
10826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10829 source: err.into(),
10830 }),
10831 }
10832 }
10833}
10834impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
10835 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
10836 match err {
10837 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
10838 Error::Unhandled(inner)
10839 }
10840 }
10841 }
10842}
10843impl<R>
10844 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10845 for Error
10846where
10847 R: Send + Sync + std::fmt::Debug + 'static,
10848{
10849 fn from(
10850 err: ::aws_smithy_runtime_api::client::result::SdkError<
10851 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10852 R,
10853 >,
10854 ) -> Self {
10855 match err {
10856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10859 source: err.into(),
10860 }),
10861 }
10862 }
10863}
10864impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10865 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10866 match err {
10867 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10868 }
10869 }
10870}
10871impl<R>
10872 From<
10873 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10874 > for Error
10875where
10876 R: Send + Sync + std::fmt::Debug + 'static,
10877{
10878 fn from(
10879 err: ::aws_smithy_runtime_api::client::result::SdkError<
10880 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10881 R,
10882 >,
10883 ) -> Self {
10884 match err {
10885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10888 source: err.into(),
10889 }),
10890 }
10891 }
10892}
10893impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10894 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10895 match err {
10896 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10897 }
10898 }
10899}
10900impl<R>
10901 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, 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_targets::DescribeTrafficMirrorTargetsError,
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_targets::DescribeTrafficMirrorTargetsError> for Error {
10922 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10923 match err {
10924 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10925 }
10926 }
10927}
10928impl<R>
10929 From<
10930 ::aws_smithy_runtime_api::client::result::SdkError<
10931 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10932 R,
10933 >,
10934 > for Error
10935where
10936 R: Send + Sync + std::fmt::Debug + 'static,
10937{
10938 fn from(
10939 err: ::aws_smithy_runtime_api::client::result::SdkError<
10940 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10941 R,
10942 >,
10943 ) -> Self {
10944 match err {
10945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10948 source: err.into(),
10949 }),
10950 }
10951 }
10952}
10953impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10954 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10955 match err {
10956 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10957 Error::Unhandled(inner)
10958 }
10959 }
10960 }
10961}
10962impl<R>
10963 From<
10964 ::aws_smithy_runtime_api::client::result::SdkError<
10965 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10966 R,
10967 >,
10968 > for Error
10969where
10970 R: Send + Sync + std::fmt::Debug + 'static,
10971{
10972 fn from(
10973 err: ::aws_smithy_runtime_api::client::result::SdkError<
10974 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10975 R,
10976 >,
10977 ) -> Self {
10978 match err {
10979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10982 source: err.into(),
10983 }),
10984 }
10985 }
10986}
10987impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
10988 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
10989 match err {
10990 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
10991 Error::Unhandled(inner)
10992 }
10993 }
10994 }
10995}
10996impl<R>
10997 From<
10998 ::aws_smithy_runtime_api::client::result::SdkError<
10999 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
11000 R,
11001 >,
11002 > for Error
11003where
11004 R: Send + Sync + std::fmt::Debug + 'static,
11005{
11006 fn from(
11007 err: ::aws_smithy_runtime_api::client::result::SdkError<
11008 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
11009 R,
11010 >,
11011 ) -> Self {
11012 match err {
11013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11016 source: err.into(),
11017 }),
11018 }
11019 }
11020}
11021impl From<crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
11022 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
11023 match err {
11024 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
11025 }
11026 }
11027}
11028impl<R>
11029 From<
11030 ::aws_smithy_runtime_api::client::result::SdkError<
11031 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
11032 R,
11033 >,
11034 > for Error
11035where
11036 R: Send + Sync + std::fmt::Debug + 'static,
11037{
11038 fn from(
11039 err: ::aws_smithy_runtime_api::client::result::SdkError<
11040 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
11041 R,
11042 >,
11043 ) -> Self {
11044 match err {
11045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11048 source: err.into(),
11049 }),
11050 }
11051 }
11052}
11053impl From<crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError> for Error {
11054 fn from(err: crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError) -> Self {
11055 match err {
11056 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError::Unhandled(inner) => {
11057 Error::Unhandled(inner)
11058 }
11059 }
11060 }
11061}
11062impl<R>
11063 From<
11064 ::aws_smithy_runtime_api::client::result::SdkError<
11065 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
11066 R,
11067 >,
11068 > for Error
11069where
11070 R: Send + Sync + std::fmt::Debug + 'static,
11071{
11072 fn from(
11073 err: ::aws_smithy_runtime_api::client::result::SdkError<
11074 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
11075 R,
11076 >,
11077 ) -> Self {
11078 match err {
11079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11082 source: err.into(),
11083 }),
11084 }
11085 }
11086}
11087impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
11088 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
11089 match err {
11090 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
11091 Error::Unhandled(inner)
11092 }
11093 }
11094 }
11095}
11096impl<R>
11097 From<
11098 ::aws_smithy_runtime_api::client::result::SdkError<
11099 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
11100 R,
11101 >,
11102 > for Error
11103where
11104 R: Send + Sync + std::fmt::Debug + 'static,
11105{
11106 fn from(
11107 err: ::aws_smithy_runtime_api::client::result::SdkError<
11108 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
11109 R,
11110 >,
11111 ) -> Self {
11112 match err {
11113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11116 source: err.into(),
11117 }),
11118 }
11119 }
11120}
11121impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
11122 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
11123 match err {
11124 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
11125 Error::Unhandled(inner)
11126 }
11127 }
11128 }
11129}
11130impl<R>
11131 From<
11132 ::aws_smithy_runtime_api::client::result::SdkError<
11133 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
11134 R,
11135 >,
11136 > for Error
11137where
11138 R: Send + Sync + std::fmt::Debug + 'static,
11139{
11140 fn from(
11141 err: ::aws_smithy_runtime_api::client::result::SdkError<
11142 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
11143 R,
11144 >,
11145 ) -> Self {
11146 match err {
11147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11150 source: err.into(),
11151 }),
11152 }
11153 }
11154}
11155impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
11156 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
11157 match err {
11158 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
11159 Error::Unhandled(inner)
11160 }
11161 }
11162 }
11163}
11164impl<R>
11165 From<
11166 ::aws_smithy_runtime_api::client::result::SdkError<
11167 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
11168 R,
11169 >,
11170 > for Error
11171where
11172 R: Send + Sync + std::fmt::Debug + 'static,
11173{
11174 fn from(
11175 err: ::aws_smithy_runtime_api::client::result::SdkError<
11176 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
11177 R,
11178 >,
11179 ) -> Self {
11180 match err {
11181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11184 source: err.into(),
11185 }),
11186 }
11187 }
11188}
11189impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
11190 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
11191 match err {
11192 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
11193 inner,
11194 ) => Error::Unhandled(inner),
11195 }
11196 }
11197}
11198impl<R>
11199 From<
11200 ::aws_smithy_runtime_api::client::result::SdkError<
11201 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
11202 R,
11203 >,
11204 > for Error
11205where
11206 R: Send + Sync + std::fmt::Debug + 'static,
11207{
11208 fn from(
11209 err: ::aws_smithy_runtime_api::client::result::SdkError<
11210 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
11211 R,
11212 >,
11213 ) -> Self {
11214 match err {
11215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11218 source: err.into(),
11219 }),
11220 }
11221 }
11222}
11223impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
11224 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
11225 match err {
11226 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
11227 Error::Unhandled(inner)
11228 }
11229 }
11230 }
11231}
11232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
11233 for Error
11234where
11235 R: Send + Sync + std::fmt::Debug + 'static,
11236{
11237 fn from(
11238 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
11239 ) -> Self {
11240 match err {
11241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11244 source: err.into(),
11245 }),
11246 }
11247 }
11248}
11249impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
11250 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
11251 match err {
11252 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11253 }
11254 }
11255}
11256impl<R>
11257 From<
11258 ::aws_smithy_runtime_api::client::result::SdkError<
11259 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11260 R,
11261 >,
11262 > for Error
11263where
11264 R: Send + Sync + std::fmt::Debug + 'static,
11265{
11266 fn from(
11267 err: ::aws_smithy_runtime_api::client::result::SdkError<
11268 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11269 R,
11270 >,
11271 ) -> Self {
11272 match err {
11273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11276 source: err.into(),
11277 }),
11278 }
11279 }
11280}
11281impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
11282 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
11283 match err {
11284 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
11285 Error::Unhandled(inner)
11286 }
11287 }
11288 }
11289}
11290impl<R>
11291 From<
11292 ::aws_smithy_runtime_api::client::result::SdkError<
11293 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11294 R,
11295 >,
11296 > for Error
11297where
11298 R: Send + Sync + std::fmt::Debug + 'static,
11299{
11300 fn from(
11301 err: ::aws_smithy_runtime_api::client::result::SdkError<
11302 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11303 R,
11304 >,
11305 ) -> Self {
11306 match err {
11307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11310 source: err.into(),
11311 }),
11312 }
11313 }
11314}
11315impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
11316 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
11317 match err {
11318 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
11319 Error::Unhandled(inner)
11320 }
11321 }
11322 }
11323}
11324impl<R>
11325 From<
11326 ::aws_smithy_runtime_api::client::result::SdkError<
11327 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11328 R,
11329 >,
11330 > for Error
11331where
11332 R: Send + Sync + std::fmt::Debug + 'static,
11333{
11334 fn from(
11335 err: ::aws_smithy_runtime_api::client::result::SdkError<
11336 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11337 R,
11338 >,
11339 ) -> Self {
11340 match err {
11341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11344 source: err.into(),
11345 }),
11346 }
11347 }
11348}
11349impl From<crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
11350 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
11351 match err {
11352 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11353 }
11354 }
11355}
11356impl<R>
11357 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
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_groups::DescribeVerifiedAccessGroupsError,
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_groups::DescribeVerifiedAccessGroupsError> for Error {
11378 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
11379 match err {
11380 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
11381 }
11382 }
11383}
11384impl<R>
11385 From<
11386 ::aws_smithy_runtime_api::client::result::SdkError<
11387 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11388 R,
11389 >,
11390 > for Error
11391where
11392 R: Send + Sync + std::fmt::Debug + 'static,
11393{
11394 fn from(
11395 err: ::aws_smithy_runtime_api::client::result::SdkError<
11396 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11397 R,
11398 >,
11399 ) -> Self {
11400 match err {
11401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11404 source: err.into(),
11405 }),
11406 }
11407 }
11408}
11409impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
11410 for Error
11411{
11412 fn from(
11413 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11414 ) -> Self {
11415 match err {
11416 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
11417 }
11418 }
11419}
11420impl<R>
11421 From<
11422 ::aws_smithy_runtime_api::client::result::SdkError<
11423 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11424 R,
11425 >,
11426 > for Error
11427where
11428 R: Send + Sync + std::fmt::Debug + 'static,
11429{
11430 fn from(
11431 err: ::aws_smithy_runtime_api::client::result::SdkError<
11432 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11433 R,
11434 >,
11435 ) -> Self {
11436 match err {
11437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11440 source: err.into(),
11441 }),
11442 }
11443 }
11444}
11445impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
11446 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
11447 match err {
11448 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
11449 }
11450 }
11451}
11452impl<R>
11453 From<
11454 ::aws_smithy_runtime_api::client::result::SdkError<
11455 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11456 R,
11457 >,
11458 > for Error
11459where
11460 R: Send + Sync + std::fmt::Debug + 'static,
11461{
11462 fn from(
11463 err: ::aws_smithy_runtime_api::client::result::SdkError<
11464 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11465 R,
11466 >,
11467 ) -> Self {
11468 match err {
11469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11472 source: err.into(),
11473 }),
11474 }
11475 }
11476}
11477impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
11478 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
11479 match err {
11480 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
11481 Error::Unhandled(inner)
11482 }
11483 }
11484 }
11485}
11486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
11487 for Error
11488where
11489 R: Send + Sync + std::fmt::Debug + 'static,
11490{
11491 fn from(
11492 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
11493 ) -> Self {
11494 match err {
11495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11498 source: err.into(),
11499 }),
11500 }
11501 }
11502}
11503impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
11504 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
11505 match err {
11506 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11507 }
11508 }
11509}
11510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
11511where
11512 R: Send + Sync + std::fmt::Debug + 'static,
11513{
11514 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
11515 match err {
11516 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11517 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11518 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11519 source: err.into(),
11520 }),
11521 }
11522 }
11523}
11524impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
11525 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
11526 match err {
11527 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
11528 }
11529 }
11530}
11531impl<R>
11532 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
11533 for Error
11534where
11535 R: Send + Sync + std::fmt::Debug + 'static,
11536{
11537 fn from(
11538 err: ::aws_smithy_runtime_api::client::result::SdkError<
11539 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
11540 R,
11541 >,
11542 ) -> 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_modifications::DescribeVolumesModificationsError> for Error {
11553 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
11554 match err {
11555 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
11556 }
11557 }
11558}
11559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
11560where
11561 R: Send + Sync + std::fmt::Debug + 'static,
11562{
11563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
11564 match err {
11565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11568 source: err.into(),
11569 }),
11570 }
11571 }
11572}
11573impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
11574 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
11575 match err {
11576 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
11577 }
11578 }
11579}
11580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
11581where
11582 R: Send + Sync + std::fmt::Debug + 'static,
11583{
11584 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
11585 match err {
11586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11589 source: err.into(),
11590 }),
11591 }
11592 }
11593}
11594impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
11595 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
11596 match err {
11597 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11598 }
11599 }
11600}
11601impl<R>
11602 From<
11603 ::aws_smithy_runtime_api::client::result::SdkError<
11604 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11605 R,
11606 >,
11607 > for Error
11608where
11609 R: Send + Sync + std::fmt::Debug + 'static,
11610{
11611 fn from(
11612 err: ::aws_smithy_runtime_api::client::result::SdkError<
11613 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11614 R,
11615 >,
11616 ) -> Self {
11617 match err {
11618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11621 source: err.into(),
11622 }),
11623 }
11624 }
11625}
11626impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
11627 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
11628 match err {
11629 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
11630 Error::Unhandled(inner)
11631 }
11632 }
11633 }
11634}
11635impl<R>
11636 From<
11637 ::aws_smithy_runtime_api::client::result::SdkError<
11638 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11639 R,
11640 >,
11641 > for Error
11642where
11643 R: Send + Sync + std::fmt::Debug + 'static,
11644{
11645 fn from(
11646 err: ::aws_smithy_runtime_api::client::result::SdkError<
11647 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11648 R,
11649 >,
11650 ) -> Self {
11651 match err {
11652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11655 source: err.into(),
11656 }),
11657 }
11658 }
11659}
11660impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
11661 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
11662 match err {
11663 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
11664 Error::Unhandled(inner)
11665 }
11666 }
11667 }
11668}
11669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
11670 for Error
11671where
11672 R: Send + Sync + std::fmt::Debug + 'static,
11673{
11674 fn from(
11675 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
11676 ) -> Self {
11677 match err {
11678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11681 source: err.into(),
11682 }),
11683 }
11684 }
11685}
11686impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
11687 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
11688 match err {
11689 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11690 }
11691 }
11692}
11693impl<R>
11694 From<
11695 ::aws_smithy_runtime_api::client::result::SdkError<
11696 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11697 R,
11698 >,
11699 > for Error
11700where
11701 R: Send + Sync + std::fmt::Debug + 'static,
11702{
11703 fn from(
11704 err: ::aws_smithy_runtime_api::client::result::SdkError<
11705 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11706 R,
11707 >,
11708 ) -> Self {
11709 match err {
11710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11713 source: err.into(),
11714 }),
11715 }
11716 }
11717}
11718impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
11719 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
11720 match err {
11721 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
11722 Error::Unhandled(inner)
11723 }
11724 }
11725 }
11726}
11727impl<R>
11728 From<
11729 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError, R>,
11730 > for Error
11731where
11732 R: Send + Sync + std::fmt::Debug + 'static,
11733{
11734 fn from(
11735 err: ::aws_smithy_runtime_api::client::result::SdkError<
11736 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError,
11737 R,
11738 >,
11739 ) -> Self {
11740 match err {
11741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11744 source: err.into(),
11745 }),
11746 }
11747 }
11748}
11749impl From<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError> for Error {
11750 fn from(err: crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError) -> Self {
11751 match err {
11752 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError::Unhandled(inner) => Error::Unhandled(inner),
11753 }
11754 }
11755}
11756impl<R>
11757 From<
11758 ::aws_smithy_runtime_api::client::result::SdkError<
11759 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11760 R,
11761 >,
11762 > for Error
11763where
11764 R: Send + Sync + std::fmt::Debug + 'static,
11765{
11766 fn from(
11767 err: ::aws_smithy_runtime_api::client::result::SdkError<
11768 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11769 R,
11770 >,
11771 ) -> Self {
11772 match err {
11773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11776 source: err.into(),
11777 }),
11778 }
11779 }
11780}
11781impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
11782 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
11783 match err {
11784 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
11785 }
11786 }
11787}
11788impl<R>
11789 From<
11790 ::aws_smithy_runtime_api::client::result::SdkError<
11791 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11792 R,
11793 >,
11794 > for Error
11795where
11796 R: Send + Sync + std::fmt::Debug + 'static,
11797{
11798 fn from(
11799 err: ::aws_smithy_runtime_api::client::result::SdkError<
11800 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11801 R,
11802 >,
11803 ) -> Self {
11804 match err {
11805 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11806 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11807 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11808 source: err.into(),
11809 }),
11810 }
11811 }
11812}
11813impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
11814 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
11815 match err {
11816 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
11817 Error::Unhandled(inner)
11818 }
11819 }
11820 }
11821}
11822impl<R>
11823 From<
11824 ::aws_smithy_runtime_api::client::result::SdkError<
11825 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11826 R,
11827 >,
11828 > for Error
11829where
11830 R: Send + Sync + std::fmt::Debug + 'static,
11831{
11832 fn from(
11833 err: ::aws_smithy_runtime_api::client::result::SdkError<
11834 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11835 R,
11836 >,
11837 ) -> Self {
11838 match err {
11839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11842 source: err.into(),
11843 }),
11844 }
11845 }
11846}
11847impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
11848 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
11849 match err {
11850 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11851 }
11852 }
11853}
11854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
11855where
11856 R: Send + Sync + std::fmt::Debug + 'static,
11857{
11858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
11859 match err {
11860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11863 source: err.into(),
11864 }),
11865 }
11866 }
11867}
11868impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
11869 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
11870 match err {
11871 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11872 }
11873 }
11874}
11875impl<R>
11876 From<
11877 ::aws_smithy_runtime_api::client::result::SdkError<
11878 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11879 R,
11880 >,
11881 > for Error
11882where
11883 R: Send + Sync + std::fmt::Debug + 'static,
11884{
11885 fn from(
11886 err: ::aws_smithy_runtime_api::client::result::SdkError<
11887 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11888 R,
11889 >,
11890 ) -> Self {
11891 match err {
11892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11895 source: err.into(),
11896 }),
11897 }
11898 }
11899}
11900impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
11901 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
11902 match err {
11903 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
11904 Error::Unhandled(inner)
11905 }
11906 }
11907 }
11908}
11909impl<R>
11910 From<
11911 ::aws_smithy_runtime_api::client::result::SdkError<
11912 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11913 R,
11914 >,
11915 > for Error
11916where
11917 R: Send + Sync + std::fmt::Debug + 'static,
11918{
11919 fn from(
11920 err: ::aws_smithy_runtime_api::client::result::SdkError<
11921 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11922 R,
11923 >,
11924 ) -> Self {
11925 match err {
11926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11929 source: err.into(),
11930 }),
11931 }
11932 }
11933}
11934impl From<crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11935 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11936 match err {
11937 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11938 Error::Unhandled(inner)
11939 }
11940 }
11941 }
11942}
11943impl<R>
11944 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11945 for Error
11946where
11947 R: Send + Sync + std::fmt::Debug + 'static,
11948{
11949 fn from(
11950 err: ::aws_smithy_runtime_api::client::result::SdkError<
11951 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11952 R,
11953 >,
11954 ) -> Self {
11955 match err {
11956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11959 source: err.into(),
11960 }),
11961 }
11962 }
11963}
11964impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11965 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11966 match err {
11967 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11968 }
11969 }
11970}
11971impl<R>
11972 From<
11973 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
11974 > for Error
11975where
11976 R: Send + Sync + std::fmt::Debug + 'static,
11977{
11978 fn from(
11979 err: ::aws_smithy_runtime_api::client::result::SdkError<
11980 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
11981 R,
11982 >,
11983 ) -> Self {
11984 match err {
11985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11988 source: err.into(),
11989 }),
11990 }
11991 }
11992}
11993impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
11994 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
11995 match err {
11996 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11997 }
11998 }
11999}
12000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
12001where
12002 R: Send + Sync + std::fmt::Debug + 'static,
12003{
12004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
12005 match err {
12006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12009 source: err.into(),
12010 }),
12011 }
12012 }
12013}
12014impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
12015 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
12016 match err {
12017 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
12018 }
12019 }
12020}
12021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>>
12022 for Error
12023where
12024 R: Send + Sync + std::fmt::Debug + 'static,
12025{
12026 fn from(
12027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>,
12028 ) -> Self {
12029 match err {
12030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12033 source: err.into(),
12034 }),
12035 }
12036 }
12037}
12038impl From<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError> for Error {
12039 fn from(err: crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError) -> Self {
12040 match err {
12041 crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError::Unhandled(inner) => Error::Unhandled(inner),
12042 }
12043 }
12044}
12045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
12046where
12047 R: Send + Sync + std::fmt::Debug + 'static,
12048{
12049 fn from(
12050 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
12051 ) -> Self {
12052 match err {
12053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12056 source: err.into(),
12057 }),
12058 }
12059 }
12060}
12061impl From<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
12062 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
12063 match err {
12064 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
12065 }
12066 }
12067}
12068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>> for Error
12069where
12070 R: Send + Sync + std::fmt::Debug + 'static,
12071{
12072 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>) -> Self {
12073 match err {
12074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12077 source: err.into(),
12078 }),
12079 }
12080 }
12081}
12082impl From<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
12083 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
12084 match err {
12085 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
12086 }
12087 }
12088}
12089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
12090where
12091 R: Send + Sync + std::fmt::Debug + 'static,
12092{
12093 fn from(
12094 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
12095 ) -> Self {
12096 match err {
12097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12100 source: err.into(),
12101 }),
12102 }
12103 }
12104}
12105impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
12106 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
12107 match err {
12108 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
12109 }
12110 }
12111}
12112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
12113where
12114 R: Send + Sync + std::fmt::Debug + 'static,
12115{
12116 fn from(
12117 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
12118 ) -> Self {
12119 match err {
12120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12123 source: err.into(),
12124 }),
12125 }
12126 }
12127}
12128impl From<crate::operation::detach_internet_gateway::DetachInternetGatewayError> for Error {
12129 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
12130 match err {
12131 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
12132 }
12133 }
12134}
12135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
12136where
12137 R: Send + Sync + std::fmt::Debug + 'static,
12138{
12139 fn from(
12140 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
12141 ) -> Self {
12142 match err {
12143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12146 source: err.into(),
12147 }),
12148 }
12149 }
12150}
12151impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
12152 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
12153 match err {
12154 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
12155 }
12156 }
12157}
12158impl<R>
12159 From<
12160 ::aws_smithy_runtime_api::client::result::SdkError<
12161 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
12162 R,
12163 >,
12164 > for Error
12165where
12166 R: Send + Sync + std::fmt::Debug + 'static,
12167{
12168 fn from(
12169 err: ::aws_smithy_runtime_api::client::result::SdkError<
12170 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
12171 R,
12172 >,
12173 ) -> Self {
12174 match err {
12175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12178 source: err.into(),
12179 }),
12180 }
12181 }
12182}
12183impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
12184 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
12185 match err {
12186 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
12187 Error::Unhandled(inner)
12188 }
12189 }
12190 }
12191}
12192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
12193where
12194 R: Send + Sync + std::fmt::Debug + 'static,
12195{
12196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
12197 match err {
12198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12201 source: err.into(),
12202 }),
12203 }
12204 }
12205}
12206impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
12207 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
12208 match err {
12209 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
12210 }
12211 }
12212}
12213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
12214where
12215 R: Send + Sync + std::fmt::Debug + 'static,
12216{
12217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
12218 match err {
12219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12222 source: err.into(),
12223 }),
12224 }
12225 }
12226}
12227impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
12228 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
12229 match err {
12230 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
12231 }
12232 }
12233}
12234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
12235where
12236 R: Send + Sync + std::fmt::Debug + 'static,
12237{
12238 fn from(
12239 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
12240 ) -> Self {
12241 match err {
12242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12245 source: err.into(),
12246 }),
12247 }
12248 }
12249}
12250impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
12251 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
12252 match err {
12253 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12254 }
12255 }
12256}
12257impl<R>
12258 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
12259 for Error
12260where
12261 R: Send + Sync + std::fmt::Debug + 'static,
12262{
12263 fn from(
12264 err: ::aws_smithy_runtime_api::client::result::SdkError<
12265 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
12266 R,
12267 >,
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_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
12279 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
12280 match err {
12281 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12282 }
12283 }
12284}
12285impl<R>
12286 From<
12287 ::aws_smithy_runtime_api::client::result::SdkError<
12288 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12289 R,
12290 >,
12291 > for Error
12292where
12293 R: Send + Sync + std::fmt::Debug + 'static,
12294{
12295 fn from(
12296 err: ::aws_smithy_runtime_api::client::result::SdkError<
12297 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12298 R,
12299 >,
12300 ) -> Self {
12301 match err {
12302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12305 source: err.into(),
12306 }),
12307 }
12308 }
12309}
12310impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12311 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12312 match err {
12313 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12314 inner,
12315 ) => Error::Unhandled(inner),
12316 }
12317 }
12318}
12319impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
12320where
12321 R: Send + Sync + std::fmt::Debug + 'static,
12322{
12323 fn from(
12324 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
12325 ) -> Self {
12326 match err {
12327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12330 source: err.into(),
12331 }),
12332 }
12333 }
12334}
12335impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
12336 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
12337 match err {
12338 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12339 }
12340 }
12341}
12342impl<R>
12343 From<
12344 ::aws_smithy_runtime_api::client::result::SdkError<
12345 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12346 R,
12347 >,
12348 > for Error
12349where
12350 R: Send + Sync + std::fmt::Debug + 'static,
12351{
12352 fn from(
12353 err: ::aws_smithy_runtime_api::client::result::SdkError<
12354 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12355 R,
12356 >,
12357 ) -> Self {
12358 match err {
12359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12362 source: err.into(),
12363 }),
12364 }
12365 }
12366}
12367impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
12368 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
12369 match err {
12370 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12371 }
12372 }
12373}
12374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
12375where
12376 R: Send + Sync + std::fmt::Debug + 'static,
12377{
12378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
12379 match err {
12380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12383 source: err.into(),
12384 }),
12385 }
12386 }
12387}
12388impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
12389 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
12390 match err {
12391 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12392 }
12393 }
12394}
12395impl<R>
12396 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
12397 for Error
12398where
12399 R: Send + Sync + std::fmt::Debug + 'static,
12400{
12401 fn from(
12402 err: ::aws_smithy_runtime_api::client::result::SdkError<
12403 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
12404 R,
12405 >,
12406 ) -> 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_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
12417 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
12418 match err {
12419 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12420 }
12421 }
12422}
12423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
12424where
12425 R: Send + Sync + std::fmt::Debug + 'static,
12426{
12427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> Self {
12428 match err {
12429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12432 source: err.into(),
12433 }),
12434 }
12435 }
12436}
12437impl From<crate::operation::disable_image::DisableImageError> for Error {
12438 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
12439 match err {
12440 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
12441 }
12442 }
12443}
12444impl<R>
12445 From<
12446 ::aws_smithy_runtime_api::client::result::SdkError<
12447 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
12448 R,
12449 >,
12450 > for Error
12451where
12452 R: Send + Sync + std::fmt::Debug + 'static,
12453{
12454 fn from(
12455 err: ::aws_smithy_runtime_api::client::result::SdkError<
12456 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
12457 R,
12458 >,
12459 ) -> Self {
12460 match err {
12461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12464 source: err.into(),
12465 }),
12466 }
12467 }
12468}
12469impl From<crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
12470 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
12471 match err {
12472 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12473 }
12474 }
12475}
12476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
12477 for Error
12478where
12479 R: Send + Sync + std::fmt::Debug + 'static,
12480{
12481 fn from(
12482 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
12483 ) -> Self {
12484 match err {
12485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12488 source: err.into(),
12489 }),
12490 }
12491 }
12492}
12493impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
12494 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
12495 match err {
12496 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
12497 }
12498 }
12499}
12500impl<R>
12501 From<
12502 ::aws_smithy_runtime_api::client::result::SdkError<
12503 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12504 R,
12505 >,
12506 > for Error
12507where
12508 R: Send + Sync + std::fmt::Debug + 'static,
12509{
12510 fn from(
12511 err: ::aws_smithy_runtime_api::client::result::SdkError<
12512 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12513 R,
12514 >,
12515 ) -> Self {
12516 match err {
12517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12520 source: err.into(),
12521 }),
12522 }
12523 }
12524}
12525impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
12526 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
12527 match err {
12528 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
12529 Error::Unhandled(inner)
12530 }
12531 }
12532 }
12533}
12534impl<R>
12535 From<
12536 ::aws_smithy_runtime_api::client::result::SdkError<
12537 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12538 R,
12539 >,
12540 > for Error
12541where
12542 R: Send + Sync + std::fmt::Debug + 'static,
12543{
12544 fn from(
12545 err: ::aws_smithy_runtime_api::client::result::SdkError<
12546 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12547 R,
12548 >,
12549 ) -> Self {
12550 match err {
12551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12554 source: err.into(),
12555 }),
12556 }
12557 }
12558}
12559impl From<crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError> for Error {
12560 fn from(err: crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError) -> Self {
12561 match err {
12562 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
12563 Error::Unhandled(inner)
12564 }
12565 }
12566 }
12567}
12568impl<R>
12569 From<
12570 ::aws_smithy_runtime_api::client::result::SdkError<
12571 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12572 R,
12573 >,
12574 > for Error
12575where
12576 R: Send + Sync + std::fmt::Debug + 'static,
12577{
12578 fn from(
12579 err: ::aws_smithy_runtime_api::client::result::SdkError<
12580 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12581 R,
12582 >,
12583 ) -> Self {
12584 match err {
12585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12588 source: err.into(),
12589 }),
12590 }
12591 }
12592}
12593impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
12594 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
12595 match err {
12596 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12597 Error::Unhandled(inner)
12598 }
12599 }
12600 }
12601}
12602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>> for Error
12603where
12604 R: Send + Sync + std::fmt::Debug + 'static,
12605{
12606 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>) -> Self {
12607 match err {
12608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12611 source: err.into(),
12612 }),
12613 }
12614 }
12615}
12616impl From<crate::operation::disable_ipam_policy::DisableIpamPolicyError> for Error {
12617 fn from(err: crate::operation::disable_ipam_policy::DisableIpamPolicyError) -> Self {
12618 match err {
12619 crate::operation::disable_ipam_policy::DisableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
12620 }
12621 }
12622}
12623impl<R>
12624 From<
12625 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
12626 > for Error
12627where
12628 R: Send + Sync + std::fmt::Debug + 'static,
12629{
12630 fn from(
12631 err: ::aws_smithy_runtime_api::client::result::SdkError<
12632 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
12633 R,
12634 >,
12635 ) -> Self {
12636 match err {
12637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12640 source: err.into(),
12641 }),
12642 }
12643 }
12644}
12645impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
12646 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
12647 match err {
12648 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12649 }
12650 }
12651}
12652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
12653 for Error
12654where
12655 R: Send + Sync + std::fmt::Debug + 'static,
12656{
12657 fn from(
12658 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
12659 ) -> Self {
12660 match err {
12661 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12662 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12663 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12664 source: err.into(),
12665 }),
12666 }
12667 }
12668}
12669impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
12670 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
12671 match err {
12672 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12673 }
12674 }
12675}
12676impl<R>
12677 From<
12678 ::aws_smithy_runtime_api::client::result::SdkError<
12679 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12680 R,
12681 >,
12682 > for Error
12683where
12684 R: Send + Sync + std::fmt::Debug + 'static,
12685{
12686 fn from(
12687 err: ::aws_smithy_runtime_api::client::result::SdkError<
12688 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12689 R,
12690 >,
12691 ) -> Self {
12692 match err {
12693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12696 source: err.into(),
12697 }),
12698 }
12699 }
12700}
12701impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
12702 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
12703 match err {
12704 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
12705 Error::Unhandled(inner)
12706 }
12707 }
12708 }
12709}
12710impl<R>
12711 From<
12712 ::aws_smithy_runtime_api::client::result::SdkError<
12713 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12714 R,
12715 >,
12716 > for Error
12717where
12718 R: Send + Sync + std::fmt::Debug + 'static,
12719{
12720 fn from(
12721 err: ::aws_smithy_runtime_api::client::result::SdkError<
12722 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12723 R,
12724 >,
12725 ) -> Self {
12726 match err {
12727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12730 source: err.into(),
12731 }),
12732 }
12733 }
12734}
12735impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
12736 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
12737 match err {
12738 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
12739 Error::Unhandled(inner)
12740 }
12741 }
12742 }
12743}
12744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
12745 for Error
12746where
12747 R: Send + Sync + std::fmt::Debug + 'static,
12748{
12749 fn from(
12750 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
12751 ) -> Self {
12752 match err {
12753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12756 source: err.into(),
12757 }),
12758 }
12759 }
12760}
12761impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
12762 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
12763 match err {
12764 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12765 }
12766 }
12767}
12768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
12769where
12770 R: Send + Sync + std::fmt::Debug + 'static,
12771{
12772 fn from(
12773 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
12774 ) -> Self {
12775 match err {
12776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12779 source: err.into(),
12780 }),
12781 }
12782 }
12783}
12784impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
12785 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
12786 match err {
12787 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12788 }
12789 }
12790}
12791impl<R>
12792 From<
12793 ::aws_smithy_runtime_api::client::result::SdkError<
12794 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12795 R,
12796 >,
12797 > for Error
12798where
12799 R: Send + Sync + std::fmt::Debug + 'static,
12800{
12801 fn from(
12802 err: ::aws_smithy_runtime_api::client::result::SdkError<
12803 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12804 R,
12805 >,
12806 ) -> Self {
12807 match err {
12808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12811 source: err.into(),
12812 }),
12813 }
12814 }
12815}
12816impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
12817 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
12818 match err {
12819 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12820 }
12821 }
12822}
12823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
12824where
12825 R: Send + Sync + std::fmt::Debug + 'static,
12826{
12827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
12828 match err {
12829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12832 source: err.into(),
12833 }),
12834 }
12835 }
12836}
12837impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
12838 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
12839 match err {
12840 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
12841 }
12842 }
12843}
12844impl<R>
12845 From<
12846 ::aws_smithy_runtime_api::client::result::SdkError<
12847 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12848 R,
12849 >,
12850 > for Error
12851where
12852 R: Send + Sync + std::fmt::Debug + 'static,
12853{
12854 fn from(
12855 err: ::aws_smithy_runtime_api::client::result::SdkError<
12856 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12857 R,
12858 >,
12859 ) -> Self {
12860 match err {
12861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12864 source: err.into(),
12865 }),
12866 }
12867 }
12868}
12869impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
12870 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
12871 match err {
12872 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
12873 Error::Unhandled(inner)
12874 }
12875 }
12876 }
12877}
12878impl<R>
12879 From<
12880 ::aws_smithy_runtime_api::client::result::SdkError<
12881 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12882 R,
12883 >,
12884 > for Error
12885where
12886 R: Send + Sync + std::fmt::Debug + 'static,
12887{
12888 fn from(
12889 err: ::aws_smithy_runtime_api::client::result::SdkError<
12890 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12891 R,
12892 >,
12893 ) -> Self {
12894 match err {
12895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12898 source: err.into(),
12899 }),
12900 }
12901 }
12902}
12903impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
12904 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
12905 match err {
12906 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
12907 Error::Unhandled(inner)
12908 }
12909 }
12910 }
12911}
12912impl<R>
12913 From<
12914 ::aws_smithy_runtime_api::client::result::SdkError<
12915 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12916 R,
12917 >,
12918 > for Error
12919where
12920 R: Send + Sync + std::fmt::Debug + 'static,
12921{
12922 fn from(
12923 err: ::aws_smithy_runtime_api::client::result::SdkError<
12924 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12925 R,
12926 >,
12927 ) -> Self {
12928 match err {
12929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12932 source: err.into(),
12933 }),
12934 }
12935 }
12936}
12937impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
12938 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
12939 match err {
12940 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
12941 Error::Unhandled(inner)
12942 }
12943 }
12944 }
12945}
12946impl<R>
12947 From<
12948 ::aws_smithy_runtime_api::client::result::SdkError<
12949 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12950 R,
12951 >,
12952 > for Error
12953where
12954 R: Send + Sync + std::fmt::Debug + 'static,
12955{
12956 fn from(
12957 err: ::aws_smithy_runtime_api::client::result::SdkError<
12958 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12959 R,
12960 >,
12961 ) -> Self {
12962 match err {
12963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12966 source: err.into(),
12967 }),
12968 }
12969 }
12970}
12971impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
12972 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
12973 match err {
12974 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
12975 }
12976 }
12977}
12978impl<R>
12979 From<
12980 ::aws_smithy_runtime_api::client::result::SdkError<
12981 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12982 R,
12983 >,
12984 > for Error
12985where
12986 R: Send + Sync + std::fmt::Debug + 'static,
12987{
12988 fn from(
12989 err: ::aws_smithy_runtime_api::client::result::SdkError<
12990 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12991 R,
12992 >,
12993 ) -> Self {
12994 match err {
12995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12998 source: err.into(),
12999 }),
13000 }
13001 }
13002}
13003impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
13004 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
13005 match err {
13006 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
13007 }
13008 }
13009}
13010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
13011where
13012 R: Send + Sync + std::fmt::Debug + 'static,
13013{
13014 fn from(
13015 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
13016 ) -> Self {
13017 match err {
13018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13021 source: err.into(),
13022 }),
13023 }
13024 }
13025}
13026impl From<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
13027 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
13028 match err {
13029 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
13030 }
13031 }
13032}
13033impl<R>
13034 From<
13035 ::aws_smithy_runtime_api::client::result::SdkError<
13036 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
13037 R,
13038 >,
13039 > for Error
13040where
13041 R: Send + Sync + std::fmt::Debug + 'static,
13042{
13043 fn from(
13044 err: ::aws_smithy_runtime_api::client::result::SdkError<
13045 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
13046 R,
13047 >,
13048 ) -> Self {
13049 match err {
13050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13053 source: err.into(),
13054 }),
13055 }
13056 }
13057}
13058impl From<crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
13059 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
13060 match err {
13061 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
13062 Error::Unhandled(inner)
13063 }
13064 }
13065 }
13066}
13067impl<R>
13068 From<
13069 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
13070 > for Error
13071where
13072 R: Send + Sync + std::fmt::Debug + 'static,
13073{
13074 fn from(
13075 err: ::aws_smithy_runtime_api::client::result::SdkError<
13076 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
13077 R,
13078 >,
13079 ) -> Self {
13080 match err {
13081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13084 source: err.into(),
13085 }),
13086 }
13087 }
13088}
13089impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
13090 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
13091 match err {
13092 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
13093 }
13094 }
13095}
13096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
13097 for Error
13098where
13099 R: Send + Sync + std::fmt::Debug + 'static,
13100{
13101 fn from(
13102 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
13103 ) -> Self {
13104 match err {
13105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13108 source: err.into(),
13109 }),
13110 }
13111 }
13112}
13113impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
13114 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
13115 match err {
13116 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
13117 }
13118 }
13119}
13120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
13121where
13122 R: Send + Sync + std::fmt::Debug + 'static,
13123{
13124 fn from(
13125 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
13126 ) -> Self {
13127 match err {
13128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13131 source: err.into(),
13132 }),
13133 }
13134 }
13135}
13136impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
13137 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
13138 match err {
13139 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
13140 }
13141 }
13142}
13143impl<R>
13144 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
13145 for Error
13146where
13147 R: Send + Sync + std::fmt::Debug + 'static,
13148{
13149 fn from(
13150 err: ::aws_smithy_runtime_api::client::result::SdkError<
13151 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
13152 R,
13153 >,
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_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
13165 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
13166 match err {
13167 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
13168 }
13169 }
13170}
13171impl<R>
13172 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, 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_subnet_cidr_block::DisassociateSubnetCidrBlockError,
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_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
13193 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
13194 match err {
13195 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
13196 }
13197 }
13198}
13199impl<R>
13200 From<
13201 ::aws_smithy_runtime_api::client::result::SdkError<
13202 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
13203 R,
13204 >,
13205 > for Error
13206where
13207 R: Send + Sync + std::fmt::Debug + 'static,
13208{
13209 fn from(
13210 err: ::aws_smithy_runtime_api::client::result::SdkError<
13211 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
13212 R,
13213 >,
13214 ) -> Self {
13215 match err {
13216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13219 source: err.into(),
13220 }),
13221 }
13222 }
13223}
13224impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
13225 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
13226 match err {
13227 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
13228 Error::Unhandled(inner)
13229 }
13230 }
13231 }
13232}
13233impl<R>
13234 From<
13235 ::aws_smithy_runtime_api::client::result::SdkError<
13236 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13237 R,
13238 >,
13239 > for Error
13240where
13241 R: Send + Sync + std::fmt::Debug + 'static,
13242{
13243 fn from(
13244 err: ::aws_smithy_runtime_api::client::result::SdkError<
13245 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13246 R,
13247 >,
13248 ) -> Self {
13249 match err {
13250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13253 source: err.into(),
13254 }),
13255 }
13256 }
13257}
13258impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
13259 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
13260 match err {
13261 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
13262 Error::Unhandled(inner)
13263 }
13264 }
13265 }
13266}
13267impl<R>
13268 From<
13269 ::aws_smithy_runtime_api::client::result::SdkError<
13270 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13271 R,
13272 >,
13273 > for Error
13274where
13275 R: Send + Sync + std::fmt::Debug + 'static,
13276{
13277 fn from(
13278 err: ::aws_smithy_runtime_api::client::result::SdkError<
13279 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13280 R,
13281 >,
13282 ) -> Self {
13283 match err {
13284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13287 source: err.into(),
13288 }),
13289 }
13290 }
13291}
13292impl From<crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
13293 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
13294 match err {
13295 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
13296 Error::Unhandled(inner)
13297 }
13298 }
13299 }
13300}
13301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
13302 for Error
13303where
13304 R: Send + Sync + std::fmt::Debug + 'static,
13305{
13306 fn from(
13307 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
13308 ) -> Self {
13309 match err {
13310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13313 source: err.into(),
13314 }),
13315 }
13316 }
13317}
13318impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
13319 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
13320 match err {
13321 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
13322 }
13323 }
13324}
13325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
13326 for Error
13327where
13328 R: Send + Sync + std::fmt::Debug + 'static,
13329{
13330 fn from(
13331 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
13332 ) -> Self {
13333 match err {
13334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13337 source: err.into(),
13338 }),
13339 }
13340 }
13341}
13342impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
13343 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
13344 match err {
13345 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
13346 }
13347 }
13348}
13349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
13350where
13351 R: Send + Sync + std::fmt::Debug + 'static,
13352{
13353 fn from(
13354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
13355 ) -> Self {
13356 match err {
13357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13360 source: err.into(),
13361 }),
13362 }
13363 }
13364}
13365impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
13366 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
13367 match err {
13368 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
13369 }
13370 }
13371}
13372impl<R>
13373 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
13374 for Error
13375where
13376 R: Send + Sync + std::fmt::Debug + 'static,
13377{
13378 fn from(
13379 err: ::aws_smithy_runtime_api::client::result::SdkError<
13380 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
13381 R,
13382 >,
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_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
13394 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
13395 match err {
13396 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13397 }
13398 }
13399}
13400impl<R>
13401 From<
13402 ::aws_smithy_runtime_api::client::result::SdkError<
13403 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13404 R,
13405 >,
13406 > for Error
13407where
13408 R: Send + Sync + std::fmt::Debug + 'static,
13409{
13410 fn from(
13411 err: ::aws_smithy_runtime_api::client::result::SdkError<
13412 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13413 R,
13414 >,
13415 ) -> Self {
13416 match err {
13417 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13418 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13419 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13420 source: err.into(),
13421 }),
13422 }
13423 }
13424}
13425impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
13426 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
13427 match err {
13428 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
13429 inner,
13430 ) => Error::Unhandled(inner),
13431 }
13432 }
13433}
13434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
13435where
13436 R: Send + Sync + std::fmt::Debug + 'static,
13437{
13438 fn from(
13439 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
13440 ) -> Self {
13441 match err {
13442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13445 source: err.into(),
13446 }),
13447 }
13448 }
13449}
13450impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
13451 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
13452 match err {
13453 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
13454 }
13455 }
13456}
13457impl<R>
13458 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
13459 for Error
13460where
13461 R: Send + Sync + std::fmt::Debug + 'static,
13462{
13463 fn from(
13464 err: ::aws_smithy_runtime_api::client::result::SdkError<
13465 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
13466 R,
13467 >,
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_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
13479 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
13480 match err {
13481 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13482 }
13483 }
13484}
13485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
13486where
13487 R: Send + Sync + std::fmt::Debug + 'static,
13488{
13489 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
13490 match err {
13491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13494 source: err.into(),
13495 }),
13496 }
13497 }
13498}
13499impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
13500 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
13501 match err {
13502 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
13503 }
13504 }
13505}
13506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
13507 for Error
13508where
13509 R: Send + Sync + std::fmt::Debug + 'static,
13510{
13511 fn from(
13512 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
13513 ) -> Self {
13514 match err {
13515 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13516 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13517 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13518 source: err.into(),
13519 }),
13520 }
13521 }
13522}
13523impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
13524 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
13525 match err {
13526 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
13527 }
13528 }
13529}
13530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
13531where
13532 R: Send + Sync + std::fmt::Debug + 'static,
13533{
13534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
13535 match err {
13536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13539 source: err.into(),
13540 }),
13541 }
13542 }
13543}
13544impl From<crate::operation::enable_image::EnableImageError> for Error {
13545 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
13546 match err {
13547 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
13548 }
13549 }
13550}
13551impl<R>
13552 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
13553 for Error
13554where
13555 R: Send + Sync + std::fmt::Debug + 'static,
13556{
13557 fn from(
13558 err: ::aws_smithy_runtime_api::client::result::SdkError<
13559 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
13560 R,
13561 >,
13562 ) -> 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_block_public_access::EnableImageBlockPublicAccessError> for Error {
13573 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
13574 match err {
13575 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13576 }
13577 }
13578}
13579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
13580where
13581 R: Send + Sync + std::fmt::Debug + 'static,
13582{
13583 fn from(
13584 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
13585 ) -> Self {
13586 match err {
13587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13590 source: err.into(),
13591 }),
13592 }
13593 }
13594}
13595impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
13596 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
13597 match err {
13598 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
13599 }
13600 }
13601}
13602impl<R>
13603 From<
13604 ::aws_smithy_runtime_api::client::result::SdkError<
13605 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13606 R,
13607 >,
13608 > for Error
13609where
13610 R: Send + Sync + std::fmt::Debug + 'static,
13611{
13612 fn from(
13613 err: ::aws_smithy_runtime_api::client::result::SdkError<
13614 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13615 R,
13616 >,
13617 ) -> Self {
13618 match err {
13619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13622 source: err.into(),
13623 }),
13624 }
13625 }
13626}
13627impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
13628 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
13629 match err {
13630 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
13631 Error::Unhandled(inner)
13632 }
13633 }
13634 }
13635}
13636impl<R>
13637 From<
13638 ::aws_smithy_runtime_api::client::result::SdkError<
13639 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13640 R,
13641 >,
13642 > for Error
13643where
13644 R: Send + Sync + std::fmt::Debug + 'static,
13645{
13646 fn from(
13647 err: ::aws_smithy_runtime_api::client::result::SdkError<
13648 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13649 R,
13650 >,
13651 ) -> Self {
13652 match err {
13653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13656 source: err.into(),
13657 }),
13658 }
13659 }
13660}
13661impl From<crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError> for Error {
13662 fn from(err: crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError) -> Self {
13663 match err {
13664 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
13665 Error::Unhandled(inner)
13666 }
13667 }
13668 }
13669}
13670impl<R>
13671 From<
13672 ::aws_smithy_runtime_api::client::result::SdkError<
13673 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13674 R,
13675 >,
13676 > for Error
13677where
13678 R: Send + Sync + std::fmt::Debug + 'static,
13679{
13680 fn from(
13681 err: ::aws_smithy_runtime_api::client::result::SdkError<
13682 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13683 R,
13684 >,
13685 ) -> Self {
13686 match err {
13687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13690 source: err.into(),
13691 }),
13692 }
13693 }
13694}
13695impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
13696 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
13697 match err {
13698 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
13699 Error::Unhandled(inner)
13700 }
13701 }
13702 }
13703}
13704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>> for Error
13705where
13706 R: Send + Sync + std::fmt::Debug + 'static,
13707{
13708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>) -> Self {
13709 match err {
13710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13713 source: err.into(),
13714 }),
13715 }
13716 }
13717}
13718impl From<crate::operation::enable_ipam_policy::EnableIpamPolicyError> for Error {
13719 fn from(err: crate::operation::enable_ipam_policy::EnableIpamPolicyError) -> Self {
13720 match err {
13721 crate::operation::enable_ipam_policy::EnableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
13722 }
13723 }
13724}
13725impl<R>
13726 From<
13727 ::aws_smithy_runtime_api::client::result::SdkError<
13728 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13729 R,
13730 >,
13731 > for Error
13732where
13733 R: Send + Sync + std::fmt::Debug + 'static,
13734{
13735 fn from(
13736 err: ::aws_smithy_runtime_api::client::result::SdkError<
13737 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13738 R,
13739 >,
13740 ) -> Self {
13741 match err {
13742 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13743 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13744 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13745 source: err.into(),
13746 }),
13747 }
13748 }
13749}
13750impl From<crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
13751 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
13752 match err {
13753 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
13754 inner,
13755 ) => Error::Unhandled(inner),
13756 }
13757 }
13758}
13759impl<R>
13760 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
13761 for Error
13762where
13763 R: Send + Sync + std::fmt::Debug + 'static,
13764{
13765 fn from(
13766 err: ::aws_smithy_runtime_api::client::result::SdkError<
13767 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
13768 R,
13769 >,
13770 ) -> Self {
13771 match err {
13772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13775 source: err.into(),
13776 }),
13777 }
13778 }
13779}
13780impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
13781 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
13782 match err {
13783 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
13784 }
13785 }
13786}
13787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
13788 for Error
13789where
13790 R: Send + Sync + std::fmt::Debug + 'static,
13791{
13792 fn from(
13793 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
13794 ) -> Self {
13795 match err {
13796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13799 source: err.into(),
13800 }),
13801 }
13802 }
13803}
13804impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
13805 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
13806 match err {
13807 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
13808 }
13809 }
13810}
13811impl<R>
13812 From<
13813 ::aws_smithy_runtime_api::client::result::SdkError<
13814 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13815 R,
13816 >,
13817 > for Error
13818where
13819 R: Send + Sync + std::fmt::Debug + 'static,
13820{
13821 fn from(
13822 err: ::aws_smithy_runtime_api::client::result::SdkError<
13823 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13824 R,
13825 >,
13826 ) -> Self {
13827 match err {
13828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13831 source: err.into(),
13832 }),
13833 }
13834 }
13835}
13836impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
13837 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
13838 match err {
13839 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13840 }
13841 }
13842}
13843impl<R>
13844 From<
13845 ::aws_smithy_runtime_api::client::result::SdkError<
13846 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13847 R,
13848 >,
13849 > for Error
13850where
13851 R: Send + Sync + std::fmt::Debug + 'static,
13852{
13853 fn from(
13854 err: ::aws_smithy_runtime_api::client::result::SdkError<
13855 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13856 R,
13857 >,
13858 ) -> Self {
13859 match err {
13860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13863 source: err.into(),
13864 }),
13865 }
13866 }
13867}
13868impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
13869 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
13870 match err {
13871 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
13872 Error::Unhandled(inner)
13873 }
13874 }
13875 }
13876}
13877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
13878 for Error
13879where
13880 R: Send + Sync + std::fmt::Debug + 'static,
13881{
13882 fn from(
13883 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
13884 ) -> Self {
13885 match err {
13886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13889 source: err.into(),
13890 }),
13891 }
13892 }
13893}
13894impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
13895 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
13896 match err {
13897 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
13898 }
13899 }
13900}
13901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
13902where
13903 R: Send + Sync + std::fmt::Debug + 'static,
13904{
13905 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
13906 match err {
13907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13910 source: err.into(),
13911 }),
13912 }
13913 }
13914}
13915impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
13916 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
13917 match err {
13918 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
13919 }
13920 }
13921}
13922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
13923where
13924 R: Send + Sync + std::fmt::Debug + 'static,
13925{
13926 fn from(
13927 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
13928 ) -> Self {
13929 match err {
13930 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13931 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13932 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13933 source: err.into(),
13934 }),
13935 }
13936 }
13937}
13938impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
13939 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
13940 match err {
13941 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
13942 }
13943 }
13944}
13945impl<R>
13946 From<
13947 ::aws_smithy_runtime_api::client::result::SdkError<
13948 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13949 R,
13950 >,
13951 > for Error
13952where
13953 R: Send + Sync + std::fmt::Debug + 'static,
13954{
13955 fn from(
13956 err: ::aws_smithy_runtime_api::client::result::SdkError<
13957 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13958 R,
13959 >,
13960 ) -> Self {
13961 match err {
13962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13965 source: err.into(),
13966 }),
13967 }
13968 }
13969}
13970impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
13971 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
13972 match err {
13973 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
13974 }
13975 }
13976}
13977impl<R>
13978 From<
13979 ::aws_smithy_runtime_api::client::result::SdkError<
13980 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13981 R,
13982 >,
13983 > for Error
13984where
13985 R: Send + Sync + std::fmt::Debug + 'static,
13986{
13987 fn from(
13988 err: ::aws_smithy_runtime_api::client::result::SdkError<
13989 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13990 R,
13991 >,
13992 ) -> Self {
13993 match err {
13994 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13995 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13996 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13997 source: err.into(),
13998 }),
13999 }
14000 }
14001}
14002impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
14003 fn from(
14004 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
14005 ) -> Self {
14006 match err {
14007 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
14008 }
14009 }
14010}
14011impl<R>
14012 From<
14013 ::aws_smithy_runtime_api::client::result::SdkError<
14014 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
14015 R,
14016 >,
14017 > for Error
14018where
14019 R: Send + Sync + std::fmt::Debug + 'static,
14020{
14021 fn from(
14022 err: ::aws_smithy_runtime_api::client::result::SdkError<
14023 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
14024 R,
14025 >,
14026 ) -> Self {
14027 match err {
14028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14031 source: err.into(),
14032 }),
14033 }
14034 }
14035}
14036impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
14037 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
14038 match err {
14039 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
14040 Error::Unhandled(inner)
14041 }
14042 }
14043 }
14044}
14045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
14046where
14047 R: Send + Sync + std::fmt::Debug + 'static,
14048{
14049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
14050 match err {
14051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14054 source: err.into(),
14055 }),
14056 }
14057 }
14058}
14059impl From<crate::operation::export_image::ExportImageError> for Error {
14060 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
14061 match err {
14062 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
14063 }
14064 }
14065}
14066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
14067 for Error
14068where
14069 R: Send + Sync + std::fmt::Debug + 'static,
14070{
14071 fn from(
14072 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
14073 ) -> Self {
14074 match err {
14075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14078 source: err.into(),
14079 }),
14080 }
14081 }
14082}
14083impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
14084 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
14085 match err {
14086 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
14087 }
14088 }
14089}
14090impl<R>
14091 From<
14092 ::aws_smithy_runtime_api::client::result::SdkError<
14093 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14094 R,
14095 >,
14096 > for Error
14097where
14098 R: Send + Sync + std::fmt::Debug + 'static,
14099{
14100 fn from(
14101 err: ::aws_smithy_runtime_api::client::result::SdkError<
14102 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14103 R,
14104 >,
14105 ) -> Self {
14106 match err {
14107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14110 source: err.into(),
14111 }),
14112 }
14113 }
14114}
14115impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
14116 fn from(
14117 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
14118 ) -> Self {
14119 match err {
14120 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
14121 }
14122 }
14123}
14124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>>
14125 for Error
14126where
14127 R: Send + Sync + std::fmt::Debug + 'static,
14128{
14129 fn from(
14130 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>,
14131 ) -> Self {
14132 match err {
14133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14136 source: err.into(),
14137 }),
14138 }
14139 }
14140}
14141impl From<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
14142 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
14143 match err {
14144 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
14145 }
14146 }
14147}
14148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
14149 for Error
14150where
14151 R: Send + Sync + std::fmt::Debug + 'static,
14152{
14153 fn from(
14154 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
14155 ) -> Self {
14156 match err {
14157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14160 source: err.into(),
14161 }),
14162 }
14163 }
14164}
14165impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
14166 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
14167 match err {
14168 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
14169 }
14170 }
14171}
14172impl<R>
14173 From<
14174 ::aws_smithy_runtime_api::client::result::SdkError<
14175 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
14176 R,
14177 >,
14178 > for Error
14179where
14180 R: Send + Sync + std::fmt::Debug + 'static,
14181{
14182 fn from(
14183 err: ::aws_smithy_runtime_api::client::result::SdkError<
14184 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
14185 R,
14186 >,
14187 ) -> Self {
14188 match err {
14189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14192 source: err.into(),
14193 }),
14194 }
14195 }
14196}
14197impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
14198 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
14199 match err {
14200 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
14201 Error::Unhandled(inner)
14202 }
14203 }
14204 }
14205}
14206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
14207 for Error
14208where
14209 R: Send + Sync + std::fmt::Debug + 'static,
14210{
14211 fn from(
14212 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
14213 ) -> Self {
14214 match err {
14215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14218 source: err.into(),
14219 }),
14220 }
14221 }
14222}
14223impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
14224 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
14225 match err {
14226 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14227 }
14228 }
14229}
14230impl<R>
14231 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
14232 for Error
14233where
14234 R: Send + Sync + std::fmt::Debug + 'static,
14235{
14236 fn from(
14237 err: ::aws_smithy_runtime_api::client::result::SdkError<
14238 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
14239 R,
14240 >,
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_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
14252 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
14253 match err {
14254 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
14255 }
14256 }
14257}
14258impl<R>
14259 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, 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_capacity_manager_attributes::GetCapacityManagerAttributesError,
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_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
14280 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
14281 match err {
14282 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
14283 }
14284 }
14285}
14286impl<R>
14287 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, 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_metric_data::GetCapacityManagerMetricDataError,
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_metric_data::GetCapacityManagerMetricDataError> for Error {
14308 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
14309 match err {
14310 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
14311 }
14312 }
14313}
14314impl<R>
14315 From<
14316 ::aws_smithy_runtime_api::client::result::SdkError<
14317 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14318 R,
14319 >,
14320 > for Error
14321where
14322 R: Send + Sync + std::fmt::Debug + 'static,
14323{
14324 fn from(
14325 err: ::aws_smithy_runtime_api::client::result::SdkError<
14326 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14327 R,
14328 >,
14329 ) -> Self {
14330 match err {
14331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14334 source: err.into(),
14335 }),
14336 }
14337 }
14338}
14339impl From<crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
14340 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
14341 match err {
14342 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
14343 Error::Unhandled(inner)
14344 }
14345 }
14346 }
14347}
14348impl<R>
14349 From<
14350 ::aws_smithy_runtime_api::client::result::SdkError<
14351 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError,
14352 R,
14353 >,
14354 > for Error
14355where
14356 R: Send + Sync + std::fmt::Debug + 'static,
14357{
14358 fn from(
14359 err: ::aws_smithy_runtime_api::client::result::SdkError<
14360 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError,
14361 R,
14362 >,
14363 ) -> Self {
14364 match err {
14365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14368 source: err.into(),
14369 }),
14370 }
14371 }
14372}
14373impl From<crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError> for Error {
14374 fn from(err: crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError) -> Self {
14375 match err {
14376 crate::operation::get_capacity_manager_monitored_tag_keys::GetCapacityManagerMonitoredTagKeysError::Unhandled(inner) => {
14377 Error::Unhandled(inner)
14378 }
14379 }
14380 }
14381}
14382impl<R>
14383 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
14384 for Error
14385where
14386 R: Send + Sync + std::fmt::Debug + 'static,
14387{
14388 fn from(
14389 err: ::aws_smithy_runtime_api::client::result::SdkError<
14390 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
14391 R,
14392 >,
14393 ) -> Self {
14394 match err {
14395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14398 source: err.into(),
14399 }),
14400 }
14401 }
14402}
14403impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
14404 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
14405 match err {
14406 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
14407 }
14408 }
14409}
14410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
14411where
14412 R: Send + Sync + std::fmt::Debug + 'static,
14413{
14414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
14415 match err {
14416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14419 source: err.into(),
14420 }),
14421 }
14422 }
14423}
14424impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
14425 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
14426 match err {
14427 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
14428 }
14429 }
14430}
14431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
14432where
14433 R: Send + Sync + std::fmt::Debug + 'static,
14434{
14435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
14436 match err {
14437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14440 source: err.into(),
14441 }),
14442 }
14443 }
14444}
14445impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
14446 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
14447 match err {
14448 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
14449 }
14450 }
14451}
14452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
14453where
14454 R: Send + Sync + std::fmt::Debug + 'static,
14455{
14456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
14457 match err {
14458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14461 source: err.into(),
14462 }),
14463 }
14464 }
14465}
14466impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
14467 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
14468 match err {
14469 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
14470 }
14471 }
14472}
14473impl<R>
14474 From<
14475 ::aws_smithy_runtime_api::client::result::SdkError<
14476 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14477 R,
14478 >,
14479 > for Error
14480where
14481 R: Send + Sync + std::fmt::Debug + 'static,
14482{
14483 fn from(
14484 err: ::aws_smithy_runtime_api::client::result::SdkError<
14485 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14486 R,
14487 >,
14488 ) -> Self {
14489 match err {
14490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14493 source: err.into(),
14494 }),
14495 }
14496 }
14497}
14498impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
14499 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
14500 match err {
14501 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
14502 Error::Unhandled(inner)
14503 }
14504 }
14505 }
14506}
14507impl<R>
14508 From<
14509 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
14510 > for Error
14511where
14512 R: Send + Sync + std::fmt::Debug + 'static,
14513{
14514 fn from(
14515 err: ::aws_smithy_runtime_api::client::result::SdkError<
14516 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
14517 R,
14518 >,
14519 ) -> Self {
14520 match err {
14521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14524 source: err.into(),
14525 }),
14526 }
14527 }
14528}
14529impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
14530 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
14531 match err {
14532 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
14533 }
14534 }
14535}
14536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
14537 for Error
14538where
14539 R: Send + Sync + std::fmt::Debug + 'static,
14540{
14541 fn from(
14542 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
14543 ) -> Self {
14544 match err {
14545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14548 source: err.into(),
14549 }),
14550 }
14551 }
14552}
14553impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
14554 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
14555 match err {
14556 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
14557 }
14558 }
14559}
14560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
14561 for Error
14562where
14563 R: Send + Sync + std::fmt::Debug + 'static,
14564{
14565 fn from(
14566 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
14567 ) -> Self {
14568 match err {
14569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14572 source: err.into(),
14573 }),
14574 }
14575 }
14576}
14577impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
14578 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
14579 match err {
14580 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
14581 }
14582 }
14583}
14584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>> for Error
14585where
14586 R: Send + Sync + std::fmt::Debug + 'static,
14587{
14588 fn from(
14589 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>,
14590 ) -> Self {
14591 match err {
14592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14595 source: err.into(),
14596 }),
14597 }
14598 }
14599}
14600impl From<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError> for Error {
14601 fn from(err: crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError) -> Self {
14602 match err {
14603 crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14604 }
14605 }
14606}
14607impl<R>
14608 From<
14609 ::aws_smithy_runtime_api::client::result::SdkError<
14610 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14611 R,
14612 >,
14613 > for Error
14614where
14615 R: Send + Sync + std::fmt::Debug + 'static,
14616{
14617 fn from(
14618 err: ::aws_smithy_runtime_api::client::result::SdkError<
14619 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14620 R,
14621 >,
14622 ) -> Self {
14623 match err {
14624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14627 source: err.into(),
14628 }),
14629 }
14630 }
14631}
14632impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
14633 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
14634 match err {
14635 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
14636 }
14637 }
14638}
14639impl<R>
14640 From<
14641 ::aws_smithy_runtime_api::client::result::SdkError<
14642 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14643 R,
14644 >,
14645 > for Error
14646where
14647 R: Send + Sync + std::fmt::Debug + 'static,
14648{
14649 fn from(
14650 err: ::aws_smithy_runtime_api::client::result::SdkError<
14651 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14652 R,
14653 >,
14654 ) -> Self {
14655 match err {
14656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14659 source: err.into(),
14660 }),
14661 }
14662 }
14663}
14664impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
14665 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
14666 match err {
14667 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
14668 }
14669 }
14670}
14671impl<R>
14672 From<
14673 ::aws_smithy_runtime_api::client::result::SdkError<
14674 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14675 R,
14676 >,
14677 > for Error
14678where
14679 R: Send + Sync + std::fmt::Debug + 'static,
14680{
14681 fn from(
14682 err: ::aws_smithy_runtime_api::client::result::SdkError<
14683 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14684 R,
14685 >,
14686 ) -> Self {
14687 match err {
14688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14691 source: err.into(),
14692 }),
14693 }
14694 }
14695}
14696impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
14697 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
14698 match err {
14699 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
14700 Error::Unhandled(inner)
14701 }
14702 }
14703 }
14704}
14705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>> for Error
14706where
14707 R: Send + Sync + std::fmt::Debug + 'static,
14708{
14709 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>) -> Self {
14710 match err {
14711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14714 source: err.into(),
14715 }),
14716 }
14717 }
14718}
14719impl From<crate::operation::get_image_ancestry::GetImageAncestryError> for Error {
14720 fn from(err: crate::operation::get_image_ancestry::GetImageAncestryError) -> Self {
14721 match err {
14722 crate::operation::get_image_ancestry::GetImageAncestryError::Unhandled(inner) => Error::Unhandled(inner),
14723 }
14724 }
14725}
14726impl<R>
14727 From<
14728 ::aws_smithy_runtime_api::client::result::SdkError<
14729 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14730 R,
14731 >,
14732 > for Error
14733where
14734 R: Send + Sync + std::fmt::Debug + 'static,
14735{
14736 fn from(
14737 err: ::aws_smithy_runtime_api::client::result::SdkError<
14738 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14739 R,
14740 >,
14741 ) -> Self {
14742 match err {
14743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14746 source: err.into(),
14747 }),
14748 }
14749 }
14750}
14751impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
14752 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
14753 match err {
14754 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
14755 }
14756 }
14757}
14758impl<R>
14759 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
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_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
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_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
14780 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
14781 match err {
14782 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
14783 }
14784 }
14785}
14786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
14787where
14788 R: Send + Sync + std::fmt::Debug + 'static,
14789{
14790 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
14791 match err {
14792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14795 source: err.into(),
14796 }),
14797 }
14798 }
14799}
14800impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
14801 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
14802 match err {
14803 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
14804 }
14805 }
14806}
14807impl<R>
14808 From<
14809 ::aws_smithy_runtime_api::client::result::SdkError<
14810 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14811 R,
14812 >,
14813 > for Error
14814where
14815 R: Send + Sync + std::fmt::Debug + 'static,
14816{
14817 fn from(
14818 err: ::aws_smithy_runtime_api::client::result::SdkError<
14819 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14820 R,
14821 >,
14822 ) -> Self {
14823 match err {
14824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14827 source: err.into(),
14828 }),
14829 }
14830 }
14831}
14832impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
14833 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
14834 match err {
14835 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
14836 Error::Unhandled(inner)
14837 }
14838 }
14839 }
14840}
14841impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
14842where
14843 R: Send + Sync + std::fmt::Debug + 'static,
14844{
14845 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
14846 match err {
14847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14850 source: err.into(),
14851 }),
14852 }
14853 }
14854}
14855impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
14856 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
14857 match err {
14858 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
14859 }
14860 }
14861}
14862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
14863where
14864 R: Send + Sync + std::fmt::Debug + 'static,
14865{
14866 fn from(
14867 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
14868 ) -> Self {
14869 match err {
14870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14873 source: err.into(),
14874 }),
14875 }
14876 }
14877}
14878impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
14879 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
14880 match err {
14881 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
14882 }
14883 }
14884}
14885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
14886 for Error
14887where
14888 R: Send + Sync + std::fmt::Debug + 'static,
14889{
14890 fn from(
14891 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
14892 ) -> Self {
14893 match err {
14894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14897 source: err.into(),
14898 }),
14899 }
14900 }
14901}
14902impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14903 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14904 match err {
14905 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14906 }
14907 }
14908}
14909impl<R>
14910 From<
14911 ::aws_smithy_runtime_api::client::result::SdkError<
14912 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14913 R,
14914 >,
14915 > for Error
14916where
14917 R: Send + Sync + std::fmt::Debug + 'static,
14918{
14919 fn from(
14920 err: ::aws_smithy_runtime_api::client::result::SdkError<
14921 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14922 R,
14923 >,
14924 ) -> Self {
14925 match err {
14926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14929 source: err.into(),
14930 }),
14931 }
14932 }
14933}
14934impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14935 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14936 match err {
14937 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14938 Error::Unhandled(inner)
14939 }
14940 }
14941 }
14942}
14943impl<R>
14944 From<
14945 ::aws_smithy_runtime_api::client::result::SdkError<
14946 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14947 R,
14948 >,
14949 > for Error
14950where
14951 R: Send + Sync + std::fmt::Debug + 'static,
14952{
14953 fn from(
14954 err: ::aws_smithy_runtime_api::client::result::SdkError<
14955 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14956 R,
14957 >,
14958 ) -> Self {
14959 match err {
14960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14963 source: err.into(),
14964 }),
14965 }
14966 }
14967}
14968impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14969 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14970 match err {
14971 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14972 }
14973 }
14974}
14975impl<R>
14976 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError, R>>
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_policy_allocation_rules::GetIpamPolicyAllocationRulesError,
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_policy_allocation_rules::GetIpamPolicyAllocationRulesError> for Error {
14997 fn from(err: crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError) -> Self {
14998 match err {
14999 crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
15000 }
15001 }
15002}
15003impl<R>
15004 From<
15005 ::aws_smithy_runtime_api::client::result::SdkError<
15006 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
15007 R,
15008 >,
15009 > for Error
15010where
15011 R: Send + Sync + std::fmt::Debug + 'static,
15012{
15013 fn from(
15014 err: ::aws_smithy_runtime_api::client::result::SdkError<
15015 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
15016 R,
15017 >,
15018 ) -> Self {
15019 match err {
15020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15023 source: err.into(),
15024 }),
15025 }
15026 }
15027}
15028impl From<crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError> for Error {
15029 fn from(err: crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError) -> Self {
15030 match err {
15031 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError::Unhandled(inner) => {
15032 Error::Unhandled(inner)
15033 }
15034 }
15035 }
15036}
15037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
15038 for Error
15039where
15040 R: Send + Sync + std::fmt::Debug + 'static,
15041{
15042 fn from(
15043 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
15044 ) -> Self {
15045 match err {
15046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15049 source: err.into(),
15050 }),
15051 }
15052 }
15053}
15054impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
15055 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
15056 match err {
15057 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
15058 }
15059 }
15060}
15061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
15062where
15063 R: Send + Sync + std::fmt::Debug + 'static,
15064{
15065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
15066 match err {
15067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15070 source: err.into(),
15071 }),
15072 }
15073 }
15074}
15075impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
15076 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
15077 match err {
15078 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
15079 }
15080 }
15081}
15082impl<R>
15083 From<
15084 ::aws_smithy_runtime_api::client::result::SdkError<
15085 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
15086 R,
15087 >,
15088 > for Error
15089where
15090 R: Send + Sync + std::fmt::Debug + 'static,
15091{
15092 fn from(
15093 err: ::aws_smithy_runtime_api::client::result::SdkError<
15094 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
15095 R,
15096 >,
15097 ) -> Self {
15098 match err {
15099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15102 source: err.into(),
15103 }),
15104 }
15105 }
15106}
15107impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
15108 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
15109 match err {
15110 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
15111 }
15112 }
15113}
15114impl<R>
15115 From<
15116 ::aws_smithy_runtime_api::client::result::SdkError<
15117 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
15118 R,
15119 >,
15120 > for Error
15121where
15122 R: Send + Sync + std::fmt::Debug + 'static,
15123{
15124 fn from(
15125 err: ::aws_smithy_runtime_api::client::result::SdkError<
15126 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
15127 R,
15128 >,
15129 ) -> Self {
15130 match err {
15131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15134 source: err.into(),
15135 }),
15136 }
15137 }
15138}
15139impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
15140 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
15141 match err {
15142 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
15143 Error::Unhandled(inner)
15144 }
15145 }
15146 }
15147}
15148impl<R>
15149 From<
15150 ::aws_smithy_runtime_api::client::result::SdkError<
15151 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
15152 R,
15153 >,
15154 > for Error
15155where
15156 R: Send + Sync + std::fmt::Debug + 'static,
15157{
15158 fn from(
15159 err: ::aws_smithy_runtime_api::client::result::SdkError<
15160 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
15161 R,
15162 >,
15163 ) -> Self {
15164 match err {
15165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15168 source: err.into(),
15169 }),
15170 }
15171 }
15172}
15173impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
15174 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
15175 match err {
15176 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
15177 Error::Unhandled(inner)
15178 }
15179 }
15180 }
15181}
15182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
15183where
15184 R: Send + Sync + std::fmt::Debug + 'static,
15185{
15186 fn from(
15187 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
15188 ) -> Self {
15189 match err {
15190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15193 source: err.into(),
15194 }),
15195 }
15196 }
15197}
15198impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
15199 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
15200 match err {
15201 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
15202 }
15203 }
15204}
15205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
15206where
15207 R: Send + Sync + std::fmt::Debug + 'static,
15208{
15209 fn from(
15210 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
15211 ) -> Self {
15212 match err {
15213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15216 source: err.into(),
15217 }),
15218 }
15219 }
15220}
15221impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
15222 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
15223 match err {
15224 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
15225 }
15226 }
15227}
15228impl<R>
15229 From<
15230 ::aws_smithy_runtime_api::client::result::SdkError<
15231 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
15232 R,
15233 >,
15234 > for Error
15235where
15236 R: Send + Sync + std::fmt::Debug + 'static,
15237{
15238 fn from(
15239 err: ::aws_smithy_runtime_api::client::result::SdkError<
15240 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
15241 R,
15242 >,
15243 ) -> Self {
15244 match err {
15245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15248 source: err.into(),
15249 }),
15250 }
15251 }
15252}
15253impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
15254 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
15255 match err {
15256 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
15257 Error::Unhandled(inner)
15258 }
15259 }
15260 }
15261}
15262impl<R>
15263 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
15264 for Error
15265where
15266 R: Send + Sync + std::fmt::Debug + 'static,
15267{
15268 fn from(
15269 err: ::aws_smithy_runtime_api::client::result::SdkError<
15270 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
15271 R,
15272 >,
15273 ) -> Self {
15274 match err {
15275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15278 source: err.into(),
15279 }),
15280 }
15281 }
15282}
15283impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
15284 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
15285 match err {
15286 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
15287 }
15288 }
15289}
15290impl<R>
15291 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError, 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_resource_visibility::GetManagedResourceVisibilityError,
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_resource_visibility::GetManagedResourceVisibilityError> for Error {
15312 fn from(err: crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError) -> Self {
15313 match err {
15314 crate::operation::get_managed_resource_visibility::GetManagedResourceVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
15315 }
15316 }
15317}
15318impl<R>
15319 From<
15320 ::aws_smithy_runtime_api::client::result::SdkError<
15321 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15322 R,
15323 >,
15324 > for Error
15325where
15326 R: Send + Sync + std::fmt::Debug + 'static,
15327{
15328 fn from(
15329 err: ::aws_smithy_runtime_api::client::result::SdkError<
15330 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15331 R,
15332 >,
15333 ) -> Self {
15334 match err {
15335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15338 source: err.into(),
15339 }),
15340 }
15341 }
15342}
15343impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
15344 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
15345 match err {
15346 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
15347 inner,
15348 ) => Error::Unhandled(inner),
15349 }
15350 }
15351}
15352impl<R>
15353 From<
15354 ::aws_smithy_runtime_api::client::result::SdkError<
15355 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15356 R,
15357 >,
15358 > for Error
15359where
15360 R: Send + Sync + std::fmt::Debug + 'static,
15361{
15362 fn from(
15363 err: ::aws_smithy_runtime_api::client::result::SdkError<
15364 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15365 R,
15366 >,
15367 ) -> Self {
15368 match err {
15369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15372 source: err.into(),
15373 }),
15374 }
15375 }
15376}
15377impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
15378 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
15379 match err {
15380 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
15381 Error::Unhandled(inner)
15382 }
15383 }
15384 }
15385}
15386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
15387where
15388 R: Send + Sync + std::fmt::Debug + 'static,
15389{
15390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
15391 match err {
15392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15395 source: err.into(),
15396 }),
15397 }
15398 }
15399}
15400impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
15401 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
15402 match err {
15403 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
15404 }
15405 }
15406}
15407impl<R>
15408 From<
15409 ::aws_smithy_runtime_api::client::result::SdkError<
15410 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15411 R,
15412 >,
15413 > for Error
15414where
15415 R: Send + Sync + std::fmt::Debug + 'static,
15416{
15417 fn from(
15418 err: ::aws_smithy_runtime_api::client::result::SdkError<
15419 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15420 R,
15421 >,
15422 ) -> Self {
15423 match err {
15424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15427 source: err.into(),
15428 }),
15429 }
15430 }
15431}
15432impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
15433 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
15434 match err {
15435 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
15436 Error::Unhandled(inner)
15437 }
15438 }
15439 }
15440}
15441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
15442 for Error
15443where
15444 R: Send + Sync + std::fmt::Debug + 'static,
15445{
15446 fn from(
15447 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
15448 ) -> Self {
15449 match err {
15450 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15451 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15452 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15453 source: err.into(),
15454 }),
15455 }
15456 }
15457}
15458impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
15459 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
15460 match err {
15461 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
15462 }
15463 }
15464}
15465impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
15466 for Error
15467where
15468 R: Send + Sync + std::fmt::Debug + 'static,
15469{
15470 fn from(
15471 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
15472 ) -> Self {
15473 match err {
15474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15477 source: err.into(),
15478 }),
15479 }
15480 }
15481}
15482impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
15483 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
15484 match err {
15485 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
15486 }
15487 }
15488}
15489impl<R>
15490 From<
15491 ::aws_smithy_runtime_api::client::result::SdkError<
15492 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15493 R,
15494 >,
15495 > for Error
15496where
15497 R: Send + Sync + std::fmt::Debug + 'static,
15498{
15499 fn from(
15500 err: ::aws_smithy_runtime_api::client::result::SdkError<
15501 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15502 R,
15503 >,
15504 ) -> Self {
15505 match err {
15506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15509 source: err.into(),
15510 }),
15511 }
15512 }
15513}
15514impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
15515 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
15516 match err {
15517 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
15518 }
15519 }
15520}
15521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
15522 for Error
15523where
15524 R: Send + Sync + std::fmt::Debug + 'static,
15525{
15526 fn from(
15527 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
15528 ) -> Self {
15529 match err {
15530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15533 source: err.into(),
15534 }),
15535 }
15536 }
15537}
15538impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
15539 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
15540 match err {
15541 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
15542 }
15543 }
15544}
15545impl<R>
15546 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
15547 for Error
15548where
15549 R: Send + Sync + std::fmt::Debug + 'static,
15550{
15551 fn from(
15552 err: ::aws_smithy_runtime_api::client::result::SdkError<
15553 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
15554 R,
15555 >,
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_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
15567 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
15568 match err {
15569 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
15570 }
15571 }
15572}
15573impl<R>
15574 From<
15575 ::aws_smithy_runtime_api::client::result::SdkError<
15576 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15577 R,
15578 >,
15579 > for Error
15580where
15581 R: Send + Sync + std::fmt::Debug + 'static,
15582{
15583 fn from(
15584 err: ::aws_smithy_runtime_api::client::result::SdkError<
15585 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15586 R,
15587 >,
15588 ) -> Self {
15589 match err {
15590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15593 source: err.into(),
15594 }),
15595 }
15596 }
15597}
15598impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
15599 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
15600 match err {
15601 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
15602 Error::Unhandled(inner)
15603 }
15604 }
15605 }
15606}
15607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
15608 for Error
15609where
15610 R: Send + Sync + std::fmt::Debug + 'static,
15611{
15612 fn from(
15613 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
15614 ) -> Self {
15615 match err {
15616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15619 source: err.into(),
15620 }),
15621 }
15622 }
15623}
15624impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
15625 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
15626 match err {
15627 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
15628 }
15629 }
15630}
15631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
15632 for Error
15633where
15634 R: Send + Sync + std::fmt::Debug + 'static,
15635{
15636 fn from(
15637 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
15638 ) -> Self {
15639 match err {
15640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15643 source: err.into(),
15644 }),
15645 }
15646 }
15647}
15648impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
15649 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
15650 match err {
15651 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
15652 }
15653 }
15654}
15655impl<R>
15656 From<
15657 ::aws_smithy_runtime_api::client::result::SdkError<
15658 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15659 R,
15660 >,
15661 > for Error
15662where
15663 R: Send + Sync + std::fmt::Debug + 'static,
15664{
15665 fn from(
15666 err: ::aws_smithy_runtime_api::client::result::SdkError<
15667 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15668 R,
15669 >,
15670 ) -> Self {
15671 match err {
15672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15675 source: err.into(),
15676 }),
15677 }
15678 }
15679}
15680impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
15681 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
15682 match err {
15683 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
15684 Error::Unhandled(inner)
15685 }
15686 }
15687 }
15688}
15689impl<R>
15690 From<
15691 ::aws_smithy_runtime_api::client::result::SdkError<
15692 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15693 R,
15694 >,
15695 > for Error
15696where
15697 R: Send + Sync + std::fmt::Debug + 'static,
15698{
15699 fn from(
15700 err: ::aws_smithy_runtime_api::client::result::SdkError<
15701 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15702 R,
15703 >,
15704 ) -> Self {
15705 match err {
15706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15709 source: err.into(),
15710 }),
15711 }
15712 }
15713}
15714impl From<crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError> for Error {
15715 fn from(err: crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError) -> Self {
15716 match err {
15717 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError::Unhandled(inner) => {
15718 Error::Unhandled(inner)
15719 }
15720 }
15721 }
15722}
15723impl<R>
15724 From<
15725 ::aws_smithy_runtime_api::client::result::SdkError<
15726 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15727 R,
15728 >,
15729 > for Error
15730where
15731 R: Send + Sync + std::fmt::Debug + 'static,
15732{
15733 fn from(
15734 err: ::aws_smithy_runtime_api::client::result::SdkError<
15735 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15736 R,
15737 >,
15738 ) -> Self {
15739 match err {
15740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15743 source: err.into(),
15744 }),
15745 }
15746 }
15747}
15748impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
15749 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
15750 match err {
15751 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
15752 inner,
15753 ) => Error::Unhandled(inner),
15754 }
15755 }
15756}
15757impl<R>
15758 From<
15759 ::aws_smithy_runtime_api::client::result::SdkError<
15760 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15761 R,
15762 >,
15763 > for Error
15764where
15765 R: Send + Sync + std::fmt::Debug + 'static,
15766{
15767 fn from(
15768 err: ::aws_smithy_runtime_api::client::result::SdkError<
15769 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15770 R,
15771 >,
15772 ) -> Self {
15773 match err {
15774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15777 source: err.into(),
15778 }),
15779 }
15780 }
15781}
15782impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
15783 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
15784 match err {
15785 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
15786 Error::Unhandled(inner)
15787 }
15788 }
15789 }
15790}
15791impl<R>
15792 From<
15793 ::aws_smithy_runtime_api::client::result::SdkError<
15794 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15795 R,
15796 >,
15797 > for Error
15798where
15799 R: Send + Sync + std::fmt::Debug + 'static,
15800{
15801 fn from(
15802 err: ::aws_smithy_runtime_api::client::result::SdkError<
15803 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15804 R,
15805 >,
15806 ) -> Self {
15807 match err {
15808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15811 source: err.into(),
15812 }),
15813 }
15814 }
15815}
15816impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
15817 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
15818 match err {
15819 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
15820 Error::Unhandled(inner)
15821 }
15822 }
15823 }
15824}
15825impl<R>
15826 From<
15827 ::aws_smithy_runtime_api::client::result::SdkError<
15828 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15829 R,
15830 >,
15831 > for Error
15832where
15833 R: Send + Sync + std::fmt::Debug + 'static,
15834{
15835 fn from(
15836 err: ::aws_smithy_runtime_api::client::result::SdkError<
15837 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15838 R,
15839 >,
15840 ) -> Self {
15841 match err {
15842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15845 source: err.into(),
15846 }),
15847 }
15848 }
15849}
15850impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
15851 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
15852 match err {
15853 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
15854 Error::Unhandled(inner)
15855 }
15856 }
15857 }
15858}
15859impl<R>
15860 From<
15861 ::aws_smithy_runtime_api::client::result::SdkError<
15862 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15863 R,
15864 >,
15865 > for Error
15866where
15867 R: Send + Sync + std::fmt::Debug + 'static,
15868{
15869 fn from(
15870 err: ::aws_smithy_runtime_api::client::result::SdkError<
15871 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15872 R,
15873 >,
15874 ) -> Self {
15875 match err {
15876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15879 source: err.into(),
15880 }),
15881 }
15882 }
15883}
15884impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
15885 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
15886 match err {
15887 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
15888 Error::Unhandled(inner)
15889 }
15890 }
15891 }
15892}
15893impl<R>
15894 From<
15895 ::aws_smithy_runtime_api::client::result::SdkError<
15896 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15897 R,
15898 >,
15899 > for Error
15900where
15901 R: Send + Sync + std::fmt::Debug + 'static,
15902{
15903 fn from(
15904 err: ::aws_smithy_runtime_api::client::result::SdkError<
15905 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15906 R,
15907 >,
15908 ) -> Self {
15909 match err {
15910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15913 source: err.into(),
15914 }),
15915 }
15916 }
15917}
15918impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
15919 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
15920 match err {
15921 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
15922 Error::Unhandled(inner)
15923 }
15924 }
15925 }
15926}
15927impl<R>
15928 From<
15929 ::aws_smithy_runtime_api::client::result::SdkError<
15930 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15931 R,
15932 >,
15933 > for Error
15934where
15935 R: Send + Sync + std::fmt::Debug + 'static,
15936{
15937 fn from(
15938 err: ::aws_smithy_runtime_api::client::result::SdkError<
15939 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15940 R,
15941 >,
15942 ) -> Self {
15943 match err {
15944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15947 source: err.into(),
15948 }),
15949 }
15950 }
15951}
15952impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
15953 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
15954 match err {
15955 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15956 }
15957 }
15958}
15959impl<R>
15960 From<
15961 ::aws_smithy_runtime_api::client::result::SdkError<
15962 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15963 R,
15964 >,
15965 > for Error
15966where
15967 R: Send + Sync + std::fmt::Debug + 'static,
15968{
15969 fn from(
15970 err: ::aws_smithy_runtime_api::client::result::SdkError<
15971 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15972 R,
15973 >,
15974 ) -> Self {
15975 match err {
15976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15979 source: err.into(),
15980 }),
15981 }
15982 }
15983}
15984impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
15985 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
15986 match err {
15987 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
15988 Error::Unhandled(inner)
15989 }
15990 }
15991 }
15992}
15993impl<R>
15994 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
15995 for Error
15996where
15997 R: Send + Sync + std::fmt::Debug + 'static,
15998{
15999 fn from(
16000 err: ::aws_smithy_runtime_api::client::result::SdkError<
16001 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
16002 R,
16003 >,
16004 ) -> Self {
16005 match err {
16006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16009 source: err.into(),
16010 }),
16011 }
16012 }
16013}
16014impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
16015 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
16016 match err {
16017 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16018 }
16019 }
16020}
16021impl<R>
16022 From<
16023 ::aws_smithy_runtime_api::client::result::SdkError<
16024 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
16025 R,
16026 >,
16027 > for Error
16028where
16029 R: Send + Sync + std::fmt::Debug + 'static,
16030{
16031 fn from(
16032 err: ::aws_smithy_runtime_api::client::result::SdkError<
16033 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
16034 R,
16035 >,
16036 ) -> Self {
16037 match err {
16038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16041 source: err.into(),
16042 }),
16043 }
16044 }
16045}
16046impl From<crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError> for Error {
16047 fn from(err: crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError) -> Self {
16048 match err {
16049 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError::Unhandled(
16050 inner,
16051 ) => Error::Unhandled(inner),
16052 }
16053 }
16054}
16055impl<R>
16056 From<
16057 ::aws_smithy_runtime_api::client::result::SdkError<
16058 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
16059 R,
16060 >,
16061 > for Error
16062where
16063 R: Send + Sync + std::fmt::Debug + 'static,
16064{
16065 fn from(
16066 err: ::aws_smithy_runtime_api::client::result::SdkError<
16067 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
16068 R,
16069 >,
16070 ) -> Self {
16071 match err {
16072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16075 source: err.into(),
16076 }),
16077 }
16078 }
16079}
16080impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
16081 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
16082 match err {
16083 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
16084 Error::Unhandled(inner)
16085 }
16086 }
16087 }
16088}
16089impl<R>
16090 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
16091 for Error
16092where
16093 R: Send + Sync + std::fmt::Debug + 'static,
16094{
16095 fn from(
16096 err: ::aws_smithy_runtime_api::client::result::SdkError<
16097 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
16098 R,
16099 >,
16100 ) -> Self {
16101 match err {
16102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16105 source: err.into(),
16106 }),
16107 }
16108 }
16109}
16110impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
16111 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
16112 match err {
16113 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
16114 }
16115 }
16116}
16117impl<R>
16118 From<
16119 ::aws_smithy_runtime_api::client::result::SdkError<
16120 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
16121 R,
16122 >,
16123 > for Error
16124where
16125 R: Send + Sync + std::fmt::Debug + 'static,
16126{
16127 fn from(
16128 err: ::aws_smithy_runtime_api::client::result::SdkError<
16129 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
16130 R,
16131 >,
16132 ) -> Self {
16133 match err {
16134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16137 source: err.into(),
16138 }),
16139 }
16140 }
16141}
16142impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
16143 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
16144 match err {
16145 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
16146 }
16147 }
16148}
16149impl<R>
16150 From<
16151 ::aws_smithy_runtime_api::client::result::SdkError<
16152 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16153 R,
16154 >,
16155 > for Error
16156where
16157 R: Send + Sync + std::fmt::Debug + 'static,
16158{
16159 fn from(
16160 err: ::aws_smithy_runtime_api::client::result::SdkError<
16161 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16162 R,
16163 >,
16164 ) -> Self {
16165 match err {
16166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16169 source: err.into(),
16170 }),
16171 }
16172 }
16173}
16174impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
16175 fn from(
16176 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
16177 ) -> Self {
16178 match err {
16179 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
16180 }
16181 }
16182}
16183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
16184where
16185 R: Send + Sync + std::fmt::Debug + 'static,
16186{
16187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
16188 match err {
16189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16192 source: err.into(),
16193 }),
16194 }
16195 }
16196}
16197impl From<crate::operation::import_image::ImportImageError> for Error {
16198 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
16199 match err {
16200 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
16201 }
16202 }
16203}
16204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
16205where
16206 R: Send + Sync + std::fmt::Debug + 'static,
16207{
16208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
16209 match err {
16210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16213 source: err.into(),
16214 }),
16215 }
16216 }
16217}
16218impl From<crate::operation::import_instance::ImportInstanceError> for Error {
16219 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
16220 match err {
16221 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
16222 }
16223 }
16224}
16225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
16226where
16227 R: Send + Sync + std::fmt::Debug + 'static,
16228{
16229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
16230 match err {
16231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16234 source: err.into(),
16235 }),
16236 }
16237 }
16238}
16239impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
16240 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
16241 match err {
16242 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
16243 }
16244 }
16245}
16246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
16247where
16248 R: Send + Sync + std::fmt::Debug + 'static,
16249{
16250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
16251 match err {
16252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16255 source: err.into(),
16256 }),
16257 }
16258 }
16259}
16260impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
16261 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
16262 match err {
16263 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
16264 }
16265 }
16266}
16267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
16268where
16269 R: Send + Sync + std::fmt::Debug + 'static,
16270{
16271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
16272 match err {
16273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16276 source: err.into(),
16277 }),
16278 }
16279 }
16280}
16281impl From<crate::operation::import_volume::ImportVolumeError> for Error {
16282 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
16283 match err {
16284 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
16285 }
16286 }
16287}
16288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
16289 for Error
16290where
16291 R: Send + Sync + std::fmt::Debug + 'static,
16292{
16293 fn from(
16294 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
16295 ) -> Self {
16296 match err {
16297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16300 source: err.into(),
16301 }),
16302 }
16303 }
16304}
16305impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
16306 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
16307 match err {
16308 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16309 }
16310 }
16311}
16312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
16313 for Error
16314where
16315 R: Send + Sync + std::fmt::Debug + 'static,
16316{
16317 fn from(
16318 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
16319 ) -> Self {
16320 match err {
16321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16324 source: err.into(),
16325 }),
16326 }
16327 }
16328}
16329impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
16330 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
16331 match err {
16332 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16333 }
16334 }
16335}
16336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>>
16337 for Error
16338where
16339 R: Send + Sync + std::fmt::Debug + 'static,
16340{
16341 fn from(
16342 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>,
16343 ) -> Self {
16344 match err {
16345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16348 source: err.into(),
16349 }),
16350 }
16351 }
16352}
16353impl From<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError> for Error {
16354 fn from(err: crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError) -> Self {
16355 match err {
16356 crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16357 }
16358 }
16359}
16360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
16361where
16362 R: Send + Sync + std::fmt::Debug + 'static,
16363{
16364 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
16365 match err {
16366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16369 source: err.into(),
16370 }),
16371 }
16372 }
16373}
16374impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
16375 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
16376 match err {
16377 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
16378 }
16379 }
16380}
16381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
16382where
16383 R: Send + Sync + std::fmt::Debug + 'static,
16384{
16385 fn from(
16386 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
16387 ) -> Self {
16388 match err {
16389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16392 source: err.into(),
16393 }),
16394 }
16395 }
16396}
16397impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
16398 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
16399 match err {
16400 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16401 }
16402 }
16403}
16404impl<R>
16405 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
16406 for Error
16407where
16408 R: Send + Sync + std::fmt::Debug + 'static,
16409{
16410 fn from(
16411 err: ::aws_smithy_runtime_api::client::result::SdkError<
16412 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
16413 R,
16414 >,
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_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
16426 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
16427 match err {
16428 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
16429 }
16430 }
16431}
16432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
16433 for Error
16434where
16435 R: Send + Sync + std::fmt::Debug + 'static,
16436{
16437 fn from(
16438 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
16439 ) -> Self {
16440 match err {
16441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16444 source: err.into(),
16445 }),
16446 }
16447 }
16448}
16449impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
16450 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
16451 match err {
16452 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
16453 }
16454 }
16455}
16456impl<R>
16457 From<
16458 ::aws_smithy_runtime_api::client::result::SdkError<
16459 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16460 R,
16461 >,
16462 > for Error
16463where
16464 R: Send + Sync + std::fmt::Debug + 'static,
16465{
16466 fn from(
16467 err: ::aws_smithy_runtime_api::client::result::SdkError<
16468 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16469 R,
16470 >,
16471 ) -> Self {
16472 match err {
16473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16476 source: err.into(),
16477 }),
16478 }
16479 }
16480}
16481impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
16482 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
16483 match err {
16484 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
16485 }
16486 }
16487}
16488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
16489 for Error
16490where
16491 R: Send + Sync + std::fmt::Debug + 'static,
16492{
16493 fn from(
16494 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
16495 ) -> Self {
16496 match err {
16497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16500 source: err.into(),
16501 }),
16502 }
16503 }
16504}
16505impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
16506 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
16507 match err {
16508 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16509 }
16510 }
16511}
16512impl<R>
16513 From<
16514 ::aws_smithy_runtime_api::client::result::SdkError<
16515 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16516 R,
16517 >,
16518 > for Error
16519where
16520 R: Send + Sync + std::fmt::Debug + 'static,
16521{
16522 fn from(
16523 err: ::aws_smithy_runtime_api::client::result::SdkError<
16524 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16525 R,
16526 >,
16527 ) -> Self {
16528 match err {
16529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16532 source: err.into(),
16533 }),
16534 }
16535 }
16536}
16537impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
16538 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
16539 match err {
16540 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
16541 }
16542 }
16543}
16544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
16545 for Error
16546where
16547 R: Send + Sync + std::fmt::Debug + 'static,
16548{
16549 fn from(
16550 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
16551 ) -> Self {
16552 match err {
16553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16556 source: err.into(),
16557 }),
16558 }
16559 }
16560}
16561impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
16562 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
16563 match err {
16564 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
16565 }
16566 }
16567}
16568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
16569where
16570 R: Send + Sync + std::fmt::Debug + 'static,
16571{
16572 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
16573 match err {
16574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16577 source: err.into(),
16578 }),
16579 }
16580 }
16581}
16582impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
16583 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
16584 match err {
16585 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
16586 }
16587 }
16588}
16589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
16590 for Error
16591where
16592 R: Send + Sync + std::fmt::Debug + 'static,
16593{
16594 fn from(
16595 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
16596 ) -> Self {
16597 match err {
16598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16601 source: err.into(),
16602 }),
16603 }
16604 }
16605}
16606impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
16607 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
16608 match err {
16609 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16610 }
16611 }
16612}
16613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
16614where
16615 R: Send + Sync + std::fmt::Debug + 'static,
16616{
16617 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
16618 match err {
16619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16622 source: err.into(),
16623 }),
16624 }
16625 }
16626}
16627impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
16628 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
16629 match err {
16630 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
16631 }
16632 }
16633}
16634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
16635 for Error
16636where
16637 R: Send + Sync + std::fmt::Debug + 'static,
16638{
16639 fn from(
16640 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
16641 ) -> Self {
16642 match err {
16643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16646 source: err.into(),
16647 }),
16648 }
16649 }
16650}
16651impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
16652 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
16653 match err {
16654 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16655 }
16656 }
16657}
16658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
16659where
16660 R: Send + Sync + std::fmt::Debug + 'static,
16661{
16662 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
16663 match err {
16664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16667 source: err.into(),
16668 }),
16669 }
16670 }
16671}
16672impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
16673 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
16674 match err {
16675 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16676 }
16677 }
16678}
16679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
16680where
16681 R: Send + Sync + std::fmt::Debug + 'static,
16682{
16683 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
16684 match err {
16685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16688 source: err.into(),
16689 }),
16690 }
16691 }
16692}
16693impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
16694 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
16695 match err {
16696 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16697 }
16698 }
16699}
16700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
16701 for Error
16702where
16703 R: Send + Sync + std::fmt::Debug + 'static,
16704{
16705 fn from(
16706 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
16707 ) -> Self {
16708 match err {
16709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16712 source: err.into(),
16713 }),
16714 }
16715 }
16716}
16717impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
16718 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
16719 match err {
16720 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16721 }
16722 }
16723}
16724impl<R>
16725 From<
16726 ::aws_smithy_runtime_api::client::result::SdkError<
16727 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16728 R,
16729 >,
16730 > for Error
16731where
16732 R: Send + Sync + std::fmt::Debug + 'static,
16733{
16734 fn from(
16735 err: ::aws_smithy_runtime_api::client::result::SdkError<
16736 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16737 R,
16738 >,
16739 ) -> Self {
16740 match err {
16741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16744 source: err.into(),
16745 }),
16746 }
16747 }
16748}
16749impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
16750 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
16751 match err {
16752 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
16753 Error::Unhandled(inner)
16754 }
16755 }
16756 }
16757}
16758impl<R>
16759 From<
16760 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
16761 > for Error
16762where
16763 R: Send + Sync + std::fmt::Debug + 'static,
16764{
16765 fn from(
16766 err: ::aws_smithy_runtime_api::client::result::SdkError<
16767 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
16768 R,
16769 >,
16770 ) -> Self {
16771 match err {
16772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16775 source: err.into(),
16776 }),
16777 }
16778 }
16779}
16780impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
16781 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
16782 match err {
16783 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16784 }
16785 }
16786}
16787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
16788 for Error
16789where
16790 R: Send + Sync + std::fmt::Debug + 'static,
16791{
16792 fn from(
16793 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
16794 ) -> Self {
16795 match err {
16796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16799 source: err.into(),
16800 }),
16801 }
16802 }
16803}
16804impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
16805 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
16806 match err {
16807 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16808 }
16809 }
16810}
16811impl<R>
16812 From<
16813 ::aws_smithy_runtime_api::client::result::SdkError<
16814 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16815 R,
16816 >,
16817 > for Error
16818where
16819 R: Send + Sync + std::fmt::Debug + 'static,
16820{
16821 fn from(
16822 err: ::aws_smithy_runtime_api::client::result::SdkError<
16823 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16824 R,
16825 >,
16826 ) -> Self {
16827 match err {
16828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16831 source: err.into(),
16832 }),
16833 }
16834 }
16835}
16836impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
16837 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
16838 match err {
16839 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
16840 Error::Unhandled(inner)
16841 }
16842 }
16843 }
16844}
16845impl<R>
16846 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
16847 for Error
16848where
16849 R: Send + Sync + std::fmt::Debug + 'static,
16850{
16851 fn from(
16852 err: ::aws_smithy_runtime_api::client::result::SdkError<
16853 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
16854 R,
16855 >,
16856 ) -> Self {
16857 match err {
16858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16861 source: err.into(),
16862 }),
16863 }
16864 }
16865}
16866impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
16867 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
16868 match err {
16869 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
16870 }
16871 }
16872}
16873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
16874 for Error
16875where
16876 R: Send + Sync + std::fmt::Debug + 'static,
16877{
16878 fn from(
16879 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
16880 ) -> Self {
16881 match err {
16882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16885 source: err.into(),
16886 }),
16887 }
16888 }
16889}
16890impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
16891 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
16892 match err {
16893 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
16894 }
16895 }
16896}
16897impl<R>
16898 From<
16899 ::aws_smithy_runtime_api::client::result::SdkError<
16900 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16901 R,
16902 >,
16903 > for Error
16904where
16905 R: Send + Sync + std::fmt::Debug + 'static,
16906{
16907 fn from(
16908 err: ::aws_smithy_runtime_api::client::result::SdkError<
16909 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16910 R,
16911 >,
16912 ) -> Self {
16913 match err {
16914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16917 source: err.into(),
16918 }),
16919 }
16920 }
16921}
16922impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
16923 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
16924 match err {
16925 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16926 }
16927 }
16928}
16929impl<R>
16930 From<
16931 ::aws_smithy_runtime_api::client::result::SdkError<
16932 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16933 R,
16934 >,
16935 > for Error
16936where
16937 R: Send + Sync + std::fmt::Debug + 'static,
16938{
16939 fn from(
16940 err: ::aws_smithy_runtime_api::client::result::SdkError<
16941 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16942 R,
16943 >,
16944 ) -> Self {
16945 match err {
16946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16949 source: err.into(),
16950 }),
16951 }
16952 }
16953}
16954impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
16955 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
16956 match err {
16957 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
16958 }
16959 }
16960}
16961impl<R>
16962 From<
16963 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
16964 > for Error
16965where
16966 R: Send + Sync + std::fmt::Debug + 'static,
16967{
16968 fn from(
16969 err: ::aws_smithy_runtime_api::client::result::SdkError<
16970 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
16971 R,
16972 >,
16973 ) -> Self {
16974 match err {
16975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16978 source: err.into(),
16979 }),
16980 }
16981 }
16982}
16983impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
16984 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
16985 match err {
16986 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16987 }
16988 }
16989}
16990impl<R>
16991 From<
16992 ::aws_smithy_runtime_api::client::result::SdkError<
16993 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
16994 R,
16995 >,
16996 > for Error
16997where
16998 R: Send + Sync + std::fmt::Debug + 'static,
16999{
17000 fn from(
17001 err: ::aws_smithy_runtime_api::client::result::SdkError<
17002 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
17003 R,
17004 >,
17005 ) -> Self {
17006 match err {
17007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17010 source: err.into(),
17011 }),
17012 }
17013 }
17014}
17015impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
17016 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
17017 match err {
17018 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
17019 Error::Unhandled(inner)
17020 }
17021 }
17022 }
17023}
17024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
17025 for Error
17026where
17027 R: Send + Sync + std::fmt::Debug + 'static,
17028{
17029 fn from(
17030 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
17031 ) -> Self {
17032 match err {
17033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17036 source: err.into(),
17037 }),
17038 }
17039 }
17040}
17041impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
17042 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
17043 match err {
17044 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
17045 }
17046 }
17047}
17048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
17049where
17050 R: Send + Sync + std::fmt::Debug + 'static,
17051{
17052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
17053 match err {
17054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17057 source: err.into(),
17058 }),
17059 }
17060 }
17061}
17062impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
17063 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
17064 match err {
17065 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
17066 }
17067 }
17068}
17069impl<R>
17070 From<
17071 ::aws_smithy_runtime_api::client::result::SdkError<
17072 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
17073 R,
17074 >,
17075 > for Error
17076where
17077 R: Send + Sync + std::fmt::Debug + 'static,
17078{
17079 fn from(
17080 err: ::aws_smithy_runtime_api::client::result::SdkError<
17081 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
17082 R,
17083 >,
17084 ) -> Self {
17085 match err {
17086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17089 source: err.into(),
17090 }),
17091 }
17092 }
17093}
17094impl From<crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError> for Error {
17095 fn from(err: crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError) -> Self {
17096 match err {
17097 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
17098 }
17099 }
17100}
17101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
17102where
17103 R: Send + Sync + std::fmt::Debug + 'static,
17104{
17105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
17106 match err {
17107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17110 source: err.into(),
17111 }),
17112 }
17113 }
17114}
17115impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
17116 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
17117 match err {
17118 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
17119 }
17120 }
17121}
17122impl<R>
17123 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
17124 for Error
17125where
17126 R: Send + Sync + std::fmt::Debug + 'static,
17127{
17128 fn from(
17129 err: ::aws_smithy_runtime_api::client::result::SdkError<
17130 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
17131 R,
17132 >,
17133 ) -> 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_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
17144 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
17145 match err {
17146 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
17147 }
17148 }
17149}
17150impl<R>
17151 From<
17152 ::aws_smithy_runtime_api::client::result::SdkError<
17153 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
17154 R,
17155 >,
17156 > for Error
17157where
17158 R: Send + Sync + std::fmt::Debug + 'static,
17159{
17160 fn from(
17161 err: ::aws_smithy_runtime_api::client::result::SdkError<
17162 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
17163 R,
17164 >,
17165 ) -> Self {
17166 match err {
17167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17170 source: err.into(),
17171 }),
17172 }
17173 }
17174}
17175impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
17176 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
17177 match err {
17178 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
17179 Error::Unhandled(inner)
17180 }
17181 }
17182 }
17183}
17184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
17185 for Error
17186where
17187 R: Send + Sync + std::fmt::Debug + 'static,
17188{
17189 fn from(
17190 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
17191 ) -> Self {
17192 match err {
17193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17196 source: err.into(),
17197 }),
17198 }
17199 }
17200}
17201impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
17202 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
17203 match err {
17204 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
17205 }
17206 }
17207}
17208impl<R>
17209 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
17210 for Error
17211where
17212 R: Send + Sync + std::fmt::Debug + 'static,
17213{
17214 fn from(
17215 err: ::aws_smithy_runtime_api::client::result::SdkError<
17216 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
17217 R,
17218 >,
17219 ) -> Self {
17220 match err {
17221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17224 source: err.into(),
17225 }),
17226 }
17227 }
17228}
17229impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
17230 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
17231 match err {
17232 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
17233 }
17234 }
17235}
17236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
17237where
17238 R: Send + Sync + std::fmt::Debug + 'static,
17239{
17240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
17241 match err {
17242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17245 source: err.into(),
17246 }),
17247 }
17248 }
17249}
17250impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
17251 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
17252 match err {
17253 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
17254 }
17255 }
17256}
17257impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
17258where
17259 R: Send + Sync + std::fmt::Debug + 'static,
17260{
17261 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
17262 match err {
17263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17266 source: err.into(),
17267 }),
17268 }
17269 }
17270}
17271impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
17272 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
17273 match err {
17274 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
17275 }
17276 }
17277}
17278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
17279 for Error
17280where
17281 R: Send + Sync + std::fmt::Debug + 'static,
17282{
17283 fn from(
17284 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
17285 ) -> Self {
17286 match err {
17287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17290 source: err.into(),
17291 }),
17292 }
17293 }
17294}
17295impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
17296 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
17297 match err {
17298 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
17299 }
17300 }
17301}
17302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
17303 for Error
17304where
17305 R: Send + Sync + std::fmt::Debug + 'static,
17306{
17307 fn from(
17308 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
17309 ) -> Self {
17310 match err {
17311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17314 source: err.into(),
17315 }),
17316 }
17317 }
17318}
17319impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
17320 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
17321 match err {
17322 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
17323 }
17324 }
17325}
17326impl<R>
17327 From<
17328 ::aws_smithy_runtime_api::client::result::SdkError<
17329 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError,
17330 R,
17331 >,
17332 > for Error
17333where
17334 R: Send + Sync + std::fmt::Debug + 'static,
17335{
17336 fn from(
17337 err: ::aws_smithy_runtime_api::client::result::SdkError<
17338 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError,
17339 R,
17340 >,
17341 ) -> Self {
17342 match err {
17343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17346 source: err.into(),
17347 }),
17348 }
17349 }
17350}
17351impl From<crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError> for Error {
17352 fn from(err: crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError) -> Self {
17353 match err {
17354 crate::operation::modify_managed_resource_visibility::ModifyManagedResourceVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
17355 }
17356 }
17357}
17358impl<R>
17359 From<
17360 ::aws_smithy_runtime_api::client::result::SdkError<
17361 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17362 R,
17363 >,
17364 > for Error
17365where
17366 R: Send + Sync + std::fmt::Debug + 'static,
17367{
17368 fn from(
17369 err: ::aws_smithy_runtime_api::client::result::SdkError<
17370 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17371 R,
17372 >,
17373 ) -> Self {
17374 match err {
17375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17378 source: err.into(),
17379 }),
17380 }
17381 }
17382}
17383impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
17384 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
17385 match err {
17386 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17387 }
17388 }
17389}
17390impl<R>
17391 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
17392 for Error
17393where
17394 R: Send + Sync + std::fmt::Debug + 'static,
17395{
17396 fn from(
17397 err: ::aws_smithy_runtime_api::client::result::SdkError<
17398 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
17399 R,
17400 >,
17401 ) -> Self {
17402 match err {
17403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17406 source: err.into(),
17407 }),
17408 }
17409 }
17410}
17411impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
17412 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
17413 match err {
17414 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17415 }
17416 }
17417}
17418impl<R>
17419 From<
17420 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
17421 > for Error
17422where
17423 R: Send + Sync + std::fmt::Debug + 'static,
17424{
17425 fn from(
17426 err: ::aws_smithy_runtime_api::client::result::SdkError<
17427 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
17428 R,
17429 >,
17430 ) -> Self {
17431 match err {
17432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17435 source: err.into(),
17436 }),
17437 }
17438 }
17439}
17440impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
17441 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
17442 match err {
17443 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17444 }
17445 }
17446}
17447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
17448 for Error
17449where
17450 R: Send + Sync + std::fmt::Debug + 'static,
17451{
17452 fn from(
17453 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
17454 ) -> Self {
17455 match err {
17456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17459 source: err.into(),
17460 }),
17461 }
17462 }
17463}
17464impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
17465 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
17466 match err {
17467 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17468 }
17469 }
17470}
17471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
17472where
17473 R: Send + Sync + std::fmt::Debug + 'static,
17474{
17475 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
17476 match err {
17477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17480 source: err.into(),
17481 }),
17482 }
17483 }
17484}
17485impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
17486 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
17487 match err {
17488 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
17489 }
17490 }
17491}
17492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
17493 for Error
17494where
17495 R: Send + Sync + std::fmt::Debug + 'static,
17496{
17497 fn from(
17498 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
17499 ) -> Self {
17500 match err {
17501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17504 source: err.into(),
17505 }),
17506 }
17507 }
17508}
17509impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
17510 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
17511 match err {
17512 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
17513 }
17514 }
17515}
17516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
17517 for Error
17518where
17519 R: Send + Sync + std::fmt::Debug + 'static,
17520{
17521 fn from(
17522 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
17523 ) -> Self {
17524 match err {
17525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17528 source: err.into(),
17529 }),
17530 }
17531 }
17532}
17533impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
17534 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
17535 match err {
17536 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17537 }
17538 }
17539}
17540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
17541where
17542 R: Send + Sync + std::fmt::Debug + 'static,
17543{
17544 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
17545 match err {
17546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17549 source: err.into(),
17550 }),
17551 }
17552 }
17553}
17554impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
17555 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
17556 match err {
17557 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
17558 }
17559 }
17560}
17561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
17562 for Error
17563where
17564 R: Send + Sync + std::fmt::Debug + 'static,
17565{
17566 fn from(
17567 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
17568 ) -> Self {
17569 match err {
17570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17573 source: err.into(),
17574 }),
17575 }
17576 }
17577}
17578impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
17579 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
17580 match err {
17581 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
17582 }
17583 }
17584}
17585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
17586where
17587 R: Send + Sync + std::fmt::Debug + 'static,
17588{
17589 fn from(
17590 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
17591 ) -> Self {
17592 match err {
17593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17596 source: err.into(),
17597 }),
17598 }
17599 }
17600}
17601impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
17602 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
17603 match err {
17604 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17605 }
17606 }
17607}
17608impl<R>
17609 From<
17610 ::aws_smithy_runtime_api::client::result::SdkError<
17611 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17612 R,
17613 >,
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<
17620 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17621 R,
17622 >,
17623 ) -> Self {
17624 match err {
17625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17628 source: err.into(),
17629 }),
17630 }
17631 }
17632}
17633impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
17634 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
17635 match err {
17636 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
17637 Error::Unhandled(inner)
17638 }
17639 }
17640 }
17641}
17642impl<R>
17643 From<
17644 ::aws_smithy_runtime_api::client::result::SdkError<
17645 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17646 R,
17647 >,
17648 > for Error
17649where
17650 R: Send + Sync + std::fmt::Debug + 'static,
17651{
17652 fn from(
17653 err: ::aws_smithy_runtime_api::client::result::SdkError<
17654 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17655 R,
17656 >,
17657 ) -> Self {
17658 match err {
17659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17662 source: err.into(),
17663 }),
17664 }
17665 }
17666}
17667impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
17668 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
17669 match err {
17670 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
17671 }
17672 }
17673}
17674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
17675 for Error
17676where
17677 R: Send + Sync + std::fmt::Debug + 'static,
17678{
17679 fn from(
17680 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
17681 ) -> Self {
17682 match err {
17683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17686 source: err.into(),
17687 }),
17688 }
17689 }
17690}
17691impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
17692 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
17693 match err {
17694 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
17695 }
17696 }
17697}
17698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
17699where
17700 R: Send + Sync + std::fmt::Debug + 'static,
17701{
17702 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> Self {
17703 match err {
17704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17707 source: err.into(),
17708 }),
17709 }
17710 }
17711}
17712impl From<crate::operation::modify_transit_gateway::ModifyTransitGatewayError> for Error {
17713 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
17714 match err {
17715 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
17716 }
17717 }
17718}
17719impl<R>
17720 From<
17721 ::aws_smithy_runtime_api::client::result::SdkError<
17722 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17723 R,
17724 >,
17725 > for Error
17726where
17727 R: Send + Sync + std::fmt::Debug + 'static,
17728{
17729 fn from(
17730 err: ::aws_smithy_runtime_api::client::result::SdkError<
17731 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17732 R,
17733 >,
17734 ) -> Self {
17735 match err {
17736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17739 source: err.into(),
17740 }),
17741 }
17742 }
17743}
17744impl From<crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError> for Error {
17745 fn from(err: crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError) -> Self {
17746 match err {
17747 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError::Unhandled(inner) => {
17748 Error::Unhandled(inner)
17749 }
17750 }
17751 }
17752}
17753impl<R>
17754 From<
17755 ::aws_smithy_runtime_api::client::result::SdkError<
17756 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17757 R,
17758 >,
17759 > for Error
17760where
17761 R: Send + Sync + std::fmt::Debug + 'static,
17762{
17763 fn from(
17764 err: ::aws_smithy_runtime_api::client::result::SdkError<
17765 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17766 R,
17767 >,
17768 ) -> Self {
17769 match err {
17770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17773 source: err.into(),
17774 }),
17775 }
17776 }
17777}
17778impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
17779 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
17780 match err {
17781 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
17782 Error::Unhandled(inner)
17783 }
17784 }
17785 }
17786}
17787impl<R>
17788 From<
17789 ::aws_smithy_runtime_api::client::result::SdkError<
17790 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17791 R,
17792 >,
17793 > for Error
17794where
17795 R: Send + Sync + std::fmt::Debug + 'static,
17796{
17797 fn from(
17798 err: ::aws_smithy_runtime_api::client::result::SdkError<
17799 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17800 R,
17801 >,
17802 ) -> Self {
17803 match err {
17804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17807 source: err.into(),
17808 }),
17809 }
17810 }
17811}
17812impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
17813 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
17814 match err {
17815 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17816 Error::Unhandled(inner)
17817 }
17818 }
17819 }
17820}
17821impl<R>
17822 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
17823 for Error
17824where
17825 R: Send + Sync + std::fmt::Debug + 'static,
17826{
17827 fn from(
17828 err: ::aws_smithy_runtime_api::client::result::SdkError<
17829 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
17830 R,
17831 >,
17832 ) -> Self {
17833 match err {
17834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17837 source: err.into(),
17838 }),
17839 }
17840 }
17841}
17842impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
17843 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
17844 match err {
17845 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17846 }
17847 }
17848}
17849impl<R>
17850 From<
17851 ::aws_smithy_runtime_api::client::result::SdkError<
17852 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17853 R,
17854 >,
17855 > for Error
17856where
17857 R: Send + Sync + std::fmt::Debug + 'static,
17858{
17859 fn from(
17860 err: ::aws_smithy_runtime_api::client::result::SdkError<
17861 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17862 R,
17863 >,
17864 ) -> Self {
17865 match err {
17866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17869 source: err.into(),
17870 }),
17871 }
17872 }
17873}
17874impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
17875 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
17876 match err {
17877 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
17878 Error::Unhandled(inner)
17879 }
17880 }
17881 }
17882}
17883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
17884 for Error
17885where
17886 R: Send + Sync + std::fmt::Debug + 'static,
17887{
17888 fn from(
17889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
17890 ) -> Self {
17891 match err {
17892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17895 source: err.into(),
17896 }),
17897 }
17898 }
17899}
17900impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
17901 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
17902 match err {
17903 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
17904 }
17905 }
17906}
17907impl<R>
17908 From<
17909 ::aws_smithy_runtime_api::client::result::SdkError<
17910 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17911 R,
17912 >,
17913 > for Error
17914where
17915 R: Send + Sync + std::fmt::Debug + 'static,
17916{
17917 fn from(
17918 err: ::aws_smithy_runtime_api::client::result::SdkError<
17919 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17920 R,
17921 >,
17922 ) -> Self {
17923 match err {
17924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17927 source: err.into(),
17928 }),
17929 }
17930 }
17931}
17932impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
17933 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
17934 match err {
17935 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
17936 }
17937 }
17938}
17939impl<R>
17940 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
17941 for Error
17942where
17943 R: Send + Sync + std::fmt::Debug + 'static,
17944{
17945 fn from(
17946 err: ::aws_smithy_runtime_api::client::result::SdkError<
17947 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
17948 R,
17949 >,
17950 ) -> Self {
17951 match err {
17952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17955 source: err.into(),
17956 }),
17957 }
17958 }
17959}
17960impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
17961 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
17962 match err {
17963 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
17964 }
17965 }
17966}
17967impl<R>
17968 From<
17969 ::aws_smithy_runtime_api::client::result::SdkError<
17970 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17971 R,
17972 >,
17973 > for Error
17974where
17975 R: Send + Sync + std::fmt::Debug + 'static,
17976{
17977 fn from(
17978 err: ::aws_smithy_runtime_api::client::result::SdkError<
17979 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17980 R,
17981 >,
17982 ) -> Self {
17983 match err {
17984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17987 source: err.into(),
17988 }),
17989 }
17990 }
17991}
17992impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
17993 fn from(
17994 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17995 ) -> Self {
17996 match err {
17997 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
17998 }
17999 }
18000}
18001impl<R>
18002 From<
18003 ::aws_smithy_runtime_api::client::result::SdkError<
18004 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
18005 R,
18006 >,
18007 > for Error
18008where
18009 R: Send + Sync + std::fmt::Debug + 'static,
18010{
18011 fn from(
18012 err: ::aws_smithy_runtime_api::client::result::SdkError<
18013 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
18014 R,
18015 >,
18016 ) -> Self {
18017 match err {
18018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18021 source: err.into(),
18022 }),
18023 }
18024 }
18025}
18026impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
18027 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
18028 match err {
18029 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
18030 Error::Unhandled(inner)
18031 }
18032 }
18033 }
18034}
18035impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
18036where
18037 R: Send + Sync + std::fmt::Debug + 'static,
18038{
18039 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> Self {
18040 match err {
18041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18044 source: err.into(),
18045 }),
18046 }
18047 }
18048}
18049impl From<crate::operation::modify_volume::ModifyVolumeError> for Error {
18050 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
18051 match err {
18052 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
18053 }
18054 }
18055}
18056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
18057where
18058 R: Send + Sync + std::fmt::Debug + 'static,
18059{
18060 fn from(
18061 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
18062 ) -> Self {
18063 match err {
18064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18067 source: err.into(),
18068 }),
18069 }
18070 }
18071}
18072impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
18073 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
18074 match err {
18075 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18076 }
18077 }
18078}
18079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
18080where
18081 R: Send + Sync + std::fmt::Debug + 'static,
18082{
18083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
18084 match err {
18085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18088 source: err.into(),
18089 }),
18090 }
18091 }
18092}
18093impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
18094 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
18095 match err {
18096 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18097 }
18098 }
18099}
18100impl<R>
18101 From<
18102 ::aws_smithy_runtime_api::client::result::SdkError<
18103 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
18104 R,
18105 >,
18106 > for Error
18107where
18108 R: Send + Sync + std::fmt::Debug + 'static,
18109{
18110 fn from(
18111 err: ::aws_smithy_runtime_api::client::result::SdkError<
18112 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
18113 R,
18114 >,
18115 ) -> Self {
18116 match err {
18117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18120 source: err.into(),
18121 }),
18122 }
18123 }
18124}
18125impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
18126 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
18127 match err {
18128 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
18129 Error::Unhandled(inner)
18130 }
18131 }
18132 }
18133}
18134impl<R>
18135 From<
18136 ::aws_smithy_runtime_api::client::result::SdkError<
18137 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
18138 R,
18139 >,
18140 > for Error
18141where
18142 R: Send + Sync + std::fmt::Debug + 'static,
18143{
18144 fn from(
18145 err: ::aws_smithy_runtime_api::client::result::SdkError<
18146 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
18147 R,
18148 >,
18149 ) -> Self {
18150 match err {
18151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18154 source: err.into(),
18155 }),
18156 }
18157 }
18158}
18159impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
18160 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
18161 match err {
18162 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
18163 Error::Unhandled(inner)
18164 }
18165 }
18166 }
18167}
18168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>>
18169 for Error
18170where
18171 R: Send + Sync + std::fmt::Debug + 'static,
18172{
18173 fn from(
18174 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>,
18175 ) -> Self {
18176 match err {
18177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18180 source: err.into(),
18181 }),
18182 }
18183 }
18184}
18185impl From<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError> for Error {
18186 fn from(err: crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError) -> Self {
18187 match err {
18188 crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
18189 }
18190 }
18191}
18192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
18193where
18194 R: Send + Sync + std::fmt::Debug + 'static,
18195{
18196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
18197 match err {
18198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18201 source: err.into(),
18202 }),
18203 }
18204 }
18205}
18206impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
18207 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
18208 match err {
18209 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
18210 }
18211 }
18212}
18213impl<R>
18214 From<
18215 ::aws_smithy_runtime_api::client::result::SdkError<
18216 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
18217 R,
18218 >,
18219 > for Error
18220where
18221 R: Send + Sync + std::fmt::Debug + 'static,
18222{
18223 fn from(
18224 err: ::aws_smithy_runtime_api::client::result::SdkError<
18225 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
18226 R,
18227 >,
18228 ) -> Self {
18229 match err {
18230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18233 source: err.into(),
18234 }),
18235 }
18236 }
18237}
18238impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
18239 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
18240 match err {
18241 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
18242 Error::Unhandled(inner)
18243 }
18244 }
18245 }
18246}
18247impl<R>
18248 From<
18249 ::aws_smithy_runtime_api::client::result::SdkError<
18250 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
18251 R,
18252 >,
18253 > for Error
18254where
18255 R: Send + Sync + std::fmt::Debug + 'static,
18256{
18257 fn from(
18258 err: ::aws_smithy_runtime_api::client::result::SdkError<
18259 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
18260 R,
18261 >,
18262 ) -> Self {
18263 match err {
18264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18267 source: err.into(),
18268 }),
18269 }
18270 }
18271}
18272impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
18273 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
18274 match err {
18275 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
18276 Error::Unhandled(inner)
18277 }
18278 }
18279 }
18280}
18281impl<R>
18282 From<
18283 ::aws_smithy_runtime_api::client::result::SdkError<
18284 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
18285 R,
18286 >,
18287 > for Error
18288where
18289 R: Send + Sync + std::fmt::Debug + 'static,
18290{
18291 fn from(
18292 err: ::aws_smithy_runtime_api::client::result::SdkError<
18293 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
18294 R,
18295 >,
18296 ) -> Self {
18297 match err {
18298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18301 source: err.into(),
18302 }),
18303 }
18304 }
18305}
18306impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
18307 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
18308 match err {
18309 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
18310 inner,
18311 ) => Error::Unhandled(inner),
18312 }
18313 }
18314}
18315impl<R>
18316 From<
18317 ::aws_smithy_runtime_api::client::result::SdkError<
18318 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
18319 R,
18320 >,
18321 > for Error
18322where
18323 R: Send + Sync + std::fmt::Debug + 'static,
18324{
18325 fn from(
18326 err: ::aws_smithy_runtime_api::client::result::SdkError<
18327 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
18328 R,
18329 >,
18330 ) -> Self {
18331 match err {
18332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18335 source: err.into(),
18336 }),
18337 }
18338 }
18339}
18340impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
18341 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
18342 match err {
18343 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
18344 Error::Unhandled(inner)
18345 }
18346 }
18347 }
18348}
18349impl<R>
18350 From<
18351 ::aws_smithy_runtime_api::client::result::SdkError<
18352 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18353 R,
18354 >,
18355 > for Error
18356where
18357 R: Send + Sync + std::fmt::Debug + 'static,
18358{
18359 fn from(
18360 err: ::aws_smithy_runtime_api::client::result::SdkError<
18361 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18362 R,
18363 >,
18364 ) -> Self {
18365 match err {
18366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18369 source: err.into(),
18370 }),
18371 }
18372 }
18373}
18374impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
18375 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
18376 match err {
18377 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
18378 Error::Unhandled(inner)
18379 }
18380 }
18381 }
18382}
18383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
18384where
18385 R: Send + Sync + std::fmt::Debug + 'static,
18386{
18387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
18388 match err {
18389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18392 source: err.into(),
18393 }),
18394 }
18395 }
18396}
18397impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
18398 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
18399 match err {
18400 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
18401 }
18402 }
18403}
18404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
18405where
18406 R: Send + Sync + std::fmt::Debug + 'static,
18407{
18408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
18409 match err {
18410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18413 source: err.into(),
18414 }),
18415 }
18416 }
18417}
18418impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
18419 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
18420 match err {
18421 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
18422 }
18423 }
18424}
18425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
18426 for Error
18427where
18428 R: Send + Sync + std::fmt::Debug + 'static,
18429{
18430 fn from(
18431 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
18432 ) -> Self {
18433 match err {
18434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18437 source: err.into(),
18438 }),
18439 }
18440 }
18441}
18442impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
18443 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
18444 match err {
18445 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18446 }
18447 }
18448}
18449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
18450 for Error
18451where
18452 R: Send + Sync + std::fmt::Debug + 'static,
18453{
18454 fn from(
18455 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
18456 ) -> Self {
18457 match err {
18458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18461 source: err.into(),
18462 }),
18463 }
18464 }
18465}
18466impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
18467 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
18468 match err {
18469 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
18470 }
18471 }
18472}
18473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
18474 for Error
18475where
18476 R: Send + Sync + std::fmt::Debug + 'static,
18477{
18478 fn from(
18479 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
18480 ) -> Self {
18481 match err {
18482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18485 source: err.into(),
18486 }),
18487 }
18488 }
18489}
18490impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
18491 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
18492 match err {
18493 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18494 }
18495 }
18496}
18497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
18498where
18499 R: Send + Sync + std::fmt::Debug + 'static,
18500{
18501 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
18502 match err {
18503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18506 source: err.into(),
18507 }),
18508 }
18509 }
18510}
18511impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
18512 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
18513 match err {
18514 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18515 }
18516 }
18517}
18518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
18519where
18520 R: Send + Sync + std::fmt::Debug + 'static,
18521{
18522 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
18523 match err {
18524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18527 source: err.into(),
18528 }),
18529 }
18530 }
18531}
18532impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
18533 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
18534 match err {
18535 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
18536 }
18537 }
18538}
18539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
18540where
18541 R: Send + Sync + std::fmt::Debug + 'static,
18542{
18543 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
18544 match err {
18545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18548 source: err.into(),
18549 }),
18550 }
18551 }
18552}
18553impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
18554 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
18555 match err {
18556 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
18557 }
18558 }
18559}
18560impl<R>
18561 From<
18562 ::aws_smithy_runtime_api::client::result::SdkError<
18563 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18564 R,
18565 >,
18566 > for Error
18567where
18568 R: Send + Sync + std::fmt::Debug + 'static,
18569{
18570 fn from(
18571 err: ::aws_smithy_runtime_api::client::result::SdkError<
18572 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18573 R,
18574 >,
18575 ) -> Self {
18576 match err {
18577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18580 source: err.into(),
18581 }),
18582 }
18583 }
18584}
18585impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
18586 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
18587 match err {
18588 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18589 }
18590 }
18591}
18592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
18593where
18594 R: Send + Sync + std::fmt::Debug + 'static,
18595{
18596 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
18597 match err {
18598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18601 source: err.into(),
18602 }),
18603 }
18604 }
18605}
18606impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
18607 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
18608 match err {
18609 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
18610 }
18611 }
18612}
18613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
18614where
18615 R: Send + Sync + std::fmt::Debug + 'static,
18616{
18617 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
18618 match err {
18619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18622 source: err.into(),
18623 }),
18624 }
18625 }
18626}
18627impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
18628 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
18629 match err {
18630 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
18631 }
18632 }
18633}
18634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
18635where
18636 R: Send + Sync + std::fmt::Debug + 'static,
18637{
18638 fn from(
18639 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
18640 ) -> Self {
18641 match err {
18642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18645 source: err.into(),
18646 }),
18647 }
18648 }
18649}
18650impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
18651 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
18652 match err {
18653 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18654 }
18655 }
18656}
18657impl<R>
18658 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
18659 for Error
18660where
18661 R: Send + Sync + std::fmt::Debug + 'static,
18662{
18663 fn from(
18664 err: ::aws_smithy_runtime_api::client::result::SdkError<
18665 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
18666 R,
18667 >,
18668 ) -> Self {
18669 match err {
18670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18673 source: err.into(),
18674 }),
18675 }
18676 }
18677}
18678impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
18679 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
18680 match err {
18681 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18682 }
18683 }
18684}
18685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
18686where
18687 R: Send + Sync + std::fmt::Debug + 'static,
18688{
18689 fn from(
18690 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
18691 ) -> Self {
18692 match err {
18693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18696 source: err.into(),
18697 }),
18698 }
18699 }
18700}
18701impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
18702 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
18703 match err {
18704 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
18705 }
18706 }
18707}
18708impl<R>
18709 From<
18710 ::aws_smithy_runtime_api::client::result::SdkError<
18711 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18712 R,
18713 >,
18714 > for Error
18715where
18716 R: Send + Sync + std::fmt::Debug + 'static,
18717{
18718 fn from(
18719 err: ::aws_smithy_runtime_api::client::result::SdkError<
18720 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18721 R,
18722 >,
18723 ) -> Self {
18724 match err {
18725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18728 source: err.into(),
18729 }),
18730 }
18731 }
18732}
18733impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
18734 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
18735 match err {
18736 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
18737 }
18738 }
18739}
18740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
18741 for Error
18742where
18743 R: Send + Sync + std::fmt::Debug + 'static,
18744{
18745 fn from(
18746 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
18747 ) -> Self {
18748 match err {
18749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18752 source: err.into(),
18753 }),
18754 }
18755 }
18756}
18757impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
18758 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
18759 match err {
18760 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
18761 }
18762 }
18763}
18764impl<R>
18765 From<
18766 ::aws_smithy_runtime_api::client::result::SdkError<
18767 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18768 R,
18769 >,
18770 > for Error
18771where
18772 R: Send + Sync + std::fmt::Debug + 'static,
18773{
18774 fn from(
18775 err: ::aws_smithy_runtime_api::client::result::SdkError<
18776 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18777 R,
18778 >,
18779 ) -> Self {
18780 match err {
18781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18784 source: err.into(),
18785 }),
18786 }
18787 }
18788}
18789impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
18790 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
18791 match err {
18792 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
18793 Error::Unhandled(inner)
18794 }
18795 }
18796 }
18797}
18798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
18799 for Error
18800where
18801 R: Send + Sync + std::fmt::Debug + 'static,
18802{
18803 fn from(
18804 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
18805 ) -> Self {
18806 match err {
18807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18810 source: err.into(),
18811 }),
18812 }
18813 }
18814}
18815impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
18816 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
18817 match err {
18818 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18819 }
18820 }
18821}
18822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
18823where
18824 R: Send + Sync + std::fmt::Debug + 'static,
18825{
18826 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
18827 match err {
18828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18831 source: err.into(),
18832 }),
18833 }
18834 }
18835}
18836impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
18837 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
18838 match err {
18839 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18840 }
18841 }
18842}
18843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
18844where
18845 R: Send + Sync + std::fmt::Debug + 'static,
18846{
18847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
18848 match err {
18849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18852 source: err.into(),
18853 }),
18854 }
18855 }
18856}
18857impl From<crate::operation::register_image::RegisterImageError> for Error {
18858 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
18859 match err {
18860 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
18861 }
18862 }
18863}
18864impl<R>
18865 From<
18866 ::aws_smithy_runtime_api::client::result::SdkError<
18867 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18868 R,
18869 >,
18870 > for Error
18871where
18872 R: Send + Sync + std::fmt::Debug + 'static,
18873{
18874 fn from(
18875 err: ::aws_smithy_runtime_api::client::result::SdkError<
18876 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18877 R,
18878 >,
18879 ) -> Self {
18880 match err {
18881 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18882 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18883 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18884 source: err.into(),
18885 }),
18886 }
18887 }
18888}
18889impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
18890 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
18891 match err {
18892 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
18893 Error::Unhandled(inner)
18894 }
18895 }
18896 }
18897}
18898impl<R>
18899 From<
18900 ::aws_smithy_runtime_api::client::result::SdkError<
18901 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18902 R,
18903 >,
18904 > for Error
18905where
18906 R: Send + Sync + std::fmt::Debug + 'static,
18907{
18908 fn from(
18909 err: ::aws_smithy_runtime_api::client::result::SdkError<
18910 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18911 R,
18912 >,
18913 ) -> Self {
18914 match err {
18915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18918 source: err.into(),
18919 }),
18920 }
18921 }
18922}
18923impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
18924 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
18925 match err {
18926 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
18927 inner,
18928 ) => Error::Unhandled(inner),
18929 }
18930 }
18931}
18932impl<R>
18933 From<
18934 ::aws_smithy_runtime_api::client::result::SdkError<
18935 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18936 R,
18937 >,
18938 > for Error
18939where
18940 R: Send + Sync + std::fmt::Debug + 'static,
18941{
18942 fn from(
18943 err: ::aws_smithy_runtime_api::client::result::SdkError<
18944 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18945 R,
18946 >,
18947 ) -> Self {
18948 match err {
18949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18952 source: err.into(),
18953 }),
18954 }
18955 }
18956}
18957impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
18958 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
18959 match err {
18960 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
18961 inner,
18962 ) => Error::Unhandled(inner),
18963 }
18964 }
18965}
18966impl<R>
18967 From<
18968 ::aws_smithy_runtime_api::client::result::SdkError<
18969 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
18970 R,
18971 >,
18972 > for Error
18973where
18974 R: Send + Sync + std::fmt::Debug + 'static,
18975{
18976 fn from(
18977 err: ::aws_smithy_runtime_api::client::result::SdkError<
18978 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
18979 R,
18980 >,
18981 ) -> Self {
18982 match err {
18983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18986 source: err.into(),
18987 }),
18988 }
18989 }
18990}
18991impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
18992 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
18993 match err {
18994 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
18995 Error::Unhandled(inner)
18996 }
18997 }
18998 }
18999}
19000impl<R>
19001 From<
19002 ::aws_smithy_runtime_api::client::result::SdkError<
19003 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError,
19004 R,
19005 >,
19006 > for Error
19007where
19008 R: Send + Sync + std::fmt::Debug + 'static,
19009{
19010 fn from(
19011 err: ::aws_smithy_runtime_api::client::result::SdkError<
19012 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError,
19013 R,
19014 >,
19015 ) -> Self {
19016 match err {
19017 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19018 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19019 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19020 source: err.into(),
19021 }),
19022 }
19023 }
19024}
19025impl From<crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError> for Error {
19026 fn from(err: crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError) -> Self {
19027 match err {
19028 crate::operation::reject_transit_gateway_client_vpn_attachment::RejectTransitGatewayClientVpnAttachmentError::Unhandled(inner) => {
19029 Error::Unhandled(inner)
19030 }
19031 }
19032 }
19033}
19034impl<R>
19035 From<
19036 ::aws_smithy_runtime_api::client::result::SdkError<
19037 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19038 R,
19039 >,
19040 > for Error
19041where
19042 R: Send + Sync + std::fmt::Debug + 'static,
19043{
19044 fn from(
19045 err: ::aws_smithy_runtime_api::client::result::SdkError<
19046 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19047 R,
19048 >,
19049 ) -> Self {
19050 match err {
19051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19054 source: err.into(),
19055 }),
19056 }
19057 }
19058}
19059impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
19060 fn from(
19061 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
19062 ) -> Self {
19063 match err {
19064 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
19065 }
19066 }
19067}
19068impl<R>
19069 From<
19070 ::aws_smithy_runtime_api::client::result::SdkError<
19071 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
19072 R,
19073 >,
19074 > for Error
19075where
19076 R: Send + Sync + std::fmt::Debug + 'static,
19077{
19078 fn from(
19079 err: ::aws_smithy_runtime_api::client::result::SdkError<
19080 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
19081 R,
19082 >,
19083 ) -> Self {
19084 match err {
19085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19088 source: err.into(),
19089 }),
19090 }
19091 }
19092}
19093impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
19094 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
19095 match err {
19096 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
19097 Error::Unhandled(inner)
19098 }
19099 }
19100 }
19101}
19102impl<R>
19103 From<
19104 ::aws_smithy_runtime_api::client::result::SdkError<
19105 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
19106 R,
19107 >,
19108 > for Error
19109where
19110 R: Send + Sync + std::fmt::Debug + 'static,
19111{
19112 fn from(
19113 err: ::aws_smithy_runtime_api::client::result::SdkError<
19114 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
19115 R,
19116 >,
19117 ) -> Self {
19118 match err {
19119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19122 source: err.into(),
19123 }),
19124 }
19125 }
19126}
19127impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
19128 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
19129 match err {
19130 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
19131 Error::Unhandled(inner)
19132 }
19133 }
19134 }
19135}
19136impl<R>
19137 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
19138 for Error
19139where
19140 R: Send + Sync + std::fmt::Debug + 'static,
19141{
19142 fn from(
19143 err: ::aws_smithy_runtime_api::client::result::SdkError<
19144 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
19145 R,
19146 >,
19147 ) -> Self {
19148 match err {
19149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19152 source: err.into(),
19153 }),
19154 }
19155 }
19156}
19157impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
19158 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
19159 match err {
19160 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19161 }
19162 }
19163}
19164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
19165 for Error
19166where
19167 R: Send + Sync + std::fmt::Debug + 'static,
19168{
19169 fn from(
19170 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
19171 ) -> Self {
19172 match err {
19173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19176 source: err.into(),
19177 }),
19178 }
19179 }
19180}
19181impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
19182 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
19183 match err {
19184 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
19185 }
19186 }
19187}
19188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
19189where
19190 R: Send + Sync + std::fmt::Debug + 'static,
19191{
19192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
19193 match err {
19194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19197 source: err.into(),
19198 }),
19199 }
19200 }
19201}
19202impl From<crate::operation::release_address::ReleaseAddressError> for Error {
19203 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
19204 match err {
19205 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
19206 }
19207 }
19208}
19209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
19210where
19211 R: Send + Sync + std::fmt::Debug + 'static,
19212{
19213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
19214 match err {
19215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19218 source: err.into(),
19219 }),
19220 }
19221 }
19222}
19223impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
19224 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
19225 match err {
19226 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
19227 }
19228 }
19229}
19230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
19231 for Error
19232where
19233 R: Send + Sync + std::fmt::Debug + 'static,
19234{
19235 fn from(
19236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
19237 ) -> Self {
19238 match err {
19239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19242 source: err.into(),
19243 }),
19244 }
19245 }
19246}
19247impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
19248 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
19249 match err {
19250 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
19251 }
19252 }
19253}
19254impl<R>
19255 From<
19256 ::aws_smithy_runtime_api::client::result::SdkError<
19257 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
19258 R,
19259 >,
19260 > for Error
19261where
19262 R: Send + Sync + std::fmt::Debug + 'static,
19263{
19264 fn from(
19265 err: ::aws_smithy_runtime_api::client::result::SdkError<
19266 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
19267 R,
19268 >,
19269 ) -> Self {
19270 match err {
19271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19274 source: err.into(),
19275 }),
19276 }
19277 }
19278}
19279impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
19280 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
19281 match err {
19282 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
19283 Error::Unhandled(inner)
19284 }
19285 }
19286 }
19287}
19288impl<R>
19289 From<
19290 ::aws_smithy_runtime_api::client::result::SdkError<
19291 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
19292 R,
19293 >,
19294 > for Error
19295where
19296 R: Send + Sync + std::fmt::Debug + 'static,
19297{
19298 fn from(
19299 err: ::aws_smithy_runtime_api::client::result::SdkError<
19300 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
19301 R,
19302 >,
19303 ) -> Self {
19304 match err {
19305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19308 source: err.into(),
19309 }),
19310 }
19311 }
19312}
19313impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
19314 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
19315 match err {
19316 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
19317 inner,
19318 ) => Error::Unhandled(inner),
19319 }
19320 }
19321}
19322impl<R>
19323 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
19324 for Error
19325where
19326 R: Send + Sync + std::fmt::Debug + 'static,
19327{
19328 fn from(
19329 err: ::aws_smithy_runtime_api::client::result::SdkError<
19330 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
19331 R,
19332 >,
19333 ) -> Self {
19334 match err {
19335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19338 source: err.into(),
19339 }),
19340 }
19341 }
19342}
19343impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
19344 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
19345 match err {
19346 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
19347 }
19348 }
19349}
19350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
19351 for Error
19352where
19353 R: Send + Sync + std::fmt::Debug + 'static,
19354{
19355 fn from(
19356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
19357 ) -> Self {
19358 match err {
19359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19362 source: err.into(),
19363 }),
19364 }
19365 }
19366}
19367impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
19368 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
19369 match err {
19370 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
19371 }
19372 }
19373}
19374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
19375where
19376 R: Send + Sync + std::fmt::Debug + 'static,
19377{
19378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
19379 match err {
19380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19383 source: err.into(),
19384 }),
19385 }
19386 }
19387}
19388impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
19389 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
19390 match err {
19391 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
19392 }
19393 }
19394}
19395impl<R>
19396 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
19397 for Error
19398where
19399 R: Send + Sync + std::fmt::Debug + 'static,
19400{
19401 fn from(
19402 err: ::aws_smithy_runtime_api::client::result::SdkError<
19403 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
19404 R,
19405 >,
19406 ) -> Self {
19407 match err {
19408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19411 source: err.into(),
19412 }),
19413 }
19414 }
19415}
19416impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
19417 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
19418 match err {
19419 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
19420 }
19421 }
19422}
19423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
19424 for Error
19425where
19426 R: Send + Sync + std::fmt::Debug + 'static,
19427{
19428 fn from(
19429 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
19430 ) -> 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_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
19441 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
19442 match err {
19443 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
19444 }
19445 }
19446}
19447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
19448where
19449 R: Send + Sync + std::fmt::Debug + 'static,
19450{
19451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
19452 match err {
19453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19456 source: err.into(),
19457 }),
19458 }
19459 }
19460}
19461impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
19462 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
19463 match err {
19464 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
19465 }
19466 }
19467}
19468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
19469where
19470 R: Send + Sync + std::fmt::Debug + 'static,
19471{
19472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
19473 match err {
19474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19477 source: err.into(),
19478 }),
19479 }
19480 }
19481}
19482impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
19483 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
19484 match err {
19485 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
19486 }
19487 }
19488}
19489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
19490where
19491 R: Send + Sync + std::fmt::Debug + 'static,
19492{
19493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> Self {
19494 match err {
19495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19498 source: err.into(),
19499 }),
19500 }
19501 }
19502}
19503impl From<crate::operation::request_spot_fleet::RequestSpotFleetError> for Error {
19504 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
19505 match err {
19506 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
19507 }
19508 }
19509}
19510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>> for Error
19511where
19512 R: Send + Sync + std::fmt::Debug + 'static,
19513{
19514 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>) -> Self {
19515 match err {
19516 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19517 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19518 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19519 source: err.into(),
19520 }),
19521 }
19522 }
19523}
19524impl From<crate::operation::request_spot_instances::RequestSpotInstancesError> for Error {
19525 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
19526 match err {
19527 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19528 }
19529 }
19530}
19531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
19532where
19533 R: Send + Sync + std::fmt::Debug + 'static,
19534{
19535 fn from(
19536 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
19537 ) -> Self {
19538 match err {
19539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19542 source: err.into(),
19543 }),
19544 }
19545 }
19546}
19547impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
19548 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
19549 match err {
19550 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19551 }
19552 }
19553}
19554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
19555 for Error
19556where
19557 R: Send + Sync + std::fmt::Debug + 'static,
19558{
19559 fn from(
19560 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
19561 ) -> Self {
19562 match err {
19563 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19564 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19565 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19566 source: err.into(),
19567 }),
19568 }
19569 }
19570}
19571impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
19572 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
19573 match err {
19574 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
19575 }
19576 }
19577}
19578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
19579 for Error
19580where
19581 R: Send + Sync + std::fmt::Debug + 'static,
19582{
19583 fn from(
19584 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
19585 ) -> Self {
19586 match err {
19587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19590 source: err.into(),
19591 }),
19592 }
19593 }
19594}
19595impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
19596 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
19597 match err {
19598 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19599 }
19600 }
19601}
19602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
19603where
19604 R: Send + Sync + std::fmt::Debug + 'static,
19605{
19606 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
19607 match err {
19608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19611 source: err.into(),
19612 }),
19613 }
19614 }
19615}
19616impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
19617 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
19618 match err {
19619 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19620 }
19621 }
19622}
19623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
19624where
19625 R: Send + Sync + std::fmt::Debug + 'static,
19626{
19627 fn from(
19628 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
19629 ) -> Self {
19630 match err {
19631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19634 source: err.into(),
19635 }),
19636 }
19637 }
19638}
19639impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
19640 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
19641 match err {
19642 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19643 }
19644 }
19645}
19646impl<R>
19647 From<
19648 ::aws_smithy_runtime_api::client::result::SdkError<
19649 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19650 R,
19651 >,
19652 > for Error
19653where
19654 R: Send + Sync + std::fmt::Debug + 'static,
19655{
19656 fn from(
19657 err: ::aws_smithy_runtime_api::client::result::SdkError<
19658 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19659 R,
19660 >,
19661 ) -> Self {
19662 match err {
19663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19666 source: err.into(),
19667 }),
19668 }
19669 }
19670}
19671impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
19672 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
19673 match err {
19674 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19675 }
19676 }
19677}
19678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
19679where
19680 R: Send + Sync + std::fmt::Debug + 'static,
19681{
19682 fn from(
19683 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
19684 ) -> Self {
19685 match err {
19686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19689 source: err.into(),
19690 }),
19691 }
19692 }
19693}
19694impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
19695 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
19696 match err {
19697 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19698 }
19699 }
19700}
19701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
19702 for Error
19703where
19704 R: Send + Sync + std::fmt::Debug + 'static,
19705{
19706 fn from(
19707 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
19708 ) -> Self {
19709 match err {
19710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19713 source: err.into(),
19714 }),
19715 }
19716 }
19717}
19718impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
19719 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
19720 match err {
19721 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
19722 }
19723 }
19724}
19725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
19726 for Error
19727where
19728 R: Send + Sync + std::fmt::Debug + 'static,
19729{
19730 fn from(
19731 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
19732 ) -> Self {
19733 match err {
19734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19737 source: err.into(),
19738 }),
19739 }
19740 }
19741}
19742impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
19743 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
19744 match err {
19745 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19746 }
19747 }
19748}
19749impl<R>
19750 From<
19751 ::aws_smithy_runtime_api::client::result::SdkError<
19752 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19753 R,
19754 >,
19755 > for Error
19756where
19757 R: Send + Sync + std::fmt::Debug + 'static,
19758{
19759 fn from(
19760 err: ::aws_smithy_runtime_api::client::result::SdkError<
19761 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19762 R,
19763 >,
19764 ) -> Self {
19765 match err {
19766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19769 source: err.into(),
19770 }),
19771 }
19772 }
19773}
19774impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
19775 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
19776 match err {
19777 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
19778 }
19779 }
19780}
19781impl<R>
19782 From<
19783 ::aws_smithy_runtime_api::client::result::SdkError<
19784 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19785 R,
19786 >,
19787 > for Error
19788where
19789 R: Send + Sync + std::fmt::Debug + 'static,
19790{
19791 fn from(
19792 err: ::aws_smithy_runtime_api::client::result::SdkError<
19793 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19794 R,
19795 >,
19796 ) -> Self {
19797 match err {
19798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19801 source: err.into(),
19802 }),
19803 }
19804 }
19805}
19806impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
19807 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
19808 match err {
19809 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19810 }
19811 }
19812}
19813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
19814where
19815 R: Send + Sync + std::fmt::Debug + 'static,
19816{
19817 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
19818 match err {
19819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19822 source: err.into(),
19823 }),
19824 }
19825 }
19826}
19827impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
19828 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
19829 match err {
19830 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
19831 }
19832 }
19833}
19834impl<R>
19835 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError, R>>
19836 for Error
19837where
19838 R: Send + Sync + std::fmt::Debug + 'static,
19839{
19840 fn from(
19841 err: ::aws_smithy_runtime_api::client::result::SdkError<
19842 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError,
19843 R,
19844 >,
19845 ) -> Self {
19846 match err {
19847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19850 source: err.into(),
19851 }),
19852 }
19853 }
19854}
19855impl From<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError> for Error {
19856 fn from(err: crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError) -> Self {
19857 match err {
19858 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19859 }
19860 }
19861}
19862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
19863 for Error
19864where
19865 R: Send + Sync + std::fmt::Debug + 'static,
19866{
19867 fn from(
19868 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
19869 ) -> 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::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
19880 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
19881 match err {
19882 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
19883 }
19884 }
19885}
19886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
19887 for Error
19888where
19889 R: Send + Sync + std::fmt::Debug + 'static,
19890{
19891 fn from(
19892 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
19893 ) -> Self {
19894 match err {
19895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19898 source: err.into(),
19899 }),
19900 }
19901 }
19902}
19903impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
19904 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
19905 match err {
19906 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
19907 }
19908 }
19909}
19910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
19911 for Error
19912where
19913 R: Send + Sync + std::fmt::Debug + 'static,
19914{
19915 fn from(
19916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
19917 ) -> Self {
19918 match err {
19919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19922 source: err.into(),
19923 }),
19924 }
19925 }
19926}
19927impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
19928 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
19929 match err {
19930 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
19931 }
19932 }
19933}
19934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
19935where
19936 R: Send + Sync + std::fmt::Debug + 'static,
19937{
19938 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> Self {
19939 match err {
19940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19943 source: err.into(),
19944 }),
19945 }
19946 }
19947}
19948impl From<crate::operation::run_instances::RunInstancesError> for Error {
19949 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
19950 match err {
19951 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19952 }
19953 }
19954}
19955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
19956where
19957 R: Send + Sync + std::fmt::Debug + 'static,
19958{
19959 fn from(
19960 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
19961 ) -> Self {
19962 match err {
19963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19966 source: err.into(),
19967 }),
19968 }
19969 }
19970}
19971impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
19972 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
19973 match err {
19974 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19975 }
19976 }
19977}
19978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
19979 for Error
19980where
19981 R: Send + Sync + std::fmt::Debug + 'static,
19982{
19983 fn from(
19984 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
19985 ) -> Self {
19986 match err {
19987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19990 source: err.into(),
19991 }),
19992 }
19993 }
19994}
19995impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
19996 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
19997 match err {
19998 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
19999 }
20000 }
20001}
20002impl<R>
20003 From<
20004 ::aws_smithy_runtime_api::client::result::SdkError<
20005 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
20006 R,
20007 >,
20008 > for Error
20009where
20010 R: Send + Sync + std::fmt::Debug + 'static,
20011{
20012 fn from(
20013 err: ::aws_smithy_runtime_api::client::result::SdkError<
20014 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
20015 R,
20016 >,
20017 ) -> Self {
20018 match err {
20019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20022 source: err.into(),
20023 }),
20024 }
20025 }
20026}
20027impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
20028 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
20029 match err {
20030 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
20031 Error::Unhandled(inner)
20032 }
20033 }
20034 }
20035}
20036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
20037 for Error
20038where
20039 R: Send + Sync + std::fmt::Debug + 'static,
20040{
20041 fn from(
20042 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
20043 ) -> Self {
20044 match err {
20045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20048 source: err.into(),
20049 }),
20050 }
20051 }
20052}
20053impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
20054 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
20055 match err {
20056 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
20057 }
20058 }
20059}
20060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
20061 for Error
20062where
20063 R: Send + Sync + std::fmt::Debug + 'static,
20064{
20065 fn from(
20066 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
20067 ) -> Self {
20068 match err {
20069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20072 source: err.into(),
20073 }),
20074 }
20075 }
20076}
20077impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
20078 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
20079 match err {
20080 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
20081 }
20082 }
20083}
20084impl<R>
20085 From<
20086 ::aws_smithy_runtime_api::client::result::SdkError<
20087 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
20088 R,
20089 >,
20090 > for Error
20091where
20092 R: Send + Sync + std::fmt::Debug + 'static,
20093{
20094 fn from(
20095 err: ::aws_smithy_runtime_api::client::result::SdkError<
20096 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
20097 R,
20098 >,
20099 ) -> Self {
20100 match err {
20101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20104 source: err.into(),
20105 }),
20106 }
20107 }
20108}
20109impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
20110 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
20111 match err {
20112 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
20113 }
20114 }
20115}
20116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
20117where
20118 R: Send + Sync + std::fmt::Debug + 'static,
20119{
20120 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
20121 match err {
20122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20125 source: err.into(),
20126 }),
20127 }
20128 }
20129}
20130impl From<crate::operation::start_instances::StartInstancesError> for Error {
20131 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
20132 match err {
20133 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20134 }
20135 }
20136}
20137impl<R>
20138 From<
20139 ::aws_smithy_runtime_api::client::result::SdkError<
20140 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
20141 R,
20142 >,
20143 > for Error
20144where
20145 R: Send + Sync + std::fmt::Debug + 'static,
20146{
20147 fn from(
20148 err: ::aws_smithy_runtime_api::client::result::SdkError<
20149 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
20150 R,
20151 >,
20152 ) -> Self {
20153 match err {
20154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20157 source: err.into(),
20158 }),
20159 }
20160 }
20161}
20162impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
20163 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
20164 match err {
20165 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
20166 Error::Unhandled(inner)
20167 }
20168 }
20169 }
20170}
20171impl<R>
20172 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
20173 for Error
20174where
20175 R: Send + Sync + std::fmt::Debug + 'static,
20176{
20177 fn from(
20178 err: ::aws_smithy_runtime_api::client::result::SdkError<
20179 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
20180 R,
20181 >,
20182 ) -> Self {
20183 match err {
20184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20187 source: err.into(),
20188 }),
20189 }
20190 }
20191}
20192impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
20193 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
20194 match err {
20195 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
20196 }
20197 }
20198}
20199impl<R>
20200 From<
20201 ::aws_smithy_runtime_api::client::result::SdkError<
20202 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
20203 R,
20204 >,
20205 > for Error
20206where
20207 R: Send + Sync + std::fmt::Debug + 'static,
20208{
20209 fn from(
20210 err: ::aws_smithy_runtime_api::client::result::SdkError<
20211 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
20212 R,
20213 >,
20214 ) -> Self {
20215 match err {
20216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20219 source: err.into(),
20220 }),
20221 }
20222 }
20223}
20224impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
20225 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
20226 match err {
20227 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
20228 inner,
20229 ) => Error::Unhandled(inner),
20230 }
20231 }
20232}
20233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
20234where
20235 R: Send + Sync + std::fmt::Debug + 'static,
20236{
20237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
20238 match err {
20239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20242 source: err.into(),
20243 }),
20244 }
20245 }
20246}
20247impl From<crate::operation::stop_instances::StopInstancesError> for Error {
20248 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
20249 match err {
20250 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20251 }
20252 }
20253}
20254impl<R>
20255 From<
20256 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
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::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
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::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
20277 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
20278 match err {
20279 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
20280 }
20281 }
20282}
20283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
20284where
20285 R: Send + Sync + std::fmt::Debug + 'static,
20286{
20287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> Self {
20288 match err {
20289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20292 source: err.into(),
20293 }),
20294 }
20295 }
20296}
20297impl From<crate::operation::terminate_instances::TerminateInstancesError> for Error {
20298 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
20299 match err {
20300 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20301 }
20302 }
20303}
20304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
20305where
20306 R: Send + Sync + std::fmt::Debug + 'static,
20307{
20308 fn from(
20309 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
20310 ) -> Self {
20311 match err {
20312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20315 source: err.into(),
20316 }),
20317 }
20318 }
20319}
20320impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
20321 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
20322 match err {
20323 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
20324 }
20325 }
20326}
20327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
20328 for Error
20329where
20330 R: Send + Sync + std::fmt::Debug + 'static,
20331{
20332 fn from(
20333 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
20334 ) -> Self {
20335 match err {
20336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20339 source: err.into(),
20340 }),
20341 }
20342 }
20343}
20344impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
20345 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
20346 match err {
20347 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
20348 }
20349 }
20350}
20351impl<R>
20352 From<
20353 ::aws_smithy_runtime_api::client::result::SdkError<
20354 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
20355 R,
20356 >,
20357 > for Error
20358where
20359 R: Send + Sync + std::fmt::Debug + 'static,
20360{
20361 fn from(
20362 err: ::aws_smithy_runtime_api::client::result::SdkError<
20363 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
20364 R,
20365 >,
20366 ) -> Self {
20367 match err {
20368 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20369 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20370 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20371 source: err.into(),
20372 }),
20373 }
20374 }
20375}
20376impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
20377 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
20378 match err {
20379 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
20380 Error::Unhandled(inner)
20381 }
20382 }
20383 }
20384}
20385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
20386where
20387 R: Send + Sync + std::fmt::Debug + 'static,
20388{
20389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
20390 match err {
20391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20394 source: err.into(),
20395 }),
20396 }
20397 }
20398}
20399impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
20400 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
20401 match err {
20402 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
20403 }
20404 }
20405}
20406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
20407where
20408 R: Send + Sync + std::fmt::Debug + 'static,
20409{
20410 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
20411 match err {
20412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20415 source: err.into(),
20416 }),
20417 }
20418 }
20419}
20420impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
20421 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
20422 match err {
20423 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20424 }
20425 }
20426}
20427impl<R>
20428 From<
20429 ::aws_smithy_runtime_api::client::result::SdkError<
20430 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError,
20431 R,
20432 >,
20433 > for Error
20434where
20435 R: Send + Sync + std::fmt::Debug + 'static,
20436{
20437 fn from(
20438 err: ::aws_smithy_runtime_api::client::result::SdkError<
20439 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError,
20440 R,
20441 >,
20442 ) -> Self {
20443 match err {
20444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20447 source: err.into(),
20448 }),
20449 }
20450 }
20451}
20452impl From<crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError> for Error {
20453 fn from(err: crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError) -> Self {
20454 match err {
20455 crate::operation::update_capacity_manager_monitored_tag_keys::UpdateCapacityManagerMonitoredTagKeysError::Unhandled(inner) => {
20456 Error::Unhandled(inner)
20457 }
20458 }
20459 }
20460}
20461impl<R>
20462 From<
20463 ::aws_smithy_runtime_api::client::result::SdkError<
20464 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20465 R,
20466 >,
20467 > for Error
20468where
20469 R: Send + Sync + std::fmt::Debug + 'static,
20470{
20471 fn from(
20472 err: ::aws_smithy_runtime_api::client::result::SdkError<
20473 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20474 R,
20475 >,
20476 ) -> Self {
20477 match err {
20478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20481 source: err.into(),
20482 }),
20483 }
20484 }
20485}
20486impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
20487 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
20488 match err {
20489 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
20490 Error::Unhandled(inner)
20491 }
20492 }
20493 }
20494}
20495impl<R>
20496 From<
20497 ::aws_smithy_runtime_api::client::result::SdkError<
20498 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20499 R,
20500 >,
20501 > for Error
20502where
20503 R: Send + Sync + std::fmt::Debug + 'static,
20504{
20505 fn from(
20506 err: ::aws_smithy_runtime_api::client::result::SdkError<
20507 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20508 R,
20509 >,
20510 ) -> Self {
20511 match err {
20512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20515 source: err.into(),
20516 }),
20517 }
20518 }
20519}
20520impl From<crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError> for Error {
20521 fn from(
20522 err: crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20523 ) -> Self {
20524 match err {
20525 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError::Unhandled(inner) => Error::Unhandled(inner),
20526 }
20527 }
20528}
20529impl<R>
20530 From<
20531 ::aws_smithy_runtime_api::client::result::SdkError<
20532 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20533 R,
20534 >,
20535 > for Error
20536where
20537 R: Send + Sync + std::fmt::Debug + 'static,
20538{
20539 fn from(
20540 err: ::aws_smithy_runtime_api::client::result::SdkError<
20541 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20542 R,
20543 >,
20544 ) -> Self {
20545 match err {
20546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20549 source: err.into(),
20550 }),
20551 }
20552 }
20553}
20554impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
20555 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
20556 match err {
20557 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
20558 Error::Unhandled(inner)
20559 }
20560 }
20561 }
20562}
20563impl<R>
20564 From<
20565 ::aws_smithy_runtime_api::client::result::SdkError<
20566 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20567 R,
20568 >,
20569 > for Error
20570where
20571 R: Send + Sync + std::fmt::Debug + 'static,
20572{
20573 fn from(
20574 err: ::aws_smithy_runtime_api::client::result::SdkError<
20575 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20576 R,
20577 >,
20578 ) -> Self {
20579 match err {
20580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20583 source: err.into(),
20584 }),
20585 }
20586 }
20587}
20588impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
20589 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
20590 match err {
20591 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
20592 Error::Unhandled(inner)
20593 }
20594 }
20595 }
20596}
20597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
20598where
20599 R: Send + Sync + std::fmt::Debug + 'static,
20600{
20601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
20602 match err {
20603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20606 source: err.into(),
20607 }),
20608 }
20609 }
20610}
20611impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
20612 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
20613 match err {
20614 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
20615 }
20616 }
20617}
20618impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
20619where
20620 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
20621 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
20622{
20623 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
20624 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20625 meta: ::std::default::Default::default(),
20626 source: err.into(),
20627 })
20628 }
20629}
20630impl ::std::error::Error for Error {
20631 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
20632 match self {
20633 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
20634 }
20635 }
20636}
20637impl ::aws_types::request_id::RequestId for Error {
20638 fn request_id(&self) -> Option<&str> {
20639 match self {
20640 Self::Unhandled(e) => e.meta.request_id(),
20641 }
20642 }
20643}