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_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
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_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
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_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError> for Error {
160 fn from(
161 err: crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
162 ) -> Self {
163 match err {
164 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
165 }
166 }
167}
168impl<R>
169 From<
170 ::aws_smithy_runtime_api::client::result::SdkError<
171 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
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_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
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_peering_attachment::AcceptTransitGatewayPeeringAttachmentError> for Error {
194 fn from(err: crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError) -> Self {
195 match err {
196 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
197 Error::Unhandled(inner)
198 }
199 }
200 }
201}
202impl<R>
203 From<
204 ::aws_smithy_runtime_api::client::result::SdkError<
205 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
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_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
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_vpc_attachment::AcceptTransitGatewayVpcAttachmentError> for Error {
228 fn from(err: crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError) -> Self {
229 match err {
230 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError::Unhandled(inner) => {
231 Error::Unhandled(inner)
232 }
233 }
234 }
235}
236impl<R>
237 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError, R>>
238 for Error
239where
240 R: Send + Sync + std::fmt::Debug + 'static,
241{
242 fn from(
243 err: ::aws_smithy_runtime_api::client::result::SdkError<
244 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError,
245 R,
246 >,
247 ) -> Self {
248 match err {
249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
252 source: err.into(),
253 }),
254 }
255 }
256}
257impl From<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError> for Error {
258 fn from(err: crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError) -> Self {
259 match err {
260 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
261 }
262 }
263}
264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>>
265 for Error
266where
267 R: Send + Sync + std::fmt::Debug + 'static,
268{
269 fn from(
270 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>,
271 ) -> Self {
272 match err {
273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
276 source: err.into(),
277 }),
278 }
279 }
280}
281impl From<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError> for Error {
282 fn from(err: crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError) -> Self {
283 match err {
284 crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
285 }
286 }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>> for Error
289where
290 R: Send + Sync + std::fmt::Debug + 'static,
291{
292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>) -> Self {
293 match err {
294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297 source: err.into(),
298 }),
299 }
300 }
301}
302impl From<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError> for Error {
303 fn from(err: crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError) -> Self {
304 match err {
305 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
306 }
307 }
308}
309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>> for Error
310where
311 R: Send + Sync + std::fmt::Debug + 'static,
312{
313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>) -> Self {
314 match err {
315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318 source: err.into(),
319 }),
320 }
321 }
322}
323impl From<crate::operation::allocate_address::AllocateAddressError> for Error {
324 fn from(err: crate::operation::allocate_address::AllocateAddressError) -> Self {
325 match err {
326 crate::operation::allocate_address::AllocateAddressError::Unhandled(inner) => Error::Unhandled(inner),
327 }
328 }
329}
330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>> for Error
331where
332 R: Send + Sync + std::fmt::Debug + 'static,
333{
334 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>) -> Self {
335 match err {
336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
339 source: err.into(),
340 }),
341 }
342 }
343}
344impl From<crate::operation::allocate_hosts::AllocateHostsError> for Error {
345 fn from(err: crate::operation::allocate_hosts::AllocateHostsError) -> Self {
346 match err {
347 crate::operation::allocate_hosts::AllocateHostsError::Unhandled(inner) => Error::Unhandled(inner),
348 }
349 }
350}
351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>> for Error
352where
353 R: Send + Sync + std::fmt::Debug + 'static,
354{
355 fn from(
356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>,
357 ) -> Self {
358 match err {
359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
362 source: err.into(),
363 }),
364 }
365 }
366}
367impl From<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError> for Error {
368 fn from(err: crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError) -> Self {
369 match err {
370 crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
371 }
372 }
373}
374impl<R>
375 From<
376 ::aws_smithy_runtime_api::client::result::SdkError<
377 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
378 R,
379 >,
380 > for Error
381where
382 R: Send + Sync + std::fmt::Debug + 'static,
383{
384 fn from(
385 err: ::aws_smithy_runtime_api::client::result::SdkError<
386 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
387 R,
388 >,
389 ) -> Self {
390 match err {
391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394 source: err.into(),
395 }),
396 }
397 }
398}
399impl From<crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError> for Error {
400 fn from(err: crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError) -> Self {
401 match err {
402 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError::Unhandled(
403 inner,
404 ) => Error::Unhandled(inner),
405 }
406 }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>> for Error
409where
410 R: Send + Sync + std::fmt::Debug + 'static,
411{
412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>) -> Self {
413 match err {
414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
417 source: err.into(),
418 }),
419 }
420 }
421}
422impl From<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError> for Error {
423 fn from(err: crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError) -> Self {
424 match err {
425 crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
426 }
427 }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>>
430 for Error
431where
432 R: Send + Sync + std::fmt::Debug + 'static,
433{
434 fn from(
435 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>,
436 ) -> Self {
437 match err {
438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441 source: err.into(),
442 }),
443 }
444 }
445}
446impl From<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError> for Error {
447 fn from(err: crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError) -> Self {
448 match err {
449 crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
450 }
451 }
452}
453impl<R>
454 From<
455 ::aws_smithy_runtime_api::client::result::SdkError<
456 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
457 R,
458 >,
459 > for Error
460where
461 R: Send + Sync + std::fmt::Debug + 'static,
462{
463 fn from(
464 err: ::aws_smithy_runtime_api::client::result::SdkError<
465 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
466 R,
467 >,
468 ) -> Self {
469 match err {
470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473 source: err.into(),
474 }),
475 }
476 }
477}
478impl From<crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError> for Error {
479 fn from(err: crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError) -> Self {
480 match err {
481 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
482 }
483 }
484}
485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>> for Error
486where
487 R: Send + Sync + std::fmt::Debug + 'static,
488{
489 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>) -> Self {
490 match err {
491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
494 source: err.into(),
495 }),
496 }
497 }
498}
499impl From<crate::operation::associate_address::AssociateAddressError> for Error {
500 fn from(err: crate::operation::associate_address::AssociateAddressError) -> Self {
501 match err {
502 crate::operation::associate_address::AssociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
503 }
504 }
505}
506impl<R>
507 From<
508 ::aws_smithy_runtime_api::client::result::SdkError<
509 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
510 R,
511 >,
512 > for Error
513where
514 R: Send + Sync + std::fmt::Debug + 'static,
515{
516 fn from(
517 err: ::aws_smithy_runtime_api::client::result::SdkError<
518 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
519 R,
520 >,
521 ) -> Self {
522 match err {
523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
526 source: err.into(),
527 }),
528 }
529 }
530}
531impl From<crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError> for Error {
532 fn from(err: crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError) -> Self {
533 match err {
534 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
535 Error::Unhandled(inner)
536 }
537 }
538 }
539}
540impl<R>
541 From<
542 ::aws_smithy_runtime_api::client::result::SdkError<
543 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
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_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
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_client_vpn_target_network::AssociateClientVpnTargetNetworkError> for Error {
566 fn from(err: crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError) -> Self {
567 match err {
568 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError::Unhandled(inner) => Error::Unhandled(inner),
569 }
570 }
571}
572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError, R>> for Error
573where
574 R: Send + Sync + std::fmt::Debug + 'static,
575{
576 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError, R>) -> Self {
577 match err {
578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581 source: err.into(),
582 }),
583 }
584 }
585}
586impl From<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError> for Error {
587 fn from(err: crate::operation::associate_dhcp_options::AssociateDhcpOptionsError) -> Self {
588 match err {
589 crate::operation::associate_dhcp_options::AssociateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R>
594 From<
595 ::aws_smithy_runtime_api::client::result::SdkError<
596 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
597 R,
598 >,
599 > for Error
600where
601 R: Send + Sync + std::fmt::Debug + 'static,
602{
603 fn from(
604 err: ::aws_smithy_runtime_api::client::result::SdkError<
605 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
606 R,
607 >,
608 ) -> Self {
609 match err {
610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613 source: err.into(),
614 }),
615 }
616 }
617}
618impl From<crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError> for Error {
619 fn from(err: crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError) -> Self {
620 match err {
621 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
622 Error::Unhandled(inner)
623 }
624 }
625 }
626}
627impl<R>
628 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError, R>>
629 for Error
630where
631 R: Send + Sync + std::fmt::Debug + 'static,
632{
633 fn from(
634 err: ::aws_smithy_runtime_api::client::result::SdkError<
635 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError,
636 R,
637 >,
638 ) -> Self {
639 match err {
640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643 source: err.into(),
644 }),
645 }
646 }
647}
648impl From<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError> for Error {
649 fn from(err: crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError) -> Self {
650 match err {
651 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
652 }
653 }
654}
655impl<R>
656 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError, R>>
657 for Error
658where
659 R: Send + Sync + std::fmt::Debug + 'static,
660{
661 fn from(
662 err: ::aws_smithy_runtime_api::client::result::SdkError<
663 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError,
664 R,
665 >,
666 ) -> Self {
667 match err {
668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671 source: err.into(),
672 }),
673 }
674 }
675}
676impl From<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError> for Error {
677 fn from(err: crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError) -> Self {
678 match err {
679 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
680 }
681 }
682}
683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>> for Error
684where
685 R: Send + Sync + std::fmt::Debug + 'static,
686{
687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>) -> Self {
688 match err {
689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
692 source: err.into(),
693 }),
694 }
695 }
696}
697impl From<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError> for Error {
698 fn from(err: crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError) -> Self {
699 match err {
700 crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
701 }
702 }
703}
704impl<R>
705 From<
706 ::aws_smithy_runtime_api::client::result::SdkError<
707 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
708 R,
709 >,
710 > for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(
715 err: ::aws_smithy_runtime_api::client::result::SdkError<
716 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
717 R,
718 >,
719 ) -> Self {
720 match err {
721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724 source: err.into(),
725 }),
726 }
727 }
728}
729impl From<crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError> for Error {
730 fn from(err: crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError) -> Self {
731 match err {
732 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
733 }
734 }
735}
736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>>
737 for Error
738where
739 R: Send + Sync + std::fmt::Debug + 'static,
740{
741 fn from(
742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>,
743 ) -> Self {
744 match err {
745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748 source: err.into(),
749 }),
750 }
751 }
752}
753impl From<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError> for Error {
754 fn from(err: crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError) -> Self {
755 match err {
756 crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
757 }
758 }
759}
760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>> for Error
761where
762 R: Send + Sync + std::fmt::Debug + 'static,
763{
764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>) -> Self {
765 match err {
766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
769 source: err.into(),
770 }),
771 }
772 }
773}
774impl From<crate::operation::associate_route_server::AssociateRouteServerError> for Error {
775 fn from(err: crate::operation::associate_route_server::AssociateRouteServerError) -> Self {
776 match err {
777 crate::operation::associate_route_server::AssociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
778 }
779 }
780}
781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>> for Error
782where
783 R: Send + Sync + std::fmt::Debug + 'static,
784{
785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>) -> Self {
786 match err {
787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
790 source: err.into(),
791 }),
792 }
793 }
794}
795impl From<crate::operation::associate_route_table::AssociateRouteTableError> for Error {
796 fn from(err: crate::operation::associate_route_table::AssociateRouteTableError) -> Self {
797 match err {
798 crate::operation::associate_route_table::AssociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
799 }
800 }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>>
803 for Error
804where
805 R: Send + Sync + std::fmt::Debug + 'static,
806{
807 fn from(
808 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>,
809 ) -> Self {
810 match err {
811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814 source: err.into(),
815 }),
816 }
817 }
818}
819impl From<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError> for Error {
820 fn from(err: crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError) -> Self {
821 match err {
822 crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
823 }
824 }
825}
826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>>
827 for Error
828where
829 R: Send + Sync + std::fmt::Debug + 'static,
830{
831 fn from(
832 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>,
833 ) -> Self {
834 match err {
835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838 source: err.into(),
839 }),
840 }
841 }
842}
843impl From<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError> for Error {
844 fn from(err: crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError) -> Self {
845 match err {
846 crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
847 }
848 }
849}
850impl<R>
851 From<
852 ::aws_smithy_runtime_api::client::result::SdkError<
853 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
854 R,
855 >,
856 > for Error
857where
858 R: Send + Sync + std::fmt::Debug + 'static,
859{
860 fn from(
861 err: ::aws_smithy_runtime_api::client::result::SdkError<
862 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
863 R,
864 >,
865 ) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError> for Error {
876 fn from(err: crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError) -> Self {
877 match err {
878 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
879 Error::Unhandled(inner)
880 }
881 }
882 }
883}
884impl<R>
885 From<
886 ::aws_smithy_runtime_api::client::result::SdkError<
887 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError,
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_policy_table::AssociateTransitGatewayPolicyTableError,
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_policy_table::AssociateTransitGatewayPolicyTableError> for Error {
910 fn from(err: crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError) -> Self {
911 match err {
912 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError::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_route_table::AssociateTransitGatewayRouteTableError,
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_route_table::AssociateTransitGatewayRouteTableError,
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_route_table::AssociateTransitGatewayRouteTableError> for Error {
944 fn from(err: crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError) -> Self {
945 match err {
946 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError::Unhandled(inner) => {
947 Error::Unhandled(inner)
948 }
949 }
950 }
951}
952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>>
953 for Error
954where
955 R: Send + Sync + std::fmt::Debug + 'static,
956{
957 fn from(
958 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>,
959 ) -> Self {
960 match err {
961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964 source: err.into(),
965 }),
966 }
967 }
968}
969impl From<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError> for Error {
970 fn from(err: crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError) -> Self {
971 match err {
972 crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
973 }
974 }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>> for Error
977where
978 R: Send + Sync + std::fmt::Debug + 'static,
979{
980 fn from(
981 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>,
982 ) -> Self {
983 match err {
984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987 source: err.into(),
988 }),
989 }
990 }
991}
992impl From<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError> for Error {
993 fn from(err: crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError) -> Self {
994 match err {
995 crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>> for Error
1000where
1001 R: Send + Sync + std::fmt::Debug + 'static,
1002{
1003 fn from(
1004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>,
1005 ) -> Self {
1006 match err {
1007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1010 source: err.into(),
1011 }),
1012 }
1013 }
1014}
1015impl From<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError> for Error {
1016 fn from(err: crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError) -> Self {
1017 match err {
1018 crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>> for Error
1023where
1024 R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026 fn from(
1027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>,
1028 ) -> Self {
1029 match err {
1030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1033 source: err.into(),
1034 }),
1035 }
1036 }
1037}
1038impl From<crate::operation::attach_internet_gateway::AttachInternetGatewayError> for Error {
1039 fn from(err: crate::operation::attach_internet_gateway::AttachInternetGatewayError) -> Self {
1040 match err {
1041 crate::operation::attach_internet_gateway::AttachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1042 }
1043 }
1044}
1045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>> for Error
1046where
1047 R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049 fn from(
1050 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>,
1051 ) -> Self {
1052 match err {
1053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1056 source: err.into(),
1057 }),
1058 }
1059 }
1060}
1061impl From<crate::operation::attach_network_interface::AttachNetworkInterfaceError> for Error {
1062 fn from(err: crate::operation::attach_network_interface::AttachNetworkInterfaceError) -> Self {
1063 match err {
1064 crate::operation::attach_network_interface::AttachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
1065 }
1066 }
1067}
1068impl<R>
1069 From<
1070 ::aws_smithy_runtime_api::client::result::SdkError<
1071 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1072 R,
1073 >,
1074 > for Error
1075where
1076 R: Send + Sync + std::fmt::Debug + 'static,
1077{
1078 fn from(
1079 err: ::aws_smithy_runtime_api::client::result::SdkError<
1080 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1081 R,
1082 >,
1083 ) -> Self {
1084 match err {
1085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1088 source: err.into(),
1089 }),
1090 }
1091 }
1092}
1093impl From<crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError> for Error {
1094 fn from(err: crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError) -> Self {
1095 match err {
1096 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError::Unhandled(inner) => {
1097 Error::Unhandled(inner)
1098 }
1099 }
1100 }
1101}
1102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>> for Error
1103where
1104 R: Send + Sync + std::fmt::Debug + 'static,
1105{
1106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>) -> Self {
1107 match err {
1108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1111 source: err.into(),
1112 }),
1113 }
1114 }
1115}
1116impl From<crate::operation::attach_volume::AttachVolumeError> for Error {
1117 fn from(err: crate::operation::attach_volume::AttachVolumeError) -> Self {
1118 match err {
1119 crate::operation::attach_volume::AttachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
1120 }
1121 }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>> for Error
1124where
1125 R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>) -> Self {
1128 match err {
1129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132 source: err.into(),
1133 }),
1134 }
1135 }
1136}
1137impl From<crate::operation::attach_vpn_gateway::AttachVpnGatewayError> for Error {
1138 fn from(err: crate::operation::attach_vpn_gateway::AttachVpnGatewayError) -> Self {
1139 match err {
1140 crate::operation::attach_vpn_gateway::AttachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1141 }
1142 }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>>
1145 for Error
1146where
1147 R: Send + Sync + std::fmt::Debug + 'static,
1148{
1149 fn from(
1150 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>,
1151 ) -> Self {
1152 match err {
1153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156 source: err.into(),
1157 }),
1158 }
1159 }
1160}
1161impl From<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError> for Error {
1162 fn from(err: crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError) -> Self {
1163 match err {
1164 crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
1165 }
1166 }
1167}
1168impl<R>
1169 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError, R>>
1170 for Error
1171where
1172 R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174 fn from(
1175 err: ::aws_smithy_runtime_api::client::result::SdkError<
1176 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError,
1177 R,
1178 >,
1179 ) -> Self {
1180 match err {
1181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1184 source: err.into(),
1185 }),
1186 }
1187 }
1188}
1189impl From<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError> for Error {
1190 fn from(err: crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError) -> Self {
1191 match err {
1192 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
1193 }
1194 }
1195}
1196impl<R>
1197 From<
1198 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError, R>,
1199 > for Error
1200where
1201 R: Send + Sync + std::fmt::Debug + 'static,
1202{
1203 fn from(
1204 err: ::aws_smithy_runtime_api::client::result::SdkError<
1205 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError,
1206 R,
1207 >,
1208 ) -> Self {
1209 match err {
1210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213 source: err.into(),
1214 }),
1215 }
1216 }
1217}
1218impl From<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError> for Error {
1219 fn from(err: crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError) -> Self {
1220 match err {
1221 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
1222 }
1223 }
1224}
1225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>> for Error
1226where
1227 R: Send + Sync + std::fmt::Debug + 'static,
1228{
1229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>) -> Self {
1230 match err {
1231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1234 source: err.into(),
1235 }),
1236 }
1237 }
1238}
1239impl From<crate::operation::bundle_instance::BundleInstanceError> for Error {
1240 fn from(err: crate::operation::bundle_instance::BundleInstanceError) -> Self {
1241 match err {
1242 crate::operation::bundle_instance::BundleInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1243 }
1244 }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>> for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>) -> Self {
1251 match err {
1252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255 source: err.into(),
1256 }),
1257 }
1258 }
1259}
1260impl From<crate::operation::cancel_bundle_task::CancelBundleTaskError> for Error {
1261 fn from(err: crate::operation::cancel_bundle_task::CancelBundleTaskError) -> Self {
1262 match err {
1263 crate::operation::cancel_bundle_task::CancelBundleTaskError::Unhandled(inner) => Error::Unhandled(inner),
1264 }
1265 }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>>
1268 for Error
1269where
1270 R: Send + Sync + std::fmt::Debug + 'static,
1271{
1272 fn from(
1273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>,
1274 ) -> Self {
1275 match err {
1276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1279 source: err.into(),
1280 }),
1281 }
1282 }
1283}
1284impl From<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError> for Error {
1285 fn from(err: crate::operation::cancel_capacity_reservation::CancelCapacityReservationError) -> Self {
1286 match err {
1287 crate::operation::cancel_capacity_reservation::CancelCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1288 }
1289 }
1290}
1291impl<R>
1292 From<
1293 ::aws_smithy_runtime_api::client::result::SdkError<
1294 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1295 R,
1296 >,
1297 > for Error
1298where
1299 R: Send + Sync + std::fmt::Debug + 'static,
1300{
1301 fn from(
1302 err: ::aws_smithy_runtime_api::client::result::SdkError<
1303 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1304 R,
1305 >,
1306 ) -> Self {
1307 match err {
1308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1311 source: err.into(),
1312 }),
1313 }
1314 }
1315}
1316impl From<crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError> for Error {
1317 fn from(err: crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError) -> Self {
1318 match err {
1319 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1320 }
1321 }
1322}
1323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>> for Error
1324where
1325 R: Send + Sync + std::fmt::Debug + 'static,
1326{
1327 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>) -> Self {
1328 match err {
1329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1332 source: err.into(),
1333 }),
1334 }
1335 }
1336}
1337impl From<crate::operation::cancel_conversion_task::CancelConversionTaskError> for Error {
1338 fn from(err: crate::operation::cancel_conversion_task::CancelConversionTaskError) -> Self {
1339 match err {
1340 crate::operation::cancel_conversion_task::CancelConversionTaskError::Unhandled(inner) => Error::Unhandled(inner),
1341 }
1342 }
1343}
1344impl<R>
1345 From<
1346 ::aws_smithy_runtime_api::client::result::SdkError<
1347 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1348 R,
1349 >,
1350 > for Error
1351where
1352 R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354 fn from(
1355 err: ::aws_smithy_runtime_api::client::result::SdkError<
1356 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1357 R,
1358 >,
1359 ) -> Self {
1360 match err {
1361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1364 source: err.into(),
1365 }),
1366 }
1367 }
1368}
1369impl From<crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError> for Error {
1370 fn from(err: crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError) -> Self {
1371 match err {
1372 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
1373 }
1374 }
1375}
1376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>> for Error
1377where
1378 R: Send + Sync + std::fmt::Debug + 'static,
1379{
1380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>) -> Self {
1381 match err {
1382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385 source: err.into(),
1386 }),
1387 }
1388 }
1389}
1390impl From<crate::operation::cancel_export_task::CancelExportTaskError> for Error {
1391 fn from(err: crate::operation::cancel_export_task::CancelExportTaskError) -> Self {
1392 match err {
1393 crate::operation::cancel_export_task::CancelExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1394 }
1395 }
1396}
1397impl<R>
1398 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError, R>>
1399 for Error
1400where
1401 R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403 fn from(
1404 err: ::aws_smithy_runtime_api::client::result::SdkError<
1405 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError,
1406 R,
1407 >,
1408 ) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError> for Error {
1419 fn from(err: crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError) -> Self {
1420 match err {
1421 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError::Unhandled(inner) => Error::Unhandled(inner),
1422 }
1423 }
1424}
1425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>> for Error
1426where
1427 R: Send + Sync + std::fmt::Debug + 'static,
1428{
1429 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>) -> Self {
1430 match err {
1431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1434 source: err.into(),
1435 }),
1436 }
1437 }
1438}
1439impl From<crate::operation::cancel_import_task::CancelImportTaskError> for Error {
1440 fn from(err: crate::operation::cancel_import_task::CancelImportTaskError) -> Self {
1441 match err {
1442 crate::operation::cancel_import_task::CancelImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1443 }
1444 }
1445}
1446impl<R>
1447 From<
1448 ::aws_smithy_runtime_api::client::result::SdkError<
1449 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1450 R,
1451 >,
1452 > for Error
1453where
1454 R: Send + Sync + std::fmt::Debug + 'static,
1455{
1456 fn from(
1457 err: ::aws_smithy_runtime_api::client::result::SdkError<
1458 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1459 R,
1460 >,
1461 ) -> Self {
1462 match err {
1463 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466 source: err.into(),
1467 }),
1468 }
1469 }
1470}
1471impl From<crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError> for Error {
1472 fn from(err: crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError) -> Self {
1473 match err {
1474 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
1475 }
1476 }
1477}
1478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>>
1479 for Error
1480where
1481 R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483 fn from(
1484 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>,
1485 ) -> Self {
1486 match err {
1487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1490 source: err.into(),
1491 }),
1492 }
1493 }
1494}
1495impl From<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError> for Error {
1496 fn from(err: crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError) -> Self {
1497 match err {
1498 crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1499 }
1500 }
1501}
1502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>>
1503 for Error
1504where
1505 R: Send + Sync + std::fmt::Debug + 'static,
1506{
1507 fn from(
1508 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>,
1509 ) -> Self {
1510 match err {
1511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514 source: err.into(),
1515 }),
1516 }
1517 }
1518}
1519impl From<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError> for Error {
1520 fn from(err: crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError) -> Self {
1521 match err {
1522 crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1523 }
1524 }
1525}
1526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>> for Error
1527where
1528 R: Send + Sync + std::fmt::Debug + 'static,
1529{
1530 fn from(
1531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>,
1532 ) -> Self {
1533 match err {
1534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1537 source: err.into(),
1538 }),
1539 }
1540 }
1541}
1542impl From<crate::operation::confirm_product_instance::ConfirmProductInstanceError> for Error {
1543 fn from(err: crate::operation::confirm_product_instance::ConfirmProductInstanceError) -> Self {
1544 match err {
1545 crate::operation::confirm_product_instance::ConfirmProductInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1546 }
1547 }
1548}
1549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>> for Error
1550where
1551 R: Send + Sync + std::fmt::Debug + 'static,
1552{
1553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>) -> Self {
1554 match err {
1555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1558 source: err.into(),
1559 }),
1560 }
1561 }
1562}
1563impl From<crate::operation::copy_fpga_image::CopyFpgaImageError> for Error {
1564 fn from(err: crate::operation::copy_fpga_image::CopyFpgaImageError) -> Self {
1565 match err {
1566 crate::operation::copy_fpga_image::CopyFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
1567 }
1568 }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>> for Error
1571where
1572 R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>) -> Self {
1575 match err {
1576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579 source: err.into(),
1580 }),
1581 }
1582 }
1583}
1584impl From<crate::operation::copy_image::CopyImageError> for Error {
1585 fn from(err: crate::operation::copy_image::CopyImageError) -> Self {
1586 match err {
1587 crate::operation::copy_image::CopyImageError::Unhandled(inner) => Error::Unhandled(inner),
1588 }
1589 }
1590}
1591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>> for Error
1592where
1593 R: Send + Sync + std::fmt::Debug + 'static,
1594{
1595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>) -> Self {
1596 match err {
1597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1600 source: err.into(),
1601 }),
1602 }
1603 }
1604}
1605impl From<crate::operation::copy_snapshot::CopySnapshotError> for Error {
1606 fn from(err: crate::operation::copy_snapshot::CopySnapshotError) -> Self {
1607 match err {
1608 crate::operation::copy_snapshot::CopySnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1609 }
1610 }
1611}
1612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>> for Error
1613where
1614 R: Send + Sync + std::fmt::Debug + 'static,
1615{
1616 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>) -> Self {
1617 match err {
1618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1621 source: err.into(),
1622 }),
1623 }
1624 }
1625}
1626impl From<crate::operation::copy_volumes::CopyVolumesError> for Error {
1627 fn from(err: crate::operation::copy_volumes::CopyVolumesError) -> Self {
1628 match err {
1629 crate::operation::copy_volumes::CopyVolumesError::Unhandled(inner) => Error::Unhandled(inner),
1630 }
1631 }
1632}
1633impl<R>
1634 From<
1635 ::aws_smithy_runtime_api::client::result::SdkError<
1636 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1637 R,
1638 >,
1639 > for Error
1640where
1641 R: Send + Sync + std::fmt::Debug + 'static,
1642{
1643 fn from(
1644 err: ::aws_smithy_runtime_api::client::result::SdkError<
1645 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1646 R,
1647 >,
1648 ) -> Self {
1649 match err {
1650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1653 source: err.into(),
1654 }),
1655 }
1656 }
1657}
1658impl From<crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError> for Error {
1659 fn from(err: crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError) -> Self {
1660 match err {
1661 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
1662 }
1663 }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>>
1666 for Error
1667where
1668 R: Send + Sync + std::fmt::Debug + 'static,
1669{
1670 fn from(
1671 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>,
1672 ) -> Self {
1673 match err {
1674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1677 source: err.into(),
1678 }),
1679 }
1680 }
1681}
1682impl From<crate::operation::create_capacity_reservation::CreateCapacityReservationError> for Error {
1683 fn from(err: crate::operation::create_capacity_reservation::CreateCapacityReservationError) -> Self {
1684 match err {
1685 crate::operation::create_capacity_reservation::CreateCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1686 }
1687 }
1688}
1689impl<R>
1690 From<
1691 ::aws_smithy_runtime_api::client::result::SdkError<
1692 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1693 R,
1694 >,
1695 > for Error
1696where
1697 R: Send + Sync + std::fmt::Debug + 'static,
1698{
1699 fn from(
1700 err: ::aws_smithy_runtime_api::client::result::SdkError<
1701 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1702 R,
1703 >,
1704 ) -> Self {
1705 match err {
1706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1709 source: err.into(),
1710 }),
1711 }
1712 }
1713}
1714impl From<crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError> for Error {
1715 fn from(err: crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError) -> Self {
1716 match err {
1717 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError::Unhandled(inner) => {
1718 Error::Unhandled(inner)
1719 }
1720 }
1721 }
1722}
1723impl<R>
1724 From<
1725 ::aws_smithy_runtime_api::client::result::SdkError<
1726 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError,
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_fleet::CreateCapacityReservationFleetError,
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_fleet::CreateCapacityReservationFleetError> for Error {
1749 fn from(err: crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError) -> Self {
1750 match err {
1751 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
1752 }
1753 }
1754}
1755impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>> for Error
1756where
1757 R: Send + Sync + std::fmt::Debug + 'static,
1758{
1759 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>) -> Self {
1760 match err {
1761 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1762 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1763 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1764 source: err.into(),
1765 }),
1766 }
1767 }
1768}
1769impl From<crate::operation::create_carrier_gateway::CreateCarrierGatewayError> for Error {
1770 fn from(err: crate::operation::create_carrier_gateway::CreateCarrierGatewayError) -> Self {
1771 match err {
1772 crate::operation::create_carrier_gateway::CreateCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1773 }
1774 }
1775}
1776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>>
1777 for Error
1778where
1779 R: Send + Sync + std::fmt::Debug + 'static,
1780{
1781 fn from(
1782 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>,
1783 ) -> Self {
1784 match err {
1785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1788 source: err.into(),
1789 }),
1790 }
1791 }
1792}
1793impl From<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError> for Error {
1794 fn from(err: crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError) -> Self {
1795 match err {
1796 crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1797 }
1798 }
1799}
1800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>> for Error
1801where
1802 R: Send + Sync + std::fmt::Debug + 'static,
1803{
1804 fn from(
1805 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>,
1806 ) -> Self {
1807 match err {
1808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1811 source: err.into(),
1812 }),
1813 }
1814 }
1815}
1816impl From<crate::operation::create_client_vpn_route::CreateClientVpnRouteError> for Error {
1817 fn from(err: crate::operation::create_client_vpn_route::CreateClientVpnRouteError) -> Self {
1818 match err {
1819 crate::operation::create_client_vpn_route::CreateClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
1820 }
1821 }
1822}
1823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>> for Error
1824where
1825 R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>) -> Self {
1828 match err {
1829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1832 source: err.into(),
1833 }),
1834 }
1835 }
1836}
1837impl From<crate::operation::create_coip_cidr::CreateCoipCidrError> for Error {
1838 fn from(err: crate::operation::create_coip_cidr::CreateCoipCidrError) -> Self {
1839 match err {
1840 crate::operation::create_coip_cidr::CreateCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
1841 }
1842 }
1843}
1844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>> for Error
1845where
1846 R: Send + Sync + std::fmt::Debug + 'static,
1847{
1848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>) -> Self {
1849 match err {
1850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1853 source: err.into(),
1854 }),
1855 }
1856 }
1857}
1858impl From<crate::operation::create_coip_pool::CreateCoipPoolError> for Error {
1859 fn from(err: crate::operation::create_coip_pool::CreateCoipPoolError) -> Self {
1860 match err {
1861 crate::operation::create_coip_pool::CreateCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
1862 }
1863 }
1864}
1865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>> for Error
1866where
1867 R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869 fn from(
1870 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>,
1871 ) -> Self {
1872 match err {
1873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1876 source: err.into(),
1877 }),
1878 }
1879 }
1880}
1881impl From<crate::operation::create_customer_gateway::CreateCustomerGatewayError> for Error {
1882 fn from(err: crate::operation::create_customer_gateway::CreateCustomerGatewayError) -> Self {
1883 match err {
1884 crate::operation::create_customer_gateway::CreateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1885 }
1886 }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>> for Error
1889where
1890 R: Send + Sync + std::fmt::Debug + 'static,
1891{
1892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>) -> Self {
1893 match err {
1894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1897 source: err.into(),
1898 }),
1899 }
1900 }
1901}
1902impl From<crate::operation::create_default_subnet::CreateDefaultSubnetError> for Error {
1903 fn from(err: crate::operation::create_default_subnet::CreateDefaultSubnetError) -> Self {
1904 match err {
1905 crate::operation::create_default_subnet::CreateDefaultSubnetError::Unhandled(inner) => Error::Unhandled(inner),
1906 }
1907 }
1908}
1909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>> for Error
1910where
1911 R: Send + Sync + std::fmt::Debug + 'static,
1912{
1913 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>) -> Self {
1914 match err {
1915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1918 source: err.into(),
1919 }),
1920 }
1921 }
1922}
1923impl From<crate::operation::create_default_vpc::CreateDefaultVpcError> for Error {
1924 fn from(err: crate::operation::create_default_vpc::CreateDefaultVpcError) -> Self {
1925 match err {
1926 crate::operation::create_default_vpc::CreateDefaultVpcError::Unhandled(inner) => Error::Unhandled(inner),
1927 }
1928 }
1929}
1930impl<R>
1931 From<
1932 ::aws_smithy_runtime_api::client::result::SdkError<
1933 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1934 R,
1935 >,
1936 > for Error
1937where
1938 R: Send + Sync + std::fmt::Debug + 'static,
1939{
1940 fn from(
1941 err: ::aws_smithy_runtime_api::client::result::SdkError<
1942 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1943 R,
1944 >,
1945 ) -> Self {
1946 match err {
1947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1950 source: err.into(),
1951 }),
1952 }
1953 }
1954}
1955impl From<crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError> for Error {
1956 fn from(err: crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError) -> Self {
1957 match err {
1958 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError::Unhandled(inner) => {
1959 Error::Unhandled(inner)
1960 }
1961 }
1962 }
1963}
1964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>> for Error
1965where
1966 R: Send + Sync + std::fmt::Debug + 'static,
1967{
1968 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>) -> Self {
1969 match err {
1970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1973 source: err.into(),
1974 }),
1975 }
1976 }
1977}
1978impl From<crate::operation::create_dhcp_options::CreateDhcpOptionsError> for Error {
1979 fn from(err: crate::operation::create_dhcp_options::CreateDhcpOptionsError) -> Self {
1980 match err {
1981 crate::operation::create_dhcp_options::CreateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
1982 }
1983 }
1984}
1985impl<R>
1986 From<
1987 ::aws_smithy_runtime_api::client::result::SdkError<
1988 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
1989 R,
1990 >,
1991 > for Error
1992where
1993 R: Send + Sync + std::fmt::Debug + 'static,
1994{
1995 fn from(
1996 err: ::aws_smithy_runtime_api::client::result::SdkError<
1997 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
1998 R,
1999 >,
2000 ) -> Self {
2001 match err {
2002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2005 source: err.into(),
2006 }),
2007 }
2008 }
2009}
2010impl From<crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError> for Error {
2011 fn from(err: crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError) -> Self {
2012 match err {
2013 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2014 }
2015 }
2016}
2017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
2018where
2019 R: Send + Sync + std::fmt::Debug + 'static,
2020{
2021 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
2022 match err {
2023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2026 source: err.into(),
2027 }),
2028 }
2029 }
2030}
2031impl From<crate::operation::create_fleet::CreateFleetError> for Error {
2032 fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
2033 match err {
2034 crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2035 }
2036 }
2037}
2038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>> for Error
2039where
2040 R: Send + Sync + std::fmt::Debug + 'static,
2041{
2042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>) -> Self {
2043 match err {
2044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2047 source: err.into(),
2048 }),
2049 }
2050 }
2051}
2052impl From<crate::operation::create_flow_logs::CreateFlowLogsError> for Error {
2053 fn from(err: crate::operation::create_flow_logs::CreateFlowLogsError) -> Self {
2054 match err {
2055 crate::operation::create_flow_logs::CreateFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
2056 }
2057 }
2058}
2059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>> for Error
2060where
2061 R: Send + Sync + std::fmt::Debug + 'static,
2062{
2063 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>) -> Self {
2064 match err {
2065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2068 source: err.into(),
2069 }),
2070 }
2071 }
2072}
2073impl From<crate::operation::create_fpga_image::CreateFpgaImageError> for Error {
2074 fn from(err: crate::operation::create_fpga_image::CreateFpgaImageError) -> Self {
2075 match err {
2076 crate::operation::create_fpga_image::CreateFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
2077 }
2078 }
2079}
2080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
2081where
2082 R: Send + Sync + std::fmt::Debug + 'static,
2083{
2084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
2085 match err {
2086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2089 source: err.into(),
2090 }),
2091 }
2092 }
2093}
2094impl From<crate::operation::create_image::CreateImageError> for Error {
2095 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
2096 match err {
2097 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
2098 }
2099 }
2100}
2101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>>
2102 for Error
2103where
2104 R: Send + Sync + std::fmt::Debug + 'static,
2105{
2106 fn from(
2107 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>,
2108 ) -> Self {
2109 match err {
2110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2113 source: err.into(),
2114 }),
2115 }
2116 }
2117}
2118impl From<crate::operation::create_image_usage_report::CreateImageUsageReportError> for Error {
2119 fn from(err: crate::operation::create_image_usage_report::CreateImageUsageReportError) -> Self {
2120 match err {
2121 crate::operation::create_image_usage_report::CreateImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
2122 }
2123 }
2124}
2125impl<R>
2126 From<
2127 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError, R>,
2128 > for Error
2129where
2130 R: Send + Sync + std::fmt::Debug + 'static,
2131{
2132 fn from(
2133 err: ::aws_smithy_runtime_api::client::result::SdkError<
2134 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError,
2135 R,
2136 >,
2137 ) -> Self {
2138 match err {
2139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2142 source: err.into(),
2143 }),
2144 }
2145 }
2146}
2147impl From<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError> for Error {
2148 fn from(err: crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError) -> Self {
2149 match err {
2150 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2151 }
2152 }
2153}
2154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>>
2155 for Error
2156where
2157 R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159 fn from(
2160 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>,
2161 ) -> Self {
2162 match err {
2163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2166 source: err.into(),
2167 }),
2168 }
2169 }
2170}
2171impl From<crate::operation::create_instance_event_window::CreateInstanceEventWindowError> for Error {
2172 fn from(err: crate::operation::create_instance_event_window::CreateInstanceEventWindowError) -> Self {
2173 match err {
2174 crate::operation::create_instance_event_window::CreateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
2175 }
2176 }
2177}
2178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>>
2179 for Error
2180where
2181 R: Send + Sync + std::fmt::Debug + 'static,
2182{
2183 fn from(
2184 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>,
2185 ) -> Self {
2186 match err {
2187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2190 source: err.into(),
2191 }),
2192 }
2193 }
2194}
2195impl From<crate::operation::create_instance_export_task::CreateInstanceExportTaskError> for Error {
2196 fn from(err: crate::operation::create_instance_export_task::CreateInstanceExportTaskError) -> Self {
2197 match err {
2198 crate::operation::create_instance_export_task::CreateInstanceExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
2199 }
2200 }
2201}
2202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>> for Error
2203where
2204 R: Send + Sync + std::fmt::Debug + 'static,
2205{
2206 fn from(
2207 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>,
2208 ) -> Self {
2209 match err {
2210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2213 source: err.into(),
2214 }),
2215 }
2216 }
2217}
2218impl From<crate::operation::create_internet_gateway::CreateInternetGatewayError> for Error {
2219 fn from(err: crate::operation::create_internet_gateway::CreateInternetGatewayError) -> Self {
2220 match err {
2221 crate::operation::create_internet_gateway::CreateInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2222 }
2223 }
2224}
2225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>> for Error
2226where
2227 R: Send + Sync + std::fmt::Debug + 'static,
2228{
2229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>) -> Self {
2230 match err {
2231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2234 source: err.into(),
2235 }),
2236 }
2237 }
2238}
2239impl From<crate::operation::create_ipam::CreateIpamError> for Error {
2240 fn from(err: crate::operation::create_ipam::CreateIpamError) -> Self {
2241 match err {
2242 crate::operation::create_ipam::CreateIpamError::Unhandled(inner) => Error::Unhandled(inner),
2243 }
2244 }
2245}
2246impl<R>
2247 From<
2248 ::aws_smithy_runtime_api::client::result::SdkError<
2249 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2250 R,
2251 >,
2252 > for Error
2253where
2254 R: Send + Sync + std::fmt::Debug + 'static,
2255{
2256 fn from(
2257 err: ::aws_smithy_runtime_api::client::result::SdkError<
2258 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2259 R,
2260 >,
2261 ) -> Self {
2262 match err {
2263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2266 source: err.into(),
2267 }),
2268 }
2269 }
2270}
2271impl From<crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError> for Error {
2272 fn from(err: crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError) -> Self {
2273 match err {
2274 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError::Unhandled(
2275 inner,
2276 ) => Error::Unhandled(inner),
2277 }
2278 }
2279}
2280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>> for Error
2281where
2282 R: Send + Sync + std::fmt::Debug + 'static,
2283{
2284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>) -> Self {
2285 match err {
2286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2289 source: err.into(),
2290 }),
2291 }
2292 }
2293}
2294impl From<crate::operation::create_ipam_pool::CreateIpamPoolError> for Error {
2295 fn from(err: crate::operation::create_ipam_pool::CreateIpamPoolError) -> Self {
2296 match err {
2297 crate::operation::create_ipam_pool::CreateIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
2298 }
2299 }
2300}
2301impl<R>
2302 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError, R>>
2303 for Error
2304where
2305 R: Send + Sync + std::fmt::Debug + 'static,
2306{
2307 fn from(
2308 err: ::aws_smithy_runtime_api::client::result::SdkError<
2309 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError,
2310 R,
2311 >,
2312 ) -> Self {
2313 match err {
2314 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2315 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2316 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2317 source: err.into(),
2318 }),
2319 }
2320 }
2321}
2322impl From<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError> for Error {
2323 fn from(err: crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError) -> Self {
2324 match err {
2325 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
2326 }
2327 }
2328}
2329impl<R>
2330 From<
2331 ::aws_smithy_runtime_api::client::result::SdkError<
2332 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2333 R,
2334 >,
2335 > for Error
2336where
2337 R: Send + Sync + std::fmt::Debug + 'static,
2338{
2339 fn from(
2340 err: ::aws_smithy_runtime_api::client::result::SdkError<
2341 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2342 R,
2343 >,
2344 ) -> Self {
2345 match err {
2346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2349 source: err.into(),
2350 }),
2351 }
2352 }
2353}
2354impl From<crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError> for Error {
2355 fn from(err: crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError) -> Self {
2356 match err {
2357 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError::Unhandled(inner) => {
2358 Error::Unhandled(inner)
2359 }
2360 }
2361 }
2362}
2363impl<R>
2364 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError, R>>
2365 for Error
2366where
2367 R: Send + Sync + std::fmt::Debug + 'static,
2368{
2369 fn from(
2370 err: ::aws_smithy_runtime_api::client::result::SdkError<
2371 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError,
2372 R,
2373 >,
2374 ) -> Self {
2375 match err {
2376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2379 source: err.into(),
2380 }),
2381 }
2382 }
2383}
2384impl From<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError> for Error {
2385 fn from(err: crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError) -> Self {
2386 match err {
2387 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2388 }
2389 }
2390}
2391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>> for Error
2392where
2393 R: Send + Sync + std::fmt::Debug + 'static,
2394{
2395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>) -> Self {
2396 match err {
2397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2400 source: err.into(),
2401 }),
2402 }
2403 }
2404}
2405impl From<crate::operation::create_ipam_scope::CreateIpamScopeError> for Error {
2406 fn from(err: crate::operation::create_ipam_scope::CreateIpamScopeError) -> Self {
2407 match err {
2408 crate::operation::create_ipam_scope::CreateIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
2409 }
2410 }
2411}
2412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>> for Error
2413where
2414 R: Send + Sync + std::fmt::Debug + 'static,
2415{
2416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>) -> Self {
2417 match err {
2418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2421 source: err.into(),
2422 }),
2423 }
2424 }
2425}
2426impl From<crate::operation::create_key_pair::CreateKeyPairError> for Error {
2427 fn from(err: crate::operation::create_key_pair::CreateKeyPairError) -> Self {
2428 match err {
2429 crate::operation::create_key_pair::CreateKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
2430 }
2431 }
2432}
2433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>> for Error
2434where
2435 R: Send + Sync + std::fmt::Debug + 'static,
2436{
2437 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>) -> Self {
2438 match err {
2439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2442 source: err.into(),
2443 }),
2444 }
2445 }
2446}
2447impl From<crate::operation::create_launch_template::CreateLaunchTemplateError> for Error {
2448 fn from(err: crate::operation::create_launch_template::CreateLaunchTemplateError) -> Self {
2449 match err {
2450 crate::operation::create_launch_template::CreateLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2451 }
2452 }
2453}
2454impl<R>
2455 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError, R>>
2456 for Error
2457where
2458 R: Send + Sync + std::fmt::Debug + 'static,
2459{
2460 fn from(
2461 err: ::aws_smithy_runtime_api::client::result::SdkError<
2462 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
2463 R,
2464 >,
2465 ) -> Self {
2466 match err {
2467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2470 source: err.into(),
2471 }),
2472 }
2473 }
2474}
2475impl From<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError> for Error {
2476 fn from(err: crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError) -> Self {
2477 match err {
2478 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2479 }
2480 }
2481}
2482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>>
2483 for Error
2484where
2485 R: Send + Sync + std::fmt::Debug + 'static,
2486{
2487 fn from(
2488 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>,
2489 ) -> Self {
2490 match err {
2491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2494 source: err.into(),
2495 }),
2496 }
2497 }
2498}
2499impl From<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError> for Error {
2500 fn from(err: crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError) -> Self {
2501 match err {
2502 crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
2503 }
2504 }
2505}
2506impl<R>
2507 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError, R>>
2508 for Error
2509where
2510 R: Send + Sync + std::fmt::Debug + 'static,
2511{
2512 fn from(
2513 err: ::aws_smithy_runtime_api::client::result::SdkError<
2514 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError,
2515 R,
2516 >,
2517 ) -> Self {
2518 match err {
2519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2522 source: err.into(),
2523 }),
2524 }
2525 }
2526}
2527impl From<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError> for Error {
2528 fn from(err: crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError) -> Self {
2529 match err {
2530 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
2531 }
2532 }
2533}
2534impl<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 {
2535 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
2536 match err {
2537 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2538 _ => Error::Unhandled(
2539 crate::error::sealed_unhandled::Unhandled {
2540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2541 source: err.into(),
2542 }
2543 ),
2544 }
2545 }
2546}
2547impl From<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
2548 fn from(err: crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
2549 match err {
2550 crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2551 }
2552 }
2553}
2554impl<R>
2555 From<
2556 ::aws_smithy_runtime_api::client::result::SdkError<
2557 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2558 R,
2559 >,
2560 > for Error
2561where
2562 R: Send + Sync + std::fmt::Debug + 'static,
2563{
2564 fn from(
2565 err: ::aws_smithy_runtime_api::client::result::SdkError<
2566 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2567 R,
2568 >,
2569 ) -> Self {
2570 match err {
2571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2574 source: err.into(),
2575 }),
2576 }
2577 }
2578}
2579impl From<crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError> for Error {
2580 fn from(err: crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError) -> Self {
2581 match err {
2582 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
2583 Error::Unhandled(inner)
2584 }
2585 }
2586 }
2587}
2588impl<R>
2589 From<
2590 ::aws_smithy_runtime_api::client::result::SdkError<
2591 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2592 R,
2593 >,
2594 > for Error
2595where
2596 R: Send + Sync + std::fmt::Debug + 'static,
2597{
2598 fn from(
2599 err: ::aws_smithy_runtime_api::client::result::SdkError<
2600 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2601 R,
2602 >,
2603 ) -> Self {
2604 match err {
2605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2608 source: err.into(),
2609 }),
2610 }
2611 }
2612}
2613impl From<crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError> for Error {
2614 fn from(err: crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError) -> Self {
2615 match err {
2616 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
2617 Error::Unhandled(inner)
2618 }
2619 }
2620 }
2621}
2622impl<R>
2623 From<
2624 ::aws_smithy_runtime_api::client::result::SdkError<
2625 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2626 R,
2627 >,
2628 > for Error
2629where
2630 R: Send + Sync + std::fmt::Debug + 'static,
2631{
2632 fn from(
2633 err: ::aws_smithy_runtime_api::client::result::SdkError<
2634 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2635 R,
2636 >,
2637 ) -> Self {
2638 match err {
2639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2642 source: err.into(),
2643 }),
2644 }
2645 }
2646}
2647impl From<crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError> for Error {
2648 fn from(err: crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError) -> Self {
2649 match err {
2650 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
2651 Error::Unhandled(inner)
2652 }
2653 }
2654 }
2655}
2656impl<R>
2657 From<
2658 ::aws_smithy_runtime_api::client::result::SdkError<
2659 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2660 R,
2661 >,
2662 > for Error
2663where
2664 R: Send + Sync + std::fmt::Debug + 'static,
2665{
2666 fn from(
2667 err: ::aws_smithy_runtime_api::client::result::SdkError<
2668 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2669 R,
2670 >,
2671 ) -> Self {
2672 match err {
2673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2676 source: err.into(),
2677 }),
2678 }
2679 }
2680}
2681impl From<crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError>
2682 for Error
2683{
2684 fn from(
2685 err: crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2686 ) -> Self {
2687 match err {
2688 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError::Unhandled(inner) => Error::Unhandled(inner),
2689 }
2690 }
2691}
2692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>>
2693 for Error
2694where
2695 R: Send + Sync + std::fmt::Debug + 'static,
2696{
2697 fn from(
2698 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>,
2699 ) -> Self {
2700 match err {
2701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2704 source: err.into(),
2705 }),
2706 }
2707 }
2708}
2709impl From<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError> for Error {
2710 fn from(err: crate::operation::create_managed_prefix_list::CreateManagedPrefixListError) -> Self {
2711 match err {
2712 crate::operation::create_managed_prefix_list::CreateManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
2713 }
2714 }
2715}
2716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>> for Error
2717where
2718 R: Send + Sync + std::fmt::Debug + 'static,
2719{
2720 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>) -> Self {
2721 match err {
2722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2725 source: err.into(),
2726 }),
2727 }
2728 }
2729}
2730impl From<crate::operation::create_nat_gateway::CreateNatGatewayError> for Error {
2731 fn from(err: crate::operation::create_nat_gateway::CreateNatGatewayError) -> Self {
2732 match err {
2733 crate::operation::create_nat_gateway::CreateNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2734 }
2735 }
2736}
2737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>> for Error
2738where
2739 R: Send + Sync + std::fmt::Debug + 'static,
2740{
2741 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>) -> Self {
2742 match err {
2743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2746 source: err.into(),
2747 }),
2748 }
2749 }
2750}
2751impl From<crate::operation::create_network_acl::CreateNetworkAclError> for Error {
2752 fn from(err: crate::operation::create_network_acl::CreateNetworkAclError) -> Self {
2753 match err {
2754 crate::operation::create_network_acl::CreateNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
2755 }
2756 }
2757}
2758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>> for Error
2759where
2760 R: Send + Sync + std::fmt::Debug + 'static,
2761{
2762 fn from(
2763 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>,
2764 ) -> Self {
2765 match err {
2766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2769 source: err.into(),
2770 }),
2771 }
2772 }
2773}
2774impl From<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError> for Error {
2775 fn from(err: crate::operation::create_network_acl_entry::CreateNetworkAclEntryError) -> Self {
2776 match err {
2777 crate::operation::create_network_acl_entry::CreateNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
2778 }
2779 }
2780}
2781impl<R>
2782 From<
2783 ::aws_smithy_runtime_api::client::result::SdkError<
2784 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2785 R,
2786 >,
2787 > for Error
2788where
2789 R: Send + Sync + std::fmt::Debug + 'static,
2790{
2791 fn from(
2792 err: ::aws_smithy_runtime_api::client::result::SdkError<
2793 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2794 R,
2795 >,
2796 ) -> Self {
2797 match err {
2798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2801 source: err.into(),
2802 }),
2803 }
2804 }
2805}
2806impl From<crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError> for Error {
2807 fn from(err: crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError) -> Self {
2808 match err {
2809 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError::Unhandled(inner) => {
2810 Error::Unhandled(inner)
2811 }
2812 }
2813 }
2814}
2815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>>
2816 for Error
2817where
2818 R: Send + Sync + std::fmt::Debug + 'static,
2819{
2820 fn from(
2821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>,
2822 ) -> Self {
2823 match err {
2824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2827 source: err.into(),
2828 }),
2829 }
2830 }
2831}
2832impl From<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError> for Error {
2833 fn from(err: crate::operation::create_network_insights_path::CreateNetworkInsightsPathError) -> Self {
2834 match err {
2835 crate::operation::create_network_insights_path::CreateNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
2836 }
2837 }
2838}
2839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>> for Error
2840where
2841 R: Send + Sync + std::fmt::Debug + 'static,
2842{
2843 fn from(
2844 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>,
2845 ) -> Self {
2846 match err {
2847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2850 source: err.into(),
2851 }),
2852 }
2853 }
2854}
2855impl From<crate::operation::create_network_interface::CreateNetworkInterfaceError> for Error {
2856 fn from(err: crate::operation::create_network_interface::CreateNetworkInterfaceError) -> Self {
2857 match err {
2858 crate::operation::create_network_interface::CreateNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
2859 }
2860 }
2861}
2862impl<R>
2863 From<
2864 ::aws_smithy_runtime_api::client::result::SdkError<
2865 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2866 R,
2867 >,
2868 > for Error
2869where
2870 R: Send + Sync + std::fmt::Debug + 'static,
2871{
2872 fn from(
2873 err: ::aws_smithy_runtime_api::client::result::SdkError<
2874 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2875 R,
2876 >,
2877 ) -> Self {
2878 match err {
2879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2882 source: err.into(),
2883 }),
2884 }
2885 }
2886}
2887impl From<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError> for Error {
2888 fn from(err: crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError) -> Self {
2889 match err {
2890 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
2891 }
2892 }
2893}
2894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>> for Error
2895where
2896 R: Send + Sync + std::fmt::Debug + 'static,
2897{
2898 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>) -> Self {
2899 match err {
2900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2903 source: err.into(),
2904 }),
2905 }
2906 }
2907}
2908impl From<crate::operation::create_placement_group::CreatePlacementGroupError> for Error {
2909 fn from(err: crate::operation::create_placement_group::CreatePlacementGroupError) -> Self {
2910 match err {
2911 crate::operation::create_placement_group::CreatePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
2912 }
2913 }
2914}
2915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>> for Error
2916where
2917 R: Send + Sync + std::fmt::Debug + 'static,
2918{
2919 fn from(
2920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>,
2921 ) -> Self {
2922 match err {
2923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2926 source: err.into(),
2927 }),
2928 }
2929 }
2930}
2931impl From<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError> for Error {
2932 fn from(err: crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError) -> Self {
2933 match err {
2934 crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
2935 }
2936 }
2937}
2938impl<R>
2939 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError, R>>
2940 for Error
2941where
2942 R: Send + Sync + std::fmt::Debug + 'static,
2943{
2944 fn from(
2945 err: ::aws_smithy_runtime_api::client::result::SdkError<
2946 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError,
2947 R,
2948 >,
2949 ) -> Self {
2950 match err {
2951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2954 source: err.into(),
2955 }),
2956 }
2957 }
2958}
2959impl From<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError> for Error {
2960 fn from(err: crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError) -> Self {
2961 match err {
2962 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError::Unhandled(inner) => Error::Unhandled(inner),
2963 }
2964 }
2965}
2966impl<R>
2967 From<
2968 ::aws_smithy_runtime_api::client::result::SdkError<
2969 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2970 R,
2971 >,
2972 > for Error
2973where
2974 R: Send + Sync + std::fmt::Debug + 'static,
2975{
2976 fn from(
2977 err: ::aws_smithy_runtime_api::client::result::SdkError<
2978 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2979 R,
2980 >,
2981 ) -> Self {
2982 match err {
2983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2986 source: err.into(),
2987 }),
2988 }
2989 }
2990}
2991impl From<crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError> for Error {
2992 fn from(err: crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError) -> Self {
2993 match err {
2994 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
2995 }
2996 }
2997}
2998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>>
2999 for Error
3000where
3001 R: Send + Sync + std::fmt::Debug + 'static,
3002{
3003 fn from(
3004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>,
3005 ) -> Self {
3006 match err {
3007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3010 source: err.into(),
3011 }),
3012 }
3013 }
3014}
3015impl From<crate::operation::create_restore_image_task::CreateRestoreImageTaskError> for Error {
3016 fn from(err: crate::operation::create_restore_image_task::CreateRestoreImageTaskError) -> Self {
3017 match err {
3018 crate::operation::create_restore_image_task::CreateRestoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3019 }
3020 }
3021}
3022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
3023where
3024 R: Send + Sync + std::fmt::Debug + 'static,
3025{
3026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
3027 match err {
3028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3031 source: err.into(),
3032 }),
3033 }
3034 }
3035}
3036impl From<crate::operation::create_route::CreateRouteError> for Error {
3037 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
3038 match err {
3039 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
3040 }
3041 }
3042}
3043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>> for Error
3044where
3045 R: Send + Sync + std::fmt::Debug + 'static,
3046{
3047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>) -> Self {
3048 match err {
3049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3052 source: err.into(),
3053 }),
3054 }
3055 }
3056}
3057impl From<crate::operation::create_route_server::CreateRouteServerError> for Error {
3058 fn from(err: crate::operation::create_route_server::CreateRouteServerError) -> Self {
3059 match err {
3060 crate::operation::create_route_server::CreateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
3061 }
3062 }
3063}
3064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>>
3065 for Error
3066where
3067 R: Send + Sync + std::fmt::Debug + 'static,
3068{
3069 fn from(
3070 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>,
3071 ) -> Self {
3072 match err {
3073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3076 source: err.into(),
3077 }),
3078 }
3079 }
3080}
3081impl From<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError> for Error {
3082 fn from(err: crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError) -> Self {
3083 match err {
3084 crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3085 }
3086 }
3087}
3088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>> 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_route_server_peer::CreateRouteServerPeerError, 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_route_server_peer::CreateRouteServerPeerError> for Error {
3105 fn from(err: crate::operation::create_route_server_peer::CreateRouteServerPeerError) -> Self {
3106 match err {
3107 crate::operation::create_route_server_peer::CreateRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
3108 }
3109 }
3110}
3111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, 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_table::CreateRouteTableError, 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_table::CreateRouteTableError> for Error {
3126 fn from(err: crate::operation::create_route_table::CreateRouteTableError) -> Self {
3127 match err {
3128 crate::operation::create_route_table::CreateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3129 }
3130 }
3131}
3132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, 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_security_group::CreateSecurityGroupError, 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_security_group::CreateSecurityGroupError> for Error {
3147 fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
3148 match err {
3149 crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
3150 }
3151 }
3152}
3153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
3154where
3155 R: Send + Sync + std::fmt::Debug + 'static,
3156{
3157 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
3158 match err {
3159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3162 source: err.into(),
3163 }),
3164 }
3165 }
3166}
3167impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
3168 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
3169 match err {
3170 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
3171 }
3172 }
3173}
3174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>> for Error
3175where
3176 R: Send + Sync + std::fmt::Debug + 'static,
3177{
3178 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>) -> Self {
3179 match err {
3180 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3181 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3182 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3183 source: err.into(),
3184 }),
3185 }
3186 }
3187}
3188impl From<crate::operation::create_snapshots::CreateSnapshotsError> for Error {
3189 fn from(err: crate::operation::create_snapshots::CreateSnapshotsError) -> Self {
3190 match err {
3191 crate::operation::create_snapshots::CreateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
3192 }
3193 }
3194}
3195impl<R>
3196 From<
3197 ::aws_smithy_runtime_api::client::result::SdkError<
3198 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3199 R,
3200 >,
3201 > for Error
3202where
3203 R: Send + Sync + std::fmt::Debug + 'static,
3204{
3205 fn from(
3206 err: ::aws_smithy_runtime_api::client::result::SdkError<
3207 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3208 R,
3209 >,
3210 ) -> Self {
3211 match err {
3212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3215 source: err.into(),
3216 }),
3217 }
3218 }
3219}
3220impl From<crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError> for Error {
3221 fn from(err: crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError) -> Self {
3222 match err {
3223 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3224 }
3225 }
3226}
3227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>> for Error
3228where
3229 R: Send + Sync + std::fmt::Debug + 'static,
3230{
3231 fn from(
3232 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>,
3233 ) -> Self {
3234 match err {
3235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3238 source: err.into(),
3239 }),
3240 }
3241 }
3242}
3243impl From<crate::operation::create_store_image_task::CreateStoreImageTaskError> for Error {
3244 fn from(err: crate::operation::create_store_image_task::CreateStoreImageTaskError) -> Self {
3245 match err {
3246 crate::operation::create_store_image_task::CreateStoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3247 }
3248 }
3249}
3250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>> for Error
3251where
3252 R: Send + Sync + std::fmt::Debug + 'static,
3253{
3254 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>) -> Self {
3255 match err {
3256 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3257 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3258 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3259 source: err.into(),
3260 }),
3261 }
3262 }
3263}
3264impl From<crate::operation::create_subnet::CreateSubnetError> for Error {
3265 fn from(err: crate::operation::create_subnet::CreateSubnetError) -> Self {
3266 match err {
3267 crate::operation::create_subnet::CreateSubnetError::Unhandled(inner) => Error::Unhandled(inner),
3268 }
3269 }
3270}
3271impl<R>
3272 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError, R>>
3273 for Error
3274where
3275 R: Send + Sync + std::fmt::Debug + 'static,
3276{
3277 fn from(
3278 err: ::aws_smithy_runtime_api::client::result::SdkError<
3279 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError,
3280 R,
3281 >,
3282 ) -> Self {
3283 match err {
3284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3287 source: err.into(),
3288 }),
3289 }
3290 }
3291}
3292impl From<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError> for Error {
3293 fn from(err: crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError) -> Self {
3294 match err {
3295 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
3296 }
3297 }
3298}
3299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
3300where
3301 R: Send + Sync + std::fmt::Debug + 'static,
3302{
3303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
3304 match err {
3305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3308 source: err.into(),
3309 }),
3310 }
3311 }
3312}
3313impl From<crate::operation::create_tags::CreateTagsError> for Error {
3314 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
3315 match err {
3316 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
3317 }
3318 }
3319}
3320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>>
3321 for Error
3322where
3323 R: Send + Sync + std::fmt::Debug + 'static,
3324{
3325 fn from(
3326 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>,
3327 ) -> Self {
3328 match err {
3329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3332 source: err.into(),
3333 }),
3334 }
3335 }
3336}
3337impl From<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError> for Error {
3338 fn from(err: crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError) -> Self {
3339 match err {
3340 crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
3341 }
3342 }
3343}
3344impl<R>
3345 From<
3346 ::aws_smithy_runtime_api::client::result::SdkError<
3347 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3348 R,
3349 >,
3350 > for Error
3351where
3352 R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354 fn from(
3355 err: ::aws_smithy_runtime_api::client::result::SdkError<
3356 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3357 R,
3358 >,
3359 ) -> Self {
3360 match err {
3361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3364 source: err.into(),
3365 }),
3366 }
3367 }
3368}
3369impl From<crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError> for Error {
3370 fn from(err: crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError) -> Self {
3371 match err {
3372 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
3373 }
3374 }
3375}
3376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>>
3377 for Error
3378where
3379 R: Send + Sync + std::fmt::Debug + 'static,
3380{
3381 fn from(
3382 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>,
3383 ) -> Self {
3384 match err {
3385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3388 source: err.into(),
3389 }),
3390 }
3391 }
3392}
3393impl From<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError> for Error {
3394 fn from(err: crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError) -> Self {
3395 match err {
3396 crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
3397 }
3398 }
3399}
3400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>>
3401 for Error
3402where
3403 R: Send + Sync + std::fmt::Debug + 'static,
3404{
3405 fn from(
3406 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>,
3407 ) -> Self {
3408 match err {
3409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3412 source: err.into(),
3413 }),
3414 }
3415 }
3416}
3417impl From<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError> for Error {
3418 fn from(err: crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError) -> Self {
3419 match err {
3420 crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
3421 }
3422 }
3423}
3424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>> for Error
3425where
3426 R: Send + Sync + std::fmt::Debug + 'static,
3427{
3428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>) -> Self {
3429 match err {
3430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3433 source: err.into(),
3434 }),
3435 }
3436 }
3437}
3438impl From<crate::operation::create_transit_gateway::CreateTransitGatewayError> for Error {
3439 fn from(err: crate::operation::create_transit_gateway::CreateTransitGatewayError) -> Self {
3440 match err {
3441 crate::operation::create_transit_gateway::CreateTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
3442 }
3443 }
3444}
3445impl<R>
3446 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError, R>>
3447 for Error
3448where
3449 R: Send + Sync + std::fmt::Debug + 'static,
3450{
3451 fn from(
3452 err: ::aws_smithy_runtime_api::client::result::SdkError<
3453 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError,
3454 R,
3455 >,
3456 ) -> Self {
3457 match err {
3458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3461 source: err.into(),
3462 }),
3463 }
3464 }
3465}
3466impl From<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError> for Error {
3467 fn from(err: crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError) -> Self {
3468 match err {
3469 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
3470 }
3471 }
3472}
3473impl<R>
3474 From<
3475 ::aws_smithy_runtime_api::client::result::SdkError<
3476 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3477 R,
3478 >,
3479 > for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(
3484 err: ::aws_smithy_runtime_api::client::result::SdkError<
3485 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3486 R,
3487 >,
3488 ) -> Self {
3489 match err {
3490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3493 source: err.into(),
3494 }),
3495 }
3496 }
3497}
3498impl From<crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError> for Error {
3499 fn from(err: crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError) -> Self {
3500 match err {
3501 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
3502 }
3503 }
3504}
3505impl<R>
3506 From<
3507 ::aws_smithy_runtime_api::client::result::SdkError<
3508 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3509 R,
3510 >,
3511 > for Error
3512where
3513 R: Send + Sync + std::fmt::Debug + 'static,
3514{
3515 fn from(
3516 err: ::aws_smithy_runtime_api::client::result::SdkError<
3517 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3518 R,
3519 >,
3520 ) -> Self {
3521 match err {
3522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3525 source: err.into(),
3526 }),
3527 }
3528 }
3529}
3530impl From<crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError> for Error {
3531 fn from(err: crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError) -> Self {
3532 match err {
3533 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError::Unhandled(inner) => {
3534 Error::Unhandled(inner)
3535 }
3536 }
3537 }
3538}
3539impl<R>
3540 From<
3541 ::aws_smithy_runtime_api::client::result::SdkError<
3542 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3543 R,
3544 >,
3545 > for Error
3546where
3547 R: Send + Sync + std::fmt::Debug + 'static,
3548{
3549 fn from(
3550 err: ::aws_smithy_runtime_api::client::result::SdkError<
3551 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3552 R,
3553 >,
3554 ) -> Self {
3555 match err {
3556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3559 source: err.into(),
3560 }),
3561 }
3562 }
3563}
3564impl From<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError> for Error {
3565 fn from(err: crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError) -> Self {
3566 match err {
3567 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
3568 Error::Unhandled(inner)
3569 }
3570 }
3571 }
3572}
3573impl<R>
3574 From<
3575 ::aws_smithy_runtime_api::client::result::SdkError<
3576 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3577 R,
3578 >,
3579 > for Error
3580where
3581 R: Send + Sync + std::fmt::Debug + 'static,
3582{
3583 fn from(
3584 err: ::aws_smithy_runtime_api::client::result::SdkError<
3585 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3586 R,
3587 >,
3588 ) -> Self {
3589 match err {
3590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3593 source: err.into(),
3594 }),
3595 }
3596 }
3597}
3598impl From<crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError> for Error {
3599 fn from(err: crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError) -> Self {
3600 match err {
3601 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
3602 }
3603 }
3604}
3605impl<R>
3606 From<
3607 ::aws_smithy_runtime_api::client::result::SdkError<
3608 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3609 R,
3610 >,
3611 > for Error
3612where
3613 R: Send + Sync + std::fmt::Debug + 'static,
3614{
3615 fn from(
3616 err: ::aws_smithy_runtime_api::client::result::SdkError<
3617 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3618 R,
3619 >,
3620 ) -> Self {
3621 match err {
3622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3625 source: err.into(),
3626 }),
3627 }
3628 }
3629}
3630impl From<crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError> for Error {
3631 fn from(err: crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError) -> Self {
3632 match err {
3633 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
3634 Error::Unhandled(inner)
3635 }
3636 }
3637 }
3638}
3639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>>
3640 for Error
3641where
3642 R: Send + Sync + std::fmt::Debug + 'static,
3643{
3644 fn from(
3645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>,
3646 ) -> Self {
3647 match err {
3648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3651 source: err.into(),
3652 }),
3653 }
3654 }
3655}
3656impl From<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError> for Error {
3657 fn from(err: crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError) -> Self {
3658 match err {
3659 crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
3660 }
3661 }
3662}
3663impl<R>
3664 From<
3665 ::aws_smithy_runtime_api::client::result::SdkError<
3666 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3667 R,
3668 >,
3669 > for Error
3670where
3671 R: Send + Sync + std::fmt::Debug + 'static,
3672{
3673 fn from(
3674 err: ::aws_smithy_runtime_api::client::result::SdkError<
3675 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3676 R,
3677 >,
3678 ) -> Self {
3679 match err {
3680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3683 source: err.into(),
3684 }),
3685 }
3686 }
3687}
3688impl From<crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError> for Error {
3689 fn from(err: crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError) -> Self {
3690 match err {
3691 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3692 }
3693 }
3694}
3695impl<R>
3696 From<
3697 ::aws_smithy_runtime_api::client::result::SdkError<
3698 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3699 R,
3700 >,
3701 > for Error
3702where
3703 R: Send + Sync + std::fmt::Debug + 'static,
3704{
3705 fn from(
3706 err: ::aws_smithy_runtime_api::client::result::SdkError<
3707 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3708 R,
3709 >,
3710 ) -> Self {
3711 match err {
3712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3715 source: err.into(),
3716 }),
3717 }
3718 }
3719}
3720impl From<crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError> for Error {
3721 fn from(err: crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError) -> Self {
3722 match err {
3723 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
3724 Error::Unhandled(inner)
3725 }
3726 }
3727 }
3728}
3729impl<R>
3730 From<
3731 ::aws_smithy_runtime_api::client::result::SdkError<
3732 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3733 R,
3734 >,
3735 > for Error
3736where
3737 R: Send + Sync + std::fmt::Debug + 'static,
3738{
3739 fn from(
3740 err: ::aws_smithy_runtime_api::client::result::SdkError<
3741 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3742 R,
3743 >,
3744 ) -> Self {
3745 match err {
3746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3749 source: err.into(),
3750 }),
3751 }
3752 }
3753}
3754impl From<crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError> for Error {
3755 fn from(err: crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError) -> Self {
3756 match err {
3757 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError::Unhandled(inner) => {
3758 Error::Unhandled(inner)
3759 }
3760 }
3761 }
3762}
3763impl<R>
3764 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError, R>>
3765 for Error
3766where
3767 R: Send + Sync + std::fmt::Debug + 'static,
3768{
3769 fn from(
3770 err: ::aws_smithy_runtime_api::client::result::SdkError<
3771 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError,
3772 R,
3773 >,
3774 ) -> Self {
3775 match err {
3776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3779 source: err.into(),
3780 }),
3781 }
3782 }
3783}
3784impl From<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError> for Error {
3785 fn from(err: crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError) -> Self {
3786 match err {
3787 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3788 }
3789 }
3790}
3791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>>
3792 for Error
3793where
3794 R: Send + Sync + std::fmt::Debug + 'static,
3795{
3796 fn from(
3797 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>,
3798 ) -> Self {
3799 match err {
3800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3803 source: err.into(),
3804 }),
3805 }
3806 }
3807}
3808impl From<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError> for Error {
3809 fn from(err: crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError) -> Self {
3810 match err {
3811 crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
3812 }
3813 }
3814}
3815impl<R>
3816 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError, R>>
3817 for Error
3818where
3819 R: Send + Sync + std::fmt::Debug + 'static,
3820{
3821 fn from(
3822 err: ::aws_smithy_runtime_api::client::result::SdkError<
3823 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError,
3824 R,
3825 >,
3826 ) -> Self {
3827 match err {
3828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3831 source: err.into(),
3832 }),
3833 }
3834 }
3835}
3836impl From<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError> for Error {
3837 fn from(err: crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError) -> Self {
3838 match err {
3839 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3840 }
3841 }
3842}
3843impl<R>
3844 From<
3845 ::aws_smithy_runtime_api::client::result::SdkError<
3846 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3847 R,
3848 >,
3849 > for Error
3850where
3851 R: Send + Sync + std::fmt::Debug + 'static,
3852{
3853 fn from(
3854 err: ::aws_smithy_runtime_api::client::result::SdkError<
3855 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3856 R,
3857 >,
3858 ) -> Self {
3859 match err {
3860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3863 source: err.into(),
3864 }),
3865 }
3866 }
3867}
3868impl From<crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError> for Error {
3869 fn from(err: crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError) -> Self {
3870 match err {
3871 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError::Unhandled(inner) => {
3872 Error::Unhandled(inner)
3873 }
3874 }
3875 }
3876}
3877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
3878where
3879 R: Send + Sync + std::fmt::Debug + 'static,
3880{
3881 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> 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_volume::CreateVolumeError> for Error {
3892 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
3893 match err {
3894 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>> for Error
3899where
3900 R: Send + Sync + std::fmt::Debug + 'static,
3901{
3902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>) -> Self {
3903 match err {
3904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3907 source: err.into(),
3908 }),
3909 }
3910 }
3911}
3912impl From<crate::operation::create_vpc::CreateVpcError> for Error {
3913 fn from(err: crate::operation::create_vpc::CreateVpcError) -> Self {
3914 match err {
3915 crate::operation::create_vpc::CreateVpcError::Unhandled(inner) => Error::Unhandled(inner),
3916 }
3917 }
3918}
3919impl<R>
3920 From<
3921 ::aws_smithy_runtime_api::client::result::SdkError<
3922 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3923 R,
3924 >,
3925 > for Error
3926where
3927 R: Send + Sync + std::fmt::Debug + 'static,
3928{
3929 fn from(
3930 err: ::aws_smithy_runtime_api::client::result::SdkError<
3931 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3932 R,
3933 >,
3934 ) -> Self {
3935 match err {
3936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3939 source: err.into(),
3940 }),
3941 }
3942 }
3943}
3944impl From<crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError> for Error {
3945 fn from(err: crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError) -> Self {
3946 match err {
3947 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
3948 Error::Unhandled(inner)
3949 }
3950 }
3951 }
3952}
3953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
3954where
3955 R: Send + Sync + std::fmt::Debug + 'static,
3956{
3957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
3958 match err {
3959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3962 source: err.into(),
3963 }),
3964 }
3965 }
3966}
3967impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
3968 fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
3969 match err {
3970 crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3971 }
3972 }
3973}
3974impl<R>
3975 From<
3976 ::aws_smithy_runtime_api::client::result::SdkError<
3977 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3978 R,
3979 >,
3980 > for Error
3981where
3982 R: Send + Sync + std::fmt::Debug + 'static,
3983{
3984 fn from(
3985 err: ::aws_smithy_runtime_api::client::result::SdkError<
3986 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3987 R,
3988 >,
3989 ) -> Self {
3990 match err {
3991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3994 source: err.into(),
3995 }),
3996 }
3997 }
3998}
3999impl From<crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError> for Error {
4000 fn from(err: crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError) -> Self {
4001 match err {
4002 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError::Unhandled(inner) => {
4003 Error::Unhandled(inner)
4004 }
4005 }
4006 }
4007}
4008impl<R>
4009 From<
4010 ::aws_smithy_runtime_api::client::result::SdkError<
4011 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4012 R,
4013 >,
4014 > for Error
4015where
4016 R: Send + Sync + std::fmt::Debug + 'static,
4017{
4018 fn from(
4019 err: ::aws_smithy_runtime_api::client::result::SdkError<
4020 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4021 R,
4022 >,
4023 ) -> Self {
4024 match err {
4025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4028 source: err.into(),
4029 }),
4030 }
4031 }
4032}
4033impl From<crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError> for Error {
4034 fn from(err: crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError) -> Self {
4035 match err {
4036 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError::Unhandled(inner) => {
4037 Error::Unhandled(inner)
4038 }
4039 }
4040 }
4041}
4042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>>
4043 for Error
4044where
4045 R: Send + Sync + std::fmt::Debug + 'static,
4046{
4047 fn from(
4048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>,
4049 ) -> Self {
4050 match err {
4051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4054 source: err.into(),
4055 }),
4056 }
4057 }
4058}
4059impl From<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError> for Error {
4060 fn from(err: crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError) -> Self {
4061 match err {
4062 crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4063 }
4064 }
4065}
4066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>> for Error
4067where
4068 R: Send + Sync + std::fmt::Debug + 'static,
4069{
4070 fn from(
4071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>,
4072 ) -> Self {
4073 match err {
4074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4077 source: err.into(),
4078 }),
4079 }
4080 }
4081}
4082impl From<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError> for Error {
4083 fn from(err: crate::operation::create_vpn_concentrator::CreateVpnConcentratorError) -> Self {
4084 match err {
4085 crate::operation::create_vpn_concentrator::CreateVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
4086 }
4087 }
4088}
4089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>> for Error
4090where
4091 R: Send + Sync + std::fmt::Debug + 'static,
4092{
4093 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>) -> Self {
4094 match err {
4095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4098 source: err.into(),
4099 }),
4100 }
4101 }
4102}
4103impl From<crate::operation::create_vpn_connection::CreateVpnConnectionError> for Error {
4104 fn from(err: crate::operation::create_vpn_connection::CreateVpnConnectionError) -> Self {
4105 match err {
4106 crate::operation::create_vpn_connection::CreateVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4107 }
4108 }
4109}
4110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>>
4111 for Error
4112where
4113 R: Send + Sync + std::fmt::Debug + 'static,
4114{
4115 fn from(
4116 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>,
4117 ) -> Self {
4118 match err {
4119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4122 source: err.into(),
4123 }),
4124 }
4125 }
4126}
4127impl From<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError> for Error {
4128 fn from(err: crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError) -> Self {
4129 match err {
4130 crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
4131 }
4132 }
4133}
4134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>> for Error
4135where
4136 R: Send + Sync + std::fmt::Debug + 'static,
4137{
4138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>) -> Self {
4139 match err {
4140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4143 source: err.into(),
4144 }),
4145 }
4146 }
4147}
4148impl From<crate::operation::create_vpn_gateway::CreateVpnGatewayError> for Error {
4149 fn from(err: crate::operation::create_vpn_gateway::CreateVpnGatewayError) -> Self {
4150 match err {
4151 crate::operation::create_vpn_gateway::CreateVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4152 }
4153 }
4154}
4155impl<R>
4156 From<
4157 ::aws_smithy_runtime_api::client::result::SdkError<
4158 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4159 R,
4160 >,
4161 > for Error
4162where
4163 R: Send + Sync + std::fmt::Debug + 'static,
4164{
4165 fn from(
4166 err: ::aws_smithy_runtime_api::client::result::SdkError<
4167 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4168 R,
4169 >,
4170 ) -> Self {
4171 match err {
4172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4175 source: err.into(),
4176 }),
4177 }
4178 }
4179}
4180impl From<crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError> for Error {
4181 fn from(err: crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError) -> Self {
4182 match err {
4183 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
4184 }
4185 }
4186}
4187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>> for Error
4188where
4189 R: Send + Sync + std::fmt::Debug + 'static,
4190{
4191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>) -> Self {
4192 match err {
4193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4196 source: err.into(),
4197 }),
4198 }
4199 }
4200}
4201impl From<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError> for Error {
4202 fn from(err: crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError) -> Self {
4203 match err {
4204 crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4205 }
4206 }
4207}
4208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>>
4209 for Error
4210where
4211 R: Send + Sync + std::fmt::Debug + 'static,
4212{
4213 fn from(
4214 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>,
4215 ) -> Self {
4216 match err {
4217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4220 source: err.into(),
4221 }),
4222 }
4223 }
4224}
4225impl From<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError> for Error {
4226 fn from(err: crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError) -> Self {
4227 match err {
4228 crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4229 }
4230 }
4231}
4232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>> for Error
4233where
4234 R: Send + Sync + std::fmt::Debug + 'static,
4235{
4236 fn from(
4237 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>,
4238 ) -> Self {
4239 match err {
4240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4243 source: err.into(),
4244 }),
4245 }
4246 }
4247}
4248impl From<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError> for Error {
4249 fn from(err: crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError) -> Self {
4250 match err {
4251 crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
4252 }
4253 }
4254}
4255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>> for Error
4256where
4257 R: Send + Sync + std::fmt::Debug + 'static,
4258{
4259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>) -> Self {
4260 match err {
4261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4264 source: err.into(),
4265 }),
4266 }
4267 }
4268}
4269impl From<crate::operation::delete_coip_cidr::DeleteCoipCidrError> for Error {
4270 fn from(err: crate::operation::delete_coip_cidr::DeleteCoipCidrError) -> Self {
4271 match err {
4272 crate::operation::delete_coip_cidr::DeleteCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
4273 }
4274 }
4275}
4276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>> for Error
4277where
4278 R: Send + Sync + std::fmt::Debug + 'static,
4279{
4280 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>) -> Self {
4281 match err {
4282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4285 source: err.into(),
4286 }),
4287 }
4288 }
4289}
4290impl From<crate::operation::delete_coip_pool::DeleteCoipPoolError> for Error {
4291 fn from(err: crate::operation::delete_coip_pool::DeleteCoipPoolError) -> Self {
4292 match err {
4293 crate::operation::delete_coip_pool::DeleteCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
4294 }
4295 }
4296}
4297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>> for Error
4298where
4299 R: Send + Sync + std::fmt::Debug + 'static,
4300{
4301 fn from(
4302 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>,
4303 ) -> Self {
4304 match err {
4305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4308 source: err.into(),
4309 }),
4310 }
4311 }
4312}
4313impl From<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError> for Error {
4314 fn from(err: crate::operation::delete_customer_gateway::DeleteCustomerGatewayError) -> Self {
4315 match err {
4316 crate::operation::delete_customer_gateway::DeleteCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4317 }
4318 }
4319}
4320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>> for Error
4321where
4322 R: Send + Sync + std::fmt::Debug + 'static,
4323{
4324 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>) -> Self {
4325 match err {
4326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4329 source: err.into(),
4330 }),
4331 }
4332 }
4333}
4334impl From<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError> for Error {
4335 fn from(err: crate::operation::delete_dhcp_options::DeleteDhcpOptionsError) -> Self {
4336 match err {
4337 crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4338 }
4339 }
4340}
4341impl<R>
4342 From<
4343 ::aws_smithy_runtime_api::client::result::SdkError<
4344 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4345 R,
4346 >,
4347 > for Error
4348where
4349 R: Send + Sync + std::fmt::Debug + 'static,
4350{
4351 fn from(
4352 err: ::aws_smithy_runtime_api::client::result::SdkError<
4353 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4354 R,
4355 >,
4356 ) -> Self {
4357 match err {
4358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4361 source: err.into(),
4362 }),
4363 }
4364 }
4365}
4366impl From<crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError> for Error {
4367 fn from(err: crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError) -> Self {
4368 match err {
4369 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4370 }
4371 }
4372}
4373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>> for Error
4374where
4375 R: Send + Sync + std::fmt::Debug + 'static,
4376{
4377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>) -> Self {
4378 match err {
4379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4382 source: err.into(),
4383 }),
4384 }
4385 }
4386}
4387impl From<crate::operation::delete_fleets::DeleteFleetsError> for Error {
4388 fn from(err: crate::operation::delete_fleets::DeleteFleetsError) -> Self {
4389 match err {
4390 crate::operation::delete_fleets::DeleteFleetsError::Unhandled(inner) => Error::Unhandled(inner),
4391 }
4392 }
4393}
4394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>> for Error
4395where
4396 R: Send + Sync + std::fmt::Debug + 'static,
4397{
4398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>) -> Self {
4399 match err {
4400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4403 source: err.into(),
4404 }),
4405 }
4406 }
4407}
4408impl From<crate::operation::delete_flow_logs::DeleteFlowLogsError> for Error {
4409 fn from(err: crate::operation::delete_flow_logs::DeleteFlowLogsError) -> Self {
4410 match err {
4411 crate::operation::delete_flow_logs::DeleteFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
4412 }
4413 }
4414}
4415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>> for Error
4416where
4417 R: Send + Sync + std::fmt::Debug + 'static,
4418{
4419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>) -> Self {
4420 match err {
4421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4424 source: err.into(),
4425 }),
4426 }
4427 }
4428}
4429impl From<crate::operation::delete_fpga_image::DeleteFpgaImageError> for Error {
4430 fn from(err: crate::operation::delete_fpga_image::DeleteFpgaImageError) -> Self {
4431 match err {
4432 crate::operation::delete_fpga_image::DeleteFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
4433 }
4434 }
4435}
4436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>>
4437 for Error
4438where
4439 R: Send + Sync + std::fmt::Debug + 'static,
4440{
4441 fn from(
4442 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>,
4443 ) -> Self {
4444 match err {
4445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4448 source: err.into(),
4449 }),
4450 }
4451 }
4452}
4453impl From<crate::operation::delete_image_usage_report::DeleteImageUsageReportError> for Error {
4454 fn from(err: crate::operation::delete_image_usage_report::DeleteImageUsageReportError) -> Self {
4455 match err {
4456 crate::operation::delete_image_usage_report::DeleteImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
4457 }
4458 }
4459}
4460impl<R>
4461 From<
4462 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError, R>,
4463 > for Error
4464where
4465 R: Send + Sync + std::fmt::Debug + 'static,
4466{
4467 fn from(
4468 err: ::aws_smithy_runtime_api::client::result::SdkError<
4469 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError,
4470 R,
4471 >,
4472 ) -> Self {
4473 match err {
4474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4477 source: err.into(),
4478 }),
4479 }
4480 }
4481}
4482impl From<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError> for Error {
4483 fn from(err: crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError) -> Self {
4484 match err {
4485 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4486 }
4487 }
4488}
4489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>>
4490 for Error
4491where
4492 R: Send + Sync + std::fmt::Debug + 'static,
4493{
4494 fn from(
4495 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>,
4496 ) -> Self {
4497 match err {
4498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4501 source: err.into(),
4502 }),
4503 }
4504 }
4505}
4506impl From<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError> for Error {
4507 fn from(err: crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError) -> Self {
4508 match err {
4509 crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
4510 }
4511 }
4512}
4513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>> for Error
4514where
4515 R: Send + Sync + std::fmt::Debug + 'static,
4516{
4517 fn from(
4518 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>,
4519 ) -> Self {
4520 match err {
4521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4524 source: err.into(),
4525 }),
4526 }
4527 }
4528}
4529impl From<crate::operation::delete_internet_gateway::DeleteInternetGatewayError> for Error {
4530 fn from(err: crate::operation::delete_internet_gateway::DeleteInternetGatewayError) -> Self {
4531 match err {
4532 crate::operation::delete_internet_gateway::DeleteInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4533 }
4534 }
4535}
4536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>> for Error
4537where
4538 R: Send + Sync + std::fmt::Debug + 'static,
4539{
4540 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>) -> Self {
4541 match err {
4542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4545 source: err.into(),
4546 }),
4547 }
4548 }
4549}
4550impl From<crate::operation::delete_ipam::DeleteIpamError> for Error {
4551 fn from(err: crate::operation::delete_ipam::DeleteIpamError) -> Self {
4552 match err {
4553 crate::operation::delete_ipam::DeleteIpamError::Unhandled(inner) => Error::Unhandled(inner),
4554 }
4555 }
4556}
4557impl<R>
4558 From<
4559 ::aws_smithy_runtime_api::client::result::SdkError<
4560 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4561 R,
4562 >,
4563 > for Error
4564where
4565 R: Send + Sync + std::fmt::Debug + 'static,
4566{
4567 fn from(
4568 err: ::aws_smithy_runtime_api::client::result::SdkError<
4569 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4570 R,
4571 >,
4572 ) -> Self {
4573 match err {
4574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4577 source: err.into(),
4578 }),
4579 }
4580 }
4581}
4582impl From<crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError> for Error {
4583 fn from(err: crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError) -> Self {
4584 match err {
4585 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError::Unhandled(
4586 inner,
4587 ) => Error::Unhandled(inner),
4588 }
4589 }
4590}
4591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>> for Error
4592where
4593 R: Send + Sync + std::fmt::Debug + 'static,
4594{
4595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>) -> Self {
4596 match err {
4597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4600 source: err.into(),
4601 }),
4602 }
4603 }
4604}
4605impl From<crate::operation::delete_ipam_pool::DeleteIpamPoolError> for Error {
4606 fn from(err: crate::operation::delete_ipam_pool::DeleteIpamPoolError) -> Self {
4607 match err {
4608 crate::operation::delete_ipam_pool::DeleteIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
4609 }
4610 }
4611}
4612impl<R>
4613 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError, R>>
4614 for Error
4615where
4616 R: Send + Sync + std::fmt::Debug + 'static,
4617{
4618 fn from(
4619 err: ::aws_smithy_runtime_api::client::result::SdkError<
4620 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError,
4621 R,
4622 >,
4623 ) -> Self {
4624 match err {
4625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4628 source: err.into(),
4629 }),
4630 }
4631 }
4632}
4633impl From<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError> for Error {
4634 fn from(err: crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError) -> Self {
4635 match err {
4636 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
4637 }
4638 }
4639}
4640impl<R>
4641 From<
4642 ::aws_smithy_runtime_api::client::result::SdkError<
4643 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4644 R,
4645 >,
4646 > for Error
4647where
4648 R: Send + Sync + std::fmt::Debug + 'static,
4649{
4650 fn from(
4651 err: ::aws_smithy_runtime_api::client::result::SdkError<
4652 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4653 R,
4654 >,
4655 ) -> Self {
4656 match err {
4657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4660 source: err.into(),
4661 }),
4662 }
4663 }
4664}
4665impl From<crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError> for Error {
4666 fn from(err: crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError) -> Self {
4667 match err {
4668 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError::Unhandled(inner) => {
4669 Error::Unhandled(inner)
4670 }
4671 }
4672 }
4673}
4674impl<R>
4675 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError, R>>
4676 for Error
4677where
4678 R: Send + Sync + std::fmt::Debug + 'static,
4679{
4680 fn from(
4681 err: ::aws_smithy_runtime_api::client::result::SdkError<
4682 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError,
4683 R,
4684 >,
4685 ) -> Self {
4686 match err {
4687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4690 source: err.into(),
4691 }),
4692 }
4693 }
4694}
4695impl From<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError> for Error {
4696 fn from(err: crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError) -> Self {
4697 match err {
4698 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
4699 }
4700 }
4701}
4702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>> for Error
4703where
4704 R: Send + Sync + std::fmt::Debug + 'static,
4705{
4706 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>) -> Self {
4707 match err {
4708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4711 source: err.into(),
4712 }),
4713 }
4714 }
4715}
4716impl From<crate::operation::delete_ipam_scope::DeleteIpamScopeError> for Error {
4717 fn from(err: crate::operation::delete_ipam_scope::DeleteIpamScopeError) -> Self {
4718 match err {
4719 crate::operation::delete_ipam_scope::DeleteIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
4720 }
4721 }
4722}
4723impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>> for Error
4724where
4725 R: Send + Sync + std::fmt::Debug + 'static,
4726{
4727 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>) -> Self {
4728 match err {
4729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4732 source: err.into(),
4733 }),
4734 }
4735 }
4736}
4737impl From<crate::operation::delete_key_pair::DeleteKeyPairError> for Error {
4738 fn from(err: crate::operation::delete_key_pair::DeleteKeyPairError) -> Self {
4739 match err {
4740 crate::operation::delete_key_pair::DeleteKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
4741 }
4742 }
4743}
4744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>> for Error
4745where
4746 R: Send + Sync + std::fmt::Debug + 'static,
4747{
4748 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>) -> Self {
4749 match err {
4750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4753 source: err.into(),
4754 }),
4755 }
4756 }
4757}
4758impl From<crate::operation::delete_launch_template::DeleteLaunchTemplateError> for Error {
4759 fn from(err: crate::operation::delete_launch_template::DeleteLaunchTemplateError) -> Self {
4760 match err {
4761 crate::operation::delete_launch_template::DeleteLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4762 }
4763 }
4764}
4765impl<R>
4766 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError, R>>
4767 for Error
4768where
4769 R: Send + Sync + std::fmt::Debug + 'static,
4770{
4771 fn from(
4772 err: ::aws_smithy_runtime_api::client::result::SdkError<
4773 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError,
4774 R,
4775 >,
4776 ) -> Self {
4777 match err {
4778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4781 source: err.into(),
4782 }),
4783 }
4784 }
4785}
4786impl From<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError> for Error {
4787 fn from(err: crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError) -> Self {
4788 match err {
4789 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
4790 }
4791 }
4792}
4793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>>
4794 for Error
4795where
4796 R: Send + Sync + std::fmt::Debug + 'static,
4797{
4798 fn from(
4799 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>,
4800 ) -> Self {
4801 match err {
4802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4805 source: err.into(),
4806 }),
4807 }
4808 }
4809}
4810impl From<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError> for Error {
4811 fn from(err: crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError) -> Self {
4812 match err {
4813 crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
4814 }
4815 }
4816}
4817impl<R>
4818 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError, R>>
4819 for Error
4820where
4821 R: Send + Sync + std::fmt::Debug + 'static,
4822{
4823 fn from(
4824 err: ::aws_smithy_runtime_api::client::result::SdkError<
4825 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError,
4826 R,
4827 >,
4828 ) -> Self {
4829 match err {
4830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4833 source: err.into(),
4834 }),
4835 }
4836 }
4837}
4838impl From<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError> for Error {
4839 fn from(err: crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError) -> Self {
4840 match err {
4841 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
4842 }
4843 }
4844}
4845impl<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 {
4846 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
4847 match err {
4848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4849 _ => Error::Unhandled(
4850 crate::error::sealed_unhandled::Unhandled {
4851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4852 source: err.into(),
4853 }
4854 ),
4855 }
4856 }
4857}
4858impl From<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
4859 fn from(err: crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
4860 match err {
4861 crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
4862 }
4863 }
4864}
4865impl<R>
4866 From<
4867 ::aws_smithy_runtime_api::client::result::SdkError<
4868 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4869 R,
4870 >,
4871 > for Error
4872where
4873 R: Send + Sync + std::fmt::Debug + 'static,
4874{
4875 fn from(
4876 err: ::aws_smithy_runtime_api::client::result::SdkError<
4877 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4878 R,
4879 >,
4880 ) -> Self {
4881 match err {
4882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4885 source: err.into(),
4886 }),
4887 }
4888 }
4889}
4890impl From<crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError> for Error {
4891 fn from(err: crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError) -> Self {
4892 match err {
4893 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
4894 Error::Unhandled(inner)
4895 }
4896 }
4897 }
4898}
4899impl<R>
4900 From<
4901 ::aws_smithy_runtime_api::client::result::SdkError<
4902 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4903 R,
4904 >,
4905 > for Error
4906where
4907 R: Send + Sync + std::fmt::Debug + 'static,
4908{
4909 fn from(
4910 err: ::aws_smithy_runtime_api::client::result::SdkError<
4911 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4912 R,
4913 >,
4914 ) -> Self {
4915 match err {
4916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4919 source: err.into(),
4920 }),
4921 }
4922 }
4923}
4924impl From<crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError> for Error {
4925 fn from(err: crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError) -> Self {
4926 match err {
4927 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
4928 Error::Unhandled(inner)
4929 }
4930 }
4931 }
4932}
4933impl<R>
4934 From<
4935 ::aws_smithy_runtime_api::client::result::SdkError<
4936 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4937 R,
4938 >,
4939 > for Error
4940where
4941 R: Send + Sync + std::fmt::Debug + 'static,
4942{
4943 fn from(
4944 err: ::aws_smithy_runtime_api::client::result::SdkError<
4945 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4946 R,
4947 >,
4948 ) -> Self {
4949 match err {
4950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4953 source: err.into(),
4954 }),
4955 }
4956 }
4957}
4958impl From<crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError> for Error {
4959 fn from(err: crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError) -> Self {
4960 match err {
4961 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
4962 Error::Unhandled(inner)
4963 }
4964 }
4965 }
4966}
4967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>>
4968 for Error
4969where
4970 R: Send + Sync + std::fmt::Debug + 'static,
4971{
4972 fn from(
4973 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>,
4974 ) -> Self {
4975 match err {
4976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4979 source: err.into(),
4980 }),
4981 }
4982 }
4983}
4984impl From<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError> for Error {
4985 fn from(err: crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError) -> Self {
4986 match err {
4987 crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
4988 }
4989 }
4990}
4991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>> for Error
4992where
4993 R: Send + Sync + std::fmt::Debug + 'static,
4994{
4995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>) -> Self {
4996 match err {
4997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5000 source: err.into(),
5001 }),
5002 }
5003 }
5004}
5005impl From<crate::operation::delete_nat_gateway::DeleteNatGatewayError> for Error {
5006 fn from(err: crate::operation::delete_nat_gateway::DeleteNatGatewayError) -> Self {
5007 match err {
5008 crate::operation::delete_nat_gateway::DeleteNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5009 }
5010 }
5011}
5012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>> for Error
5013where
5014 R: Send + Sync + std::fmt::Debug + 'static,
5015{
5016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>) -> Self {
5017 match err {
5018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5021 source: err.into(),
5022 }),
5023 }
5024 }
5025}
5026impl From<crate::operation::delete_network_acl::DeleteNetworkAclError> for Error {
5027 fn from(err: crate::operation::delete_network_acl::DeleteNetworkAclError) -> Self {
5028 match err {
5029 crate::operation::delete_network_acl::DeleteNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
5030 }
5031 }
5032}
5033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>> for Error
5034where
5035 R: Send + Sync + std::fmt::Debug + 'static,
5036{
5037 fn from(
5038 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>,
5039 ) -> Self {
5040 match err {
5041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5044 source: err.into(),
5045 }),
5046 }
5047 }
5048}
5049impl From<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError> for Error {
5050 fn from(err: crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError) -> Self {
5051 match err {
5052 crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
5053 }
5054 }
5055}
5056impl<R>
5057 From<
5058 ::aws_smithy_runtime_api::client::result::SdkError<
5059 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5060 R,
5061 >,
5062 > for Error
5063where
5064 R: Send + Sync + std::fmt::Debug + 'static,
5065{
5066 fn from(
5067 err: ::aws_smithy_runtime_api::client::result::SdkError<
5068 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5069 R,
5070 >,
5071 ) -> Self {
5072 match err {
5073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5076 source: err.into(),
5077 }),
5078 }
5079 }
5080}
5081impl From<crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError> for Error {
5082 fn from(err: crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError) -> Self {
5083 match err {
5084 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError::Unhandled(inner) => {
5085 Error::Unhandled(inner)
5086 }
5087 }
5088 }
5089}
5090impl<R>
5091 From<
5092 ::aws_smithy_runtime_api::client::result::SdkError<
5093 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5094 R,
5095 >,
5096 > for Error
5097where
5098 R: Send + Sync + std::fmt::Debug + 'static,
5099{
5100 fn from(
5101 err: ::aws_smithy_runtime_api::client::result::SdkError<
5102 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5103 R,
5104 >,
5105 ) -> Self {
5106 match err {
5107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5110 source: err.into(),
5111 }),
5112 }
5113 }
5114}
5115impl From<crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError> for Error {
5116 fn from(err: crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError) -> Self {
5117 match err {
5118 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
5119 Error::Unhandled(inner)
5120 }
5121 }
5122 }
5123}
5124impl<R>
5125 From<
5126 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError, R>,
5127 > for Error
5128where
5129 R: Send + Sync + std::fmt::Debug + 'static,
5130{
5131 fn from(
5132 err: ::aws_smithy_runtime_api::client::result::SdkError<
5133 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError,
5134 R,
5135 >,
5136 ) -> Self {
5137 match err {
5138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5141 source: err.into(),
5142 }),
5143 }
5144 }
5145}
5146impl From<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError> for Error {
5147 fn from(err: crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError) -> Self {
5148 match err {
5149 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
5150 }
5151 }
5152}
5153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>>
5154 for Error
5155where
5156 R: Send + Sync + std::fmt::Debug + 'static,
5157{
5158 fn from(
5159 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>,
5160 ) -> Self {
5161 match err {
5162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5165 source: err.into(),
5166 }),
5167 }
5168 }
5169}
5170impl From<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError> for Error {
5171 fn from(err: crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError) -> Self {
5172 match err {
5173 crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
5174 }
5175 }
5176}
5177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>> for Error
5178where
5179 R: Send + Sync + std::fmt::Debug + 'static,
5180{
5181 fn from(
5182 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>,
5183 ) -> Self {
5184 match err {
5185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5188 source: err.into(),
5189 }),
5190 }
5191 }
5192}
5193impl From<crate::operation::delete_network_interface::DeleteNetworkInterfaceError> for Error {
5194 fn from(err: crate::operation::delete_network_interface::DeleteNetworkInterfaceError) -> Self {
5195 match err {
5196 crate::operation::delete_network_interface::DeleteNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
5197 }
5198 }
5199}
5200impl<R>
5201 From<
5202 ::aws_smithy_runtime_api::client::result::SdkError<
5203 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5204 R,
5205 >,
5206 > for Error
5207where
5208 R: Send + Sync + std::fmt::Debug + 'static,
5209{
5210 fn from(
5211 err: ::aws_smithy_runtime_api::client::result::SdkError<
5212 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5213 R,
5214 >,
5215 ) -> Self {
5216 match err {
5217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5220 source: err.into(),
5221 }),
5222 }
5223 }
5224}
5225impl From<crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError> for Error {
5226 fn from(err: crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError) -> Self {
5227 match err {
5228 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
5229 }
5230 }
5231}
5232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>> for Error
5233where
5234 R: Send + Sync + std::fmt::Debug + 'static,
5235{
5236 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>) -> Self {
5237 match err {
5238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5241 source: err.into(),
5242 }),
5243 }
5244 }
5245}
5246impl From<crate::operation::delete_placement_group::DeletePlacementGroupError> for Error {
5247 fn from(err: crate::operation::delete_placement_group::DeletePlacementGroupError) -> Self {
5248 match err {
5249 crate::operation::delete_placement_group::DeletePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
5250 }
5251 }
5252}
5253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>> for Error
5254where
5255 R: Send + Sync + std::fmt::Debug + 'static,
5256{
5257 fn from(
5258 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>,
5259 ) -> Self {
5260 match err {
5261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5264 source: err.into(),
5265 }),
5266 }
5267 }
5268}
5269impl From<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError> for Error {
5270 fn from(err: crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError) -> Self {
5271 match err {
5272 crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
5273 }
5274 }
5275}
5276impl<R>
5277 From<
5278 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError, R>,
5279 > for Error
5280where
5281 R: Send + Sync + std::fmt::Debug + 'static,
5282{
5283 fn from(
5284 err: ::aws_smithy_runtime_api::client::result::SdkError<
5285 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
5286 R,
5287 >,
5288 ) -> Self {
5289 match err {
5290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5293 source: err.into(),
5294 }),
5295 }
5296 }
5297}
5298impl From<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError> for Error {
5299 fn from(err: crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError) -> Self {
5300 match err {
5301 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
5302 }
5303 }
5304}
5305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
5306where
5307 R: Send + Sync + std::fmt::Debug + 'static,
5308{
5309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
5310 match err {
5311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5314 source: err.into(),
5315 }),
5316 }
5317 }
5318}
5319impl From<crate::operation::delete_route::DeleteRouteError> for Error {
5320 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
5321 match err {
5322 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
5323 }
5324 }
5325}
5326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>> for Error
5327where
5328 R: Send + Sync + std::fmt::Debug + 'static,
5329{
5330 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>) -> Self {
5331 match err {
5332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5335 source: err.into(),
5336 }),
5337 }
5338 }
5339}
5340impl From<crate::operation::delete_route_server::DeleteRouteServerError> for Error {
5341 fn from(err: crate::operation::delete_route_server::DeleteRouteServerError) -> Self {
5342 match err {
5343 crate::operation::delete_route_server::DeleteRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
5344 }
5345 }
5346}
5347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>>
5348 for Error
5349where
5350 R: Send + Sync + std::fmt::Debug + 'static,
5351{
5352 fn from(
5353 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>,
5354 ) -> Self {
5355 match err {
5356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5359 source: err.into(),
5360 }),
5361 }
5362 }
5363}
5364impl From<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError> for Error {
5365 fn from(err: crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError) -> Self {
5366 match err {
5367 crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5368 }
5369 }
5370}
5371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>> for Error
5372where
5373 R: Send + Sync + std::fmt::Debug + 'static,
5374{
5375 fn from(
5376 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>,
5377 ) -> Self {
5378 match err {
5379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5382 source: err.into(),
5383 }),
5384 }
5385 }
5386}
5387impl From<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError> for Error {
5388 fn from(err: crate::operation::delete_route_server_peer::DeleteRouteServerPeerError) -> Self {
5389 match err {
5390 crate::operation::delete_route_server_peer::DeleteRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
5391 }
5392 }
5393}
5394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>> for Error
5395where
5396 R: Send + Sync + std::fmt::Debug + 'static,
5397{
5398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>) -> Self {
5399 match err {
5400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5403 source: err.into(),
5404 }),
5405 }
5406 }
5407}
5408impl From<crate::operation::delete_route_table::DeleteRouteTableError> for Error {
5409 fn from(err: crate::operation::delete_route_table::DeleteRouteTableError) -> Self {
5410 match err {
5411 crate::operation::delete_route_table::DeleteRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5412 }
5413 }
5414}
5415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
5416where
5417 R: Send + Sync + std::fmt::Debug + 'static,
5418{
5419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
5420 match err {
5421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5424 source: err.into(),
5425 }),
5426 }
5427 }
5428}
5429impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
5430 fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
5431 match err {
5432 crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
5433 }
5434 }
5435}
5436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
5437where
5438 R: Send + Sync + std::fmt::Debug + 'static,
5439{
5440 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
5441 match err {
5442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5445 source: err.into(),
5446 }),
5447 }
5448 }
5449}
5450impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
5451 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
5452 match err {
5453 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5454 }
5455 }
5456}
5457impl<R>
5458 From<
5459 ::aws_smithy_runtime_api::client::result::SdkError<
5460 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5461 R,
5462 >,
5463 > for Error
5464where
5465 R: Send + Sync + std::fmt::Debug + 'static,
5466{
5467 fn from(
5468 err: ::aws_smithy_runtime_api::client::result::SdkError<
5469 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5470 R,
5471 >,
5472 ) -> Self {
5473 match err {
5474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5477 source: err.into(),
5478 }),
5479 }
5480 }
5481}
5482impl From<crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError> for Error {
5483 fn from(err: crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError) -> Self {
5484 match err {
5485 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5486 }
5487 }
5488}
5489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>> for Error
5490where
5491 R: Send + Sync + std::fmt::Debug + 'static,
5492{
5493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>) -> Self {
5494 match err {
5495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5498 source: err.into(),
5499 }),
5500 }
5501 }
5502}
5503impl From<crate::operation::delete_subnet::DeleteSubnetError> for Error {
5504 fn from(err: crate::operation::delete_subnet::DeleteSubnetError) -> Self {
5505 match err {
5506 crate::operation::delete_subnet::DeleteSubnetError::Unhandled(inner) => Error::Unhandled(inner),
5507 }
5508 }
5509}
5510impl<R>
5511 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError, R>>
5512 for Error
5513where
5514 R: Send + Sync + std::fmt::Debug + 'static,
5515{
5516 fn from(
5517 err: ::aws_smithy_runtime_api::client::result::SdkError<
5518 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError,
5519 R,
5520 >,
5521 ) -> Self {
5522 match err {
5523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5526 source: err.into(),
5527 }),
5528 }
5529 }
5530}
5531impl From<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError> for Error {
5532 fn from(err: crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError) -> Self {
5533 match err {
5534 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
5535 }
5536 }
5537}
5538impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
5539where
5540 R: Send + Sync + std::fmt::Debug + 'static,
5541{
5542 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
5543 match err {
5544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5547 source: err.into(),
5548 }),
5549 }
5550 }
5551}
5552impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
5553 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
5554 match err {
5555 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
5556 }
5557 }
5558}
5559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>>
5560 for Error
5561where
5562 R: Send + Sync + std::fmt::Debug + 'static,
5563{
5564 fn from(
5565 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>,
5566 ) -> Self {
5567 match err {
5568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5571 source: err.into(),
5572 }),
5573 }
5574 }
5575}
5576impl From<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError> for Error {
5577 fn from(err: crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError) -> Self {
5578 match err {
5579 crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
5580 }
5581 }
5582}
5583impl<R>
5584 From<
5585 ::aws_smithy_runtime_api::client::result::SdkError<
5586 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5587 R,
5588 >,
5589 > for Error
5590where
5591 R: Send + Sync + std::fmt::Debug + 'static,
5592{
5593 fn from(
5594 err: ::aws_smithy_runtime_api::client::result::SdkError<
5595 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5596 R,
5597 >,
5598 ) -> Self {
5599 match err {
5600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5603 source: err.into(),
5604 }),
5605 }
5606 }
5607}
5608impl From<crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError> for Error {
5609 fn from(err: crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError) -> Self {
5610 match err {
5611 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
5612 }
5613 }
5614}
5615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>>
5616 for Error
5617where
5618 R: Send + Sync + std::fmt::Debug + 'static,
5619{
5620 fn from(
5621 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>,
5622 ) -> Self {
5623 match err {
5624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5627 source: err.into(),
5628 }),
5629 }
5630 }
5631}
5632impl From<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError> for Error {
5633 fn from(err: crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError) -> Self {
5634 match err {
5635 crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
5636 }
5637 }
5638}
5639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>>
5640 for Error
5641where
5642 R: Send + Sync + std::fmt::Debug + 'static,
5643{
5644 fn from(
5645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>,
5646 ) -> 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_traffic_mirror_target::DeleteTrafficMirrorTargetError> for Error {
5657 fn from(err: crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError) -> Self {
5658 match err {
5659 crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
5660 }
5661 }
5662}
5663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>> for Error
5664where
5665 R: Send + Sync + std::fmt::Debug + 'static,
5666{
5667 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>) -> Self {
5668 match err {
5669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5672 source: err.into(),
5673 }),
5674 }
5675 }
5676}
5677impl From<crate::operation::delete_transit_gateway::DeleteTransitGatewayError> for Error {
5678 fn from(err: crate::operation::delete_transit_gateway::DeleteTransitGatewayError) -> Self {
5679 match err {
5680 crate::operation::delete_transit_gateway::DeleteTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5681 }
5682 }
5683}
5684impl<R>
5685 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError, R>>
5686 for Error
5687where
5688 R: Send + Sync + std::fmt::Debug + 'static,
5689{
5690 fn from(
5691 err: ::aws_smithy_runtime_api::client::result::SdkError<
5692 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError,
5693 R,
5694 >,
5695 ) -> Self {
5696 match err {
5697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5700 source: err.into(),
5701 }),
5702 }
5703 }
5704}
5705impl From<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError> for Error {
5706 fn from(err: crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError) -> Self {
5707 match err {
5708 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
5709 }
5710 }
5711}
5712impl<R>
5713 From<
5714 ::aws_smithy_runtime_api::client::result::SdkError<
5715 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5716 R,
5717 >,
5718 > for Error
5719where
5720 R: Send + Sync + std::fmt::Debug + 'static,
5721{
5722 fn from(
5723 err: ::aws_smithy_runtime_api::client::result::SdkError<
5724 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5725 R,
5726 >,
5727 ) -> Self {
5728 match err {
5729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5732 source: err.into(),
5733 }),
5734 }
5735 }
5736}
5737impl From<crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError> for Error {
5738 fn from(err: crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError) -> Self {
5739 match err {
5740 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
5741 }
5742 }
5743}
5744impl<R>
5745 From<
5746 ::aws_smithy_runtime_api::client::result::SdkError<
5747 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5748 R,
5749 >,
5750 > for Error
5751where
5752 R: Send + Sync + std::fmt::Debug + 'static,
5753{
5754 fn from(
5755 err: ::aws_smithy_runtime_api::client::result::SdkError<
5756 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5757 R,
5758 >,
5759 ) -> Self {
5760 match err {
5761 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5762 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5763 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5764 source: err.into(),
5765 }),
5766 }
5767 }
5768}
5769impl From<crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError> for Error {
5770 fn from(err: crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError) -> Self {
5771 match err {
5772 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError::Unhandled(inner) => {
5773 Error::Unhandled(inner)
5774 }
5775 }
5776 }
5777}
5778impl<R>
5779 From<
5780 ::aws_smithy_runtime_api::client::result::SdkError<
5781 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5782 R,
5783 >,
5784 > for Error
5785where
5786 R: Send + Sync + std::fmt::Debug + 'static,
5787{
5788 fn from(
5789 err: ::aws_smithy_runtime_api::client::result::SdkError<
5790 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5791 R,
5792 >,
5793 ) -> Self {
5794 match err {
5795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5798 source: err.into(),
5799 }),
5800 }
5801 }
5802}
5803impl From<crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError> for Error {
5804 fn from(err: crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError) -> Self {
5805 match err {
5806 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
5807 Error::Unhandled(inner)
5808 }
5809 }
5810 }
5811}
5812impl<R>
5813 From<
5814 ::aws_smithy_runtime_api::client::result::SdkError<
5815 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5816 R,
5817 >,
5818 > for Error
5819where
5820 R: Send + Sync + std::fmt::Debug + 'static,
5821{
5822 fn from(
5823 err: ::aws_smithy_runtime_api::client::result::SdkError<
5824 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5825 R,
5826 >,
5827 ) -> Self {
5828 match err {
5829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5832 source: err.into(),
5833 }),
5834 }
5835 }
5836}
5837impl From<crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError> for Error {
5838 fn from(err: crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError) -> Self {
5839 match err {
5840 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
5841 }
5842 }
5843}
5844impl<R>
5845 From<
5846 ::aws_smithy_runtime_api::client::result::SdkError<
5847 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5848 R,
5849 >,
5850 > for Error
5851where
5852 R: Send + Sync + std::fmt::Debug + 'static,
5853{
5854 fn from(
5855 err: ::aws_smithy_runtime_api::client::result::SdkError<
5856 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5857 R,
5858 >,
5859 ) -> Self {
5860 match err {
5861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5864 source: err.into(),
5865 }),
5866 }
5867 }
5868}
5869impl From<crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError> for Error {
5870 fn from(err: crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError) -> Self {
5871 match err {
5872 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
5873 Error::Unhandled(inner)
5874 }
5875 }
5876 }
5877}
5878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>>
5879 for Error
5880where
5881 R: Send + Sync + std::fmt::Debug + 'static,
5882{
5883 fn from(
5884 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>,
5885 ) -> Self {
5886 match err {
5887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5890 source: err.into(),
5891 }),
5892 }
5893 }
5894}
5895impl From<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError> for Error {
5896 fn from(err: crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError) -> Self {
5897 match err {
5898 crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
5899 }
5900 }
5901}
5902impl<R>
5903 From<
5904 ::aws_smithy_runtime_api::client::result::SdkError<
5905 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5906 R,
5907 >,
5908 > for Error
5909where
5910 R: Send + Sync + std::fmt::Debug + 'static,
5911{
5912 fn from(
5913 err: ::aws_smithy_runtime_api::client::result::SdkError<
5914 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5915 R,
5916 >,
5917 ) -> Self {
5918 match err {
5919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5922 source: err.into(),
5923 }),
5924 }
5925 }
5926}
5927impl From<crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError> for Error {
5928 fn from(err: crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError) -> Self {
5929 match err {
5930 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5931 }
5932 }
5933}
5934impl<R>
5935 From<
5936 ::aws_smithy_runtime_api::client::result::SdkError<
5937 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5938 R,
5939 >,
5940 > for Error
5941where
5942 R: Send + Sync + std::fmt::Debug + 'static,
5943{
5944 fn from(
5945 err: ::aws_smithy_runtime_api::client::result::SdkError<
5946 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5947 R,
5948 >,
5949 ) -> Self {
5950 match err {
5951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5954 source: err.into(),
5955 }),
5956 }
5957 }
5958}
5959impl From<crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError> for Error {
5960 fn from(err: crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError) -> Self {
5961 match err {
5962 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
5963 Error::Unhandled(inner)
5964 }
5965 }
5966 }
5967}
5968impl<R>
5969 From<
5970 ::aws_smithy_runtime_api::client::result::SdkError<
5971 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5972 R,
5973 >,
5974 > for Error
5975where
5976 R: Send + Sync + std::fmt::Debug + 'static,
5977{
5978 fn from(
5979 err: ::aws_smithy_runtime_api::client::result::SdkError<
5980 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5981 R,
5982 >,
5983 ) -> Self {
5984 match err {
5985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5988 source: err.into(),
5989 }),
5990 }
5991 }
5992}
5993impl From<crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError> for Error {
5994 fn from(err: crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError) -> Self {
5995 match err {
5996 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError::Unhandled(inner) => {
5997 Error::Unhandled(inner)
5998 }
5999 }
6000 }
6001}
6002impl<R>
6003 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError, R>>
6004 for Error
6005where
6006 R: Send + Sync + std::fmt::Debug + 'static,
6007{
6008 fn from(
6009 err: ::aws_smithy_runtime_api::client::result::SdkError<
6010 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError,
6011 R,
6012 >,
6013 ) -> Self {
6014 match err {
6015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6018 source: err.into(),
6019 }),
6020 }
6021 }
6022}
6023impl From<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError> for Error {
6024 fn from(err: crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError) -> Self {
6025 match err {
6026 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
6027 }
6028 }
6029}
6030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>>
6031 for Error
6032where
6033 R: Send + Sync + std::fmt::Debug + 'static,
6034{
6035 fn from(
6036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>,
6037 ) -> Self {
6038 match err {
6039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6042 source: err.into(),
6043 }),
6044 }
6045 }
6046}
6047impl From<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError> for Error {
6048 fn from(err: crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError) -> Self {
6049 match err {
6050 crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
6051 }
6052 }
6053}
6054impl<R>
6055 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError, R>>
6056 for Error
6057where
6058 R: Send + Sync + std::fmt::Debug + 'static,
6059{
6060 fn from(
6061 err: ::aws_smithy_runtime_api::client::result::SdkError<
6062 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError,
6063 R,
6064 >,
6065 ) -> Self {
6066 match err {
6067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6070 source: err.into(),
6071 }),
6072 }
6073 }
6074}
6075impl From<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError> for Error {
6076 fn from(err: crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError) -> Self {
6077 match err {
6078 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
6079 }
6080 }
6081}
6082impl<R>
6083 From<
6084 ::aws_smithy_runtime_api::client::result::SdkError<
6085 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6086 R,
6087 >,
6088 > for Error
6089where
6090 R: Send + Sync + std::fmt::Debug + 'static,
6091{
6092 fn from(
6093 err: ::aws_smithy_runtime_api::client::result::SdkError<
6094 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6095 R,
6096 >,
6097 ) -> Self {
6098 match err {
6099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6102 source: err.into(),
6103 }),
6104 }
6105 }
6106}
6107impl From<crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError> for Error {
6108 fn from(err: crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError) -> Self {
6109 match err {
6110 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError::Unhandled(inner) => {
6111 Error::Unhandled(inner)
6112 }
6113 }
6114 }
6115}
6116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
6117where
6118 R: Send + Sync + std::fmt::Debug + 'static,
6119{
6120 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
6121 match err {
6122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6125 source: err.into(),
6126 }),
6127 }
6128 }
6129}
6130impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
6131 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
6132 match err {
6133 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
6134 }
6135 }
6136}
6137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>> for Error
6138where
6139 R: Send + Sync + std::fmt::Debug + 'static,
6140{
6141 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>) -> Self {
6142 match err {
6143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6146 source: err.into(),
6147 }),
6148 }
6149 }
6150}
6151impl From<crate::operation::delete_vpc::DeleteVpcError> for Error {
6152 fn from(err: crate::operation::delete_vpc::DeleteVpcError) -> Self {
6153 match err {
6154 crate::operation::delete_vpc::DeleteVpcError::Unhandled(inner) => Error::Unhandled(inner),
6155 }
6156 }
6157}
6158impl<R>
6159 From<
6160 ::aws_smithy_runtime_api::client::result::SdkError<
6161 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6162 R,
6163 >,
6164 > for Error
6165where
6166 R: Send + Sync + std::fmt::Debug + 'static,
6167{
6168 fn from(
6169 err: ::aws_smithy_runtime_api::client::result::SdkError<
6170 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6171 R,
6172 >,
6173 ) -> Self {
6174 match err {
6175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6178 source: err.into(),
6179 }),
6180 }
6181 }
6182}
6183impl From<crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError> for Error {
6184 fn from(err: crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError) -> Self {
6185 match err {
6186 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
6187 Error::Unhandled(inner)
6188 }
6189 }
6190 }
6191}
6192impl<R>
6193 From<
6194 ::aws_smithy_runtime_api::client::result::SdkError<
6195 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6196 R,
6197 >,
6198 > for Error
6199where
6200 R: Send + Sync + std::fmt::Debug + 'static,
6201{
6202 fn from(
6203 err: ::aws_smithy_runtime_api::client::result::SdkError<
6204 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6205 R,
6206 >,
6207 ) -> Self {
6208 match err {
6209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6212 source: err.into(),
6213 }),
6214 }
6215 }
6216}
6217impl From<crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError> for Error {
6218 fn from(err: crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError) -> Self {
6219 match err {
6220 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
6221 Error::Unhandled(inner)
6222 }
6223 }
6224 }
6225}
6226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>> for Error
6227where
6228 R: Send + Sync + std::fmt::Debug + 'static,
6229{
6230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>) -> Self {
6231 match err {
6232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6235 source: err.into(),
6236 }),
6237 }
6238 }
6239}
6240impl From<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError> for Error {
6241 fn from(err: crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError) -> Self {
6242 match err {
6243 crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6244 }
6245 }
6246}
6247impl<R>
6248 From<
6249 ::aws_smithy_runtime_api::client::result::SdkError<
6250 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6251 R,
6252 >,
6253 > for Error
6254where
6255 R: Send + Sync + std::fmt::Debug + 'static,
6256{
6257 fn from(
6258 err: ::aws_smithy_runtime_api::client::result::SdkError<
6259 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6260 R,
6261 >,
6262 ) -> Self {
6263 match err {
6264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6267 source: err.into(),
6268 }),
6269 }
6270 }
6271}
6272impl From<crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError> for Error {
6273 fn from(err: crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError) -> Self {
6274 match err {
6275 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
6276 Error::Unhandled(inner)
6277 }
6278 }
6279 }
6280}
6281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>>
6282 for Error
6283where
6284 R: Send + Sync + std::fmt::Debug + 'static,
6285{
6286 fn from(
6287 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>,
6288 ) -> Self {
6289 match err {
6290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6293 source: err.into(),
6294 }),
6295 }
6296 }
6297}
6298impl From<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError> for Error {
6299 fn from(err: crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError) -> Self {
6300 match err {
6301 crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6302 }
6303 }
6304}
6305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError, R>> for Error
6306where
6307 R: Send + Sync + std::fmt::Debug + 'static,
6308{
6309 fn from(
6310 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError, R>,
6311 ) -> Self {
6312 match err {
6313 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6314 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6315 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6316 source: err.into(),
6317 }),
6318 }
6319 }
6320}
6321impl From<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError> for Error {
6322 fn from(err: crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError) -> Self {
6323 match err {
6324 crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
6325 }
6326 }
6327}
6328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>> for Error
6329where
6330 R: Send + Sync + std::fmt::Debug + 'static,
6331{
6332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>) -> Self {
6333 match err {
6334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6337 source: err.into(),
6338 }),
6339 }
6340 }
6341}
6342impl From<crate::operation::delete_vpn_connection::DeleteVpnConnectionError> for Error {
6343 fn from(err: crate::operation::delete_vpn_connection::DeleteVpnConnectionError) -> Self {
6344 match err {
6345 crate::operation::delete_vpn_connection::DeleteVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6346 }
6347 }
6348}
6349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>>
6350 for Error
6351where
6352 R: Send + Sync + std::fmt::Debug + 'static,
6353{
6354 fn from(
6355 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>,
6356 ) -> Self {
6357 match err {
6358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6361 source: err.into(),
6362 }),
6363 }
6364 }
6365}
6366impl From<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError> for Error {
6367 fn from(err: crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError) -> Self {
6368 match err {
6369 crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
6370 }
6371 }
6372}
6373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>> for Error
6374where
6375 R: Send + Sync + std::fmt::Debug + 'static,
6376{
6377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>) -> Self {
6378 match err {
6379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6382 source: err.into(),
6383 }),
6384 }
6385 }
6386}
6387impl From<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError> for Error {
6388 fn from(err: crate::operation::delete_vpn_gateway::DeleteVpnGatewayError) -> Self {
6389 match err {
6390 crate::operation::delete_vpn_gateway::DeleteVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
6391 }
6392 }
6393}
6394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
6395where
6396 R: Send + Sync + std::fmt::Debug + 'static,
6397{
6398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
6399 match err {
6400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6403 source: err.into(),
6404 }),
6405 }
6406 }
6407}
6408impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
6409 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
6410 match err {
6411 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
6412 }
6413 }
6414}
6415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>> for Error
6416where
6417 R: Send + Sync + std::fmt::Debug + 'static,
6418{
6419 fn from(
6420 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>,
6421 ) -> Self {
6422 match err {
6423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6426 source: err.into(),
6427 }),
6428 }
6429 }
6430}
6431impl From<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError> for Error {
6432 fn from(err: crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError) -> Self {
6433 match err {
6434 crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
6435 }
6436 }
6437}
6438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>>
6439 for Error
6440where
6441 R: Send + Sync + std::fmt::Debug + 'static,
6442{
6443 fn from(
6444 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>,
6445 ) -> Self {
6446 match err {
6447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6450 source: err.into(),
6451 }),
6452 }
6453 }
6454}
6455impl From<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError> for Error {
6456 fn from(err: crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError) -> Self {
6457 match err {
6458 crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6459 }
6460 }
6461}
6462impl<R>
6463 From<
6464 ::aws_smithy_runtime_api::client::result::SdkError<
6465 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6466 R,
6467 >,
6468 > for Error
6469where
6470 R: Send + Sync + std::fmt::Debug + 'static,
6471{
6472 fn from(
6473 err: ::aws_smithy_runtime_api::client::result::SdkError<
6474 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6475 R,
6476 >,
6477 ) -> Self {
6478 match err {
6479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6482 source: err.into(),
6483 }),
6484 }
6485 }
6486}
6487impl From<crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError> for Error {
6488 fn from(err: crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError) -> Self {
6489 match err {
6490 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6491 }
6492 }
6493}
6494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>> for Error
6495where
6496 R: Send + Sync + std::fmt::Debug + 'static,
6497{
6498 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>) -> Self {
6499 match err {
6500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6503 source: err.into(),
6504 }),
6505 }
6506 }
6507}
6508impl From<crate::operation::deregister_image::DeregisterImageError> for Error {
6509 fn from(err: crate::operation::deregister_image::DeregisterImageError) -> Self {
6510 match err {
6511 crate::operation::deregister_image::DeregisterImageError::Unhandled(inner) => Error::Unhandled(inner),
6512 }
6513 }
6514}
6515impl<R>
6516 From<
6517 ::aws_smithy_runtime_api::client::result::SdkError<
6518 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6519 R,
6520 >,
6521 > for Error
6522where
6523 R: Send + Sync + std::fmt::Debug + 'static,
6524{
6525 fn from(
6526 err: ::aws_smithy_runtime_api::client::result::SdkError<
6527 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6528 R,
6529 >,
6530 ) -> Self {
6531 match err {
6532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6535 source: err.into(),
6536 }),
6537 }
6538 }
6539}
6540impl From<crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError> for Error {
6541 fn from(err: crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError) -> Self {
6542 match err {
6543 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError::Unhandled(
6544 inner,
6545 ) => Error::Unhandled(inner),
6546 }
6547 }
6548}
6549impl<R>
6550 From<
6551 ::aws_smithy_runtime_api::client::result::SdkError<
6552 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6553 R,
6554 >,
6555 > for Error
6556where
6557 R: Send + Sync + std::fmt::Debug + 'static,
6558{
6559 fn from(
6560 err: ::aws_smithy_runtime_api::client::result::SdkError<
6561 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6562 R,
6563 >,
6564 ) -> Self {
6565 match err {
6566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6569 source: err.into(),
6570 }),
6571 }
6572 }
6573}
6574impl From<crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError> for Error {
6575 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError) -> Self {
6576 match err {
6577 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError::Unhandled(
6578 inner,
6579 ) => Error::Unhandled(inner),
6580 }
6581 }
6582}
6583impl<R>
6584 From<
6585 ::aws_smithy_runtime_api::client::result::SdkError<
6586 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6587 R,
6588 >,
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<
6595 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6596 R,
6597 >,
6598 ) -> Self {
6599 match err {
6600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6603 source: err.into(),
6604 }),
6605 }
6606 }
6607}
6608impl From<crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError> for Error {
6609 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError) -> Self {
6610 match err {
6611 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError::Unhandled(
6612 inner,
6613 ) => Error::Unhandled(inner),
6614 }
6615 }
6616}
6617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
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<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
6624 ) -> Self {
6625 match err {
6626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6629 source: err.into(),
6630 }),
6631 }
6632 }
6633}
6634impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
6635 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
6636 match err {
6637 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
6638 }
6639 }
6640}
6641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>> for Error
6642where
6643 R: Send + Sync + std::fmt::Debug + 'static,
6644{
6645 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>) -> Self {
6646 match err {
6647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6650 source: err.into(),
6651 }),
6652 }
6653 }
6654}
6655impl From<crate::operation::describe_addresses::DescribeAddressesError> for Error {
6656 fn from(err: crate::operation::describe_addresses::DescribeAddressesError) -> Self {
6657 match err {
6658 crate::operation::describe_addresses::DescribeAddressesError::Unhandled(inner) => Error::Unhandled(inner),
6659 }
6660 }
6661}
6662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>>
6663 for Error
6664where
6665 R: Send + Sync + std::fmt::Debug + 'static,
6666{
6667 fn from(
6668 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>,
6669 ) -> Self {
6670 match err {
6671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6674 source: err.into(),
6675 }),
6676 }
6677 }
6678}
6679impl From<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError> for Error {
6680 fn from(err: crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError) -> Self {
6681 match err {
6682 crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError::Unhandled(inner) => Error::Unhandled(inner),
6683 }
6684 }
6685}
6686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>>
6687 for Error
6688where
6689 R: Send + Sync + std::fmt::Debug + 'static,
6690{
6691 fn from(
6692 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>,
6693 ) -> Self {
6694 match err {
6695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6698 source: err.into(),
6699 }),
6700 }
6701 }
6702}
6703impl From<crate::operation::describe_address_transfers::DescribeAddressTransfersError> for Error {
6704 fn from(err: crate::operation::describe_address_transfers::DescribeAddressTransfersError) -> Self {
6705 match err {
6706 crate::operation::describe_address_transfers::DescribeAddressTransfersError::Unhandled(inner) => Error::Unhandled(inner),
6707 }
6708 }
6709}
6710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>>
6711 for Error
6712where
6713 R: Send + Sync + std::fmt::Debug + 'static,
6714{
6715 fn from(
6716 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>,
6717 ) -> Self {
6718 match err {
6719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6722 source: err.into(),
6723 }),
6724 }
6725 }
6726}
6727impl From<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError> for Error {
6728 fn from(err: crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError) -> Self {
6729 match err {
6730 crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
6731 }
6732 }
6733}
6734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>>
6735 for Error
6736where
6737 R: Send + Sync + std::fmt::Debug + 'static,
6738{
6739 fn from(
6740 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>,
6741 ) -> Self {
6742 match err {
6743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6746 source: err.into(),
6747 }),
6748 }
6749 }
6750}
6751impl From<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError> for Error {
6752 fn from(err: crate::operation::describe_availability_zones::DescribeAvailabilityZonesError) -> Self {
6753 match err {
6754 crate::operation::describe_availability_zones::DescribeAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
6755 }
6756 }
6757}
6758impl<R>
6759 From<
6760 ::aws_smithy_runtime_api::client::result::SdkError<
6761 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6762 R,
6763 >,
6764 > for Error
6765where
6766 R: Send + Sync + std::fmt::Debug + 'static,
6767{
6768 fn from(
6769 err: ::aws_smithy_runtime_api::client::result::SdkError<
6770 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6771 R,
6772 >,
6773 ) -> Self {
6774 match err {
6775 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6776 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6777 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6778 source: err.into(),
6779 }),
6780 }
6781 }
6782}
6783impl From<crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError> for Error {
6784 fn from(
6785 err: crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6786 ) -> Self {
6787 match err {
6788 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
6789 }
6790 }
6791}
6792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>> for Error
6793where
6794 R: Send + Sync + std::fmt::Debug + 'static,
6795{
6796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>) -> Self {
6797 match err {
6798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6801 source: err.into(),
6802 }),
6803 }
6804 }
6805}
6806impl From<crate::operation::describe_bundle_tasks::DescribeBundleTasksError> for Error {
6807 fn from(err: crate::operation::describe_bundle_tasks::DescribeBundleTasksError) -> Self {
6808 match err {
6809 crate::operation::describe_bundle_tasks::DescribeBundleTasksError::Unhandled(inner) => Error::Unhandled(inner),
6810 }
6811 }
6812}
6813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>> for Error
6814where
6815 R: Send + Sync + std::fmt::Debug + 'static,
6816{
6817 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>) -> Self {
6818 match err {
6819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6822 source: err.into(),
6823 }),
6824 }
6825 }
6826}
6827impl From<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError> for Error {
6828 fn from(err: crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError) -> Self {
6829 match err {
6830 crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
6831 }
6832 }
6833}
6834impl<R>
6835 From<
6836 ::aws_smithy_runtime_api::client::result::SdkError<
6837 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6838 R,
6839 >,
6840 > for Error
6841where
6842 R: Send + Sync + std::fmt::Debug + 'static,
6843{
6844 fn from(
6845 err: ::aws_smithy_runtime_api::client::result::SdkError<
6846 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6847 R,
6848 >,
6849 ) -> Self {
6850 match err {
6851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6854 source: err.into(),
6855 }),
6856 }
6857 }
6858}
6859impl From<crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError> for Error {
6860 fn from(err: crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError) -> Self {
6861 match err {
6862 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError::Unhandled(inner) => {
6863 Error::Unhandled(inner)
6864 }
6865 }
6866 }
6867}
6868impl<R>
6869 From<
6870 ::aws_smithy_runtime_api::client::result::SdkError<
6871 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6872 R,
6873 >,
6874 > for Error
6875where
6876 R: Send + Sync + std::fmt::Debug + 'static,
6877{
6878 fn from(
6879 err: ::aws_smithy_runtime_api::client::result::SdkError<
6880 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6881 R,
6882 >,
6883 ) -> Self {
6884 match err {
6885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6888 source: err.into(),
6889 }),
6890 }
6891 }
6892}
6893impl From<crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError> for Error {
6894 fn from(err: crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError) -> Self {
6895 match err {
6896 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError::Unhandled(inner) => {
6897 Error::Unhandled(inner)
6898 }
6899 }
6900 }
6901}
6902impl<R>
6903 From<
6904 ::aws_smithy_runtime_api::client::result::SdkError<
6905 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6906 R,
6907 >,
6908 > for Error
6909where
6910 R: Send + Sync + std::fmt::Debug + 'static,
6911{
6912 fn from(
6913 err: ::aws_smithy_runtime_api::client::result::SdkError<
6914 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6915 R,
6916 >,
6917 ) -> Self {
6918 match err {
6919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6922 source: err.into(),
6923 }),
6924 }
6925 }
6926}
6927impl From<crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError> for Error {
6928 fn from(err: crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError) -> Self {
6929 match err {
6930 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
6931 }
6932 }
6933}
6934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>> for Error
6935where
6936 R: Send + Sync + std::fmt::Debug + 'static,
6937{
6938 fn from(
6939 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>,
6940 ) -> Self {
6941 match err {
6942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6945 source: err.into(),
6946 }),
6947 }
6948 }
6949}
6950impl From<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError> for Error {
6951 fn from(err: crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError) -> Self {
6952 match err {
6953 crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError::Unhandled(inner) => Error::Unhandled(inner),
6954 }
6955 }
6956}
6957impl<R>
6958 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError, R>>
6959 for Error
6960where
6961 R: Send + Sync + std::fmt::Debug + 'static,
6962{
6963 fn from(
6964 err: ::aws_smithy_runtime_api::client::result::SdkError<
6965 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError,
6966 R,
6967 >,
6968 ) -> Self {
6969 match err {
6970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6973 source: err.into(),
6974 }),
6975 }
6976 }
6977}
6978impl From<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError> for Error {
6979 fn from(err: crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError) -> Self {
6980 match err {
6981 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError::Unhandled(inner) => Error::Unhandled(inner),
6982 }
6983 }
6984}
6985impl<R>
6986 From<
6987 ::aws_smithy_runtime_api::client::result::SdkError<
6988 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6989 R,
6990 >,
6991 > for Error
6992where
6993 R: Send + Sync + std::fmt::Debug + 'static,
6994{
6995 fn from(
6996 err: ::aws_smithy_runtime_api::client::result::SdkError<
6997 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6998 R,
6999 >,
7000 ) -> Self {
7001 match err {
7002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7005 source: err.into(),
7006 }),
7007 }
7008 }
7009}
7010impl From<crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError> for Error {
7011 fn from(err: crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError) -> Self {
7012 match err {
7013 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError::Unhandled(inner) => {
7014 Error::Unhandled(inner)
7015 }
7016 }
7017 }
7018}
7019impl<R>
7020 From<
7021 ::aws_smithy_runtime_api::client::result::SdkError<
7022 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7023 R,
7024 >,
7025 > for Error
7026where
7027 R: Send + Sync + std::fmt::Debug + 'static,
7028{
7029 fn from(
7030 err: ::aws_smithy_runtime_api::client::result::SdkError<
7031 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7032 R,
7033 >,
7034 ) -> Self {
7035 match err {
7036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7039 source: err.into(),
7040 }),
7041 }
7042 }
7043}
7044impl From<crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError> for Error {
7045 fn from(err: crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError) -> Self {
7046 match err {
7047 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError::Unhandled(inner) => {
7048 Error::Unhandled(inner)
7049 }
7050 }
7051 }
7052}
7053impl<R>
7054 From<
7055 ::aws_smithy_runtime_api::client::result::SdkError<
7056 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7057 R,
7058 >,
7059 > for Error
7060where
7061 R: Send + Sync + std::fmt::Debug + 'static,
7062{
7063 fn from(
7064 err: ::aws_smithy_runtime_api::client::result::SdkError<
7065 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7066 R,
7067 >,
7068 ) -> Self {
7069 match err {
7070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7073 source: err.into(),
7074 }),
7075 }
7076 }
7077}
7078impl From<crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError> for Error {
7079 fn from(err: crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError) -> Self {
7080 match err {
7081 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError::Unhandled(inner) => {
7082 Error::Unhandled(inner)
7083 }
7084 }
7085 }
7086}
7087impl<R>
7088 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError, R>>
7089 for Error
7090where
7091 R: Send + Sync + std::fmt::Debug + 'static,
7092{
7093 fn from(
7094 err: ::aws_smithy_runtime_api::client::result::SdkError<
7095 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError,
7096 R,
7097 >,
7098 ) -> Self {
7099 match err {
7100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7103 source: err.into(),
7104 }),
7105 }
7106 }
7107}
7108impl From<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError> for Error {
7109 fn from(err: crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError) -> Self {
7110 match err {
7111 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7112 }
7113 }
7114}
7115impl<R>
7116 From<
7117 ::aws_smithy_runtime_api::client::result::SdkError<
7118 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7119 R,
7120 >,
7121 > for Error
7122where
7123 R: Send + Sync + std::fmt::Debug + 'static,
7124{
7125 fn from(
7126 err: ::aws_smithy_runtime_api::client::result::SdkError<
7127 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7128 R,
7129 >,
7130 ) -> Self {
7131 match err {
7132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7135 source: err.into(),
7136 }),
7137 }
7138 }
7139}
7140impl From<crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError> for Error {
7141 fn from(err: crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError) -> Self {
7142 match err {
7143 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError::Unhandled(inner) => {
7144 Error::Unhandled(inner)
7145 }
7146 }
7147 }
7148}
7149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>>
7150 for Error
7151where
7152 R: Send + Sync + std::fmt::Debug + 'static,
7153{
7154 fn from(
7155 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>,
7156 ) -> Self {
7157 match err {
7158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7161 source: err.into(),
7162 }),
7163 }
7164 }
7165}
7166impl From<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError> for Error {
7167 fn from(err: crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError) -> Self {
7168 match err {
7169 crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7170 }
7171 }
7172}
7173impl<R>
7174 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError, R>>
7175 for Error
7176where
7177 R: Send + Sync + std::fmt::Debug + 'static,
7178{
7179 fn from(
7180 err: ::aws_smithy_runtime_api::client::result::SdkError<
7181 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError,
7182 R,
7183 >,
7184 ) -> Self {
7185 match err {
7186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7189 source: err.into(),
7190 }),
7191 }
7192 }
7193}
7194impl From<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError> for Error {
7195 fn from(err: crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError) -> Self {
7196 match err {
7197 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7198 }
7199 }
7200}
7201impl<R>
7202 From<
7203 ::aws_smithy_runtime_api::client::result::SdkError<
7204 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7205 R,
7206 >,
7207 > for Error
7208where
7209 R: Send + Sync + std::fmt::Debug + 'static,
7210{
7211 fn from(
7212 err: ::aws_smithy_runtime_api::client::result::SdkError<
7213 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7214 R,
7215 >,
7216 ) -> 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_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError> for Error {
7227 fn from(err: crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError) -> Self {
7228 match err {
7229 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError::Unhandled(inner) => {
7230 Error::Unhandled(inner)
7231 }
7232 }
7233 }
7234}
7235impl<R>
7236 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError, R>>
7237 for Error
7238where
7239 R: Send + Sync + std::fmt::Debug + 'static,
7240{
7241 fn from(
7242 err: ::aws_smithy_runtime_api::client::result::SdkError<
7243 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError,
7244 R,
7245 >,
7246 ) -> Self {
7247 match err {
7248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7251 source: err.into(),
7252 }),
7253 }
7254 }
7255}
7256impl From<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError> for Error {
7257 fn from(err: crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError) -> Self {
7258 match err {
7259 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
7260 }
7261 }
7262}
7263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>>
7264 for Error
7265where
7266 R: Send + Sync + std::fmt::Debug + 'static,
7267{
7268 fn from(
7269 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>,
7270 ) -> Self {
7271 match err {
7272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7275 source: err.into(),
7276 }),
7277 }
7278 }
7279}
7280impl From<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError> for Error {
7281 fn from(err: crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError) -> Self {
7282 match err {
7283 crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7284 }
7285 }
7286}
7287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>>
7288 for Error
7289where
7290 R: Send + Sync + std::fmt::Debug + 'static,
7291{
7292 fn from(
7293 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>,
7294 ) -> Self {
7295 match err {
7296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7299 source: err.into(),
7300 }),
7301 }
7302 }
7303}
7304impl From<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError> for Error {
7305 fn from(err: crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError) -> Self {
7306 match err {
7307 crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError::Unhandled(inner) => Error::Unhandled(inner),
7308 }
7309 }
7310}
7311impl<R>
7312 From<
7313 ::aws_smithy_runtime_api::client::result::SdkError<
7314 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7315 R,
7316 >,
7317 > for Error
7318where
7319 R: Send + Sync + std::fmt::Debug + 'static,
7320{
7321 fn from(
7322 err: ::aws_smithy_runtime_api::client::result::SdkError<
7323 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7324 R,
7325 >,
7326 ) -> Self {
7327 match err {
7328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7331 source: err.into(),
7332 }),
7333 }
7334 }
7335}
7336impl From<crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError> for Error {
7337 fn from(err: crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError) -> Self {
7338 match err {
7339 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError::Unhandled(inner) => Error::Unhandled(inner),
7340 }
7341 }
7342}
7343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>> for Error
7344where
7345 R: Send + Sync + std::fmt::Debug + 'static,
7346{
7347 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>) -> Self {
7348 match err {
7349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7352 source: err.into(),
7353 }),
7354 }
7355 }
7356}
7357impl From<crate::operation::describe_coip_pools::DescribeCoipPoolsError> for Error {
7358 fn from(err: crate::operation::describe_coip_pools::DescribeCoipPoolsError) -> Self {
7359 match err {
7360 crate::operation::describe_coip_pools::DescribeCoipPoolsError::Unhandled(inner) => Error::Unhandled(inner),
7361 }
7362 }
7363}
7364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>>
7365 for Error
7366where
7367 R: Send + Sync + std::fmt::Debug + 'static,
7368{
7369 fn from(
7370 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>,
7371 ) -> Self {
7372 match err {
7373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7376 source: err.into(),
7377 }),
7378 }
7379 }
7380}
7381impl From<crate::operation::describe_conversion_tasks::DescribeConversionTasksError> for Error {
7382 fn from(err: crate::operation::describe_conversion_tasks::DescribeConversionTasksError) -> Self {
7383 match err {
7384 crate::operation::describe_conversion_tasks::DescribeConversionTasksError::Unhandled(inner) => Error::Unhandled(inner),
7385 }
7386 }
7387}
7388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>>
7389 for Error
7390where
7391 R: Send + Sync + std::fmt::Debug + 'static,
7392{
7393 fn from(
7394 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>,
7395 ) -> Self {
7396 match err {
7397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7400 source: err.into(),
7401 }),
7402 }
7403 }
7404}
7405impl From<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError> for Error {
7406 fn from(err: crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError) -> Self {
7407 match err {
7408 crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7409 }
7410 }
7411}
7412impl<R>
7413 From<
7414 ::aws_smithy_runtime_api::client::result::SdkError<
7415 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7416 R,
7417 >,
7418 > for Error
7419where
7420 R: Send + Sync + std::fmt::Debug + 'static,
7421{
7422 fn from(
7423 err: ::aws_smithy_runtime_api::client::result::SdkError<
7424 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7425 R,
7426 >,
7427 ) -> Self {
7428 match err {
7429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7432 source: err.into(),
7433 }),
7434 }
7435 }
7436}
7437impl From<crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError> for Error {
7438 fn from(err: crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError) -> Self {
7439 match err {
7440 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError::Unhandled(inner) => {
7441 Error::Unhandled(inner)
7442 }
7443 }
7444 }
7445}
7446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>> for Error
7447where
7448 R: Send + Sync + std::fmt::Debug + 'static,
7449{
7450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>) -> Self {
7451 match err {
7452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7455 source: err.into(),
7456 }),
7457 }
7458 }
7459}
7460impl From<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError> for Error {
7461 fn from(err: crate::operation::describe_dhcp_options::DescribeDhcpOptionsError) -> Self {
7462 match err {
7463 crate::operation::describe_dhcp_options::DescribeDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7464 }
7465 }
7466}
7467impl<R>
7468 From<
7469 ::aws_smithy_runtime_api::client::result::SdkError<
7470 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7471 R,
7472 >,
7473 > for Error
7474where
7475 R: Send + Sync + std::fmt::Debug + 'static,
7476{
7477 fn from(
7478 err: ::aws_smithy_runtime_api::client::result::SdkError<
7479 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7480 R,
7481 >,
7482 ) -> Self {
7483 match err {
7484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7487 source: err.into(),
7488 }),
7489 }
7490 }
7491}
7492impl From<crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError> for Error {
7493 fn from(err: crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError) -> Self {
7494 match err {
7495 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError::Unhandled(inner) => {
7496 Error::Unhandled(inner)
7497 }
7498 }
7499 }
7500}
7501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>> for Error
7502where
7503 R: Send + Sync + std::fmt::Debug + 'static,
7504{
7505 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>) -> Self {
7506 match err {
7507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7510 source: err.into(),
7511 }),
7512 }
7513 }
7514}
7515impl From<crate::operation::describe_elastic_gpus::DescribeElasticGpusError> for Error {
7516 fn from(err: crate::operation::describe_elastic_gpus::DescribeElasticGpusError) -> Self {
7517 match err {
7518 crate::operation::describe_elastic_gpus::DescribeElasticGpusError::Unhandled(inner) => Error::Unhandled(inner),
7519 }
7520 }
7521}
7522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>>
7523 for Error
7524where
7525 R: Send + Sync + std::fmt::Debug + 'static,
7526{
7527 fn from(
7528 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>,
7529 ) -> Self {
7530 match err {
7531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7534 source: err.into(),
7535 }),
7536 }
7537 }
7538}
7539impl From<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError> for Error {
7540 fn from(err: crate::operation::describe_export_image_tasks::DescribeExportImageTasksError) -> Self {
7541 match err {
7542 crate::operation::describe_export_image_tasks::DescribeExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7543 }
7544 }
7545}
7546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
7547where
7548 R: Send + Sync + std::fmt::Debug + 'static,
7549{
7550 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> 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_export_tasks::DescribeExportTasksError> for Error {
7561 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
7562 match err {
7563 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
7564 }
7565 }
7566}
7567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>>
7568 for Error
7569where
7570 R: Send + Sync + std::fmt::Debug + 'static,
7571{
7572 fn from(
7573 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>,
7574 ) -> Self {
7575 match err {
7576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7579 source: err.into(),
7580 }),
7581 }
7582 }
7583}
7584impl From<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError> for Error {
7585 fn from(err: crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError) -> Self {
7586 match err {
7587 crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError::Unhandled(inner) => Error::Unhandled(inner),
7588 }
7589 }
7590}
7591impl<R>
7592 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError, R>>
7593 for Error
7594where
7595 R: Send + Sync + std::fmt::Debug + 'static,
7596{
7597 fn from(
7598 err: ::aws_smithy_runtime_api::client::result::SdkError<
7599 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError,
7600 R,
7601 >,
7602 ) -> Self {
7603 match err {
7604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7607 source: err.into(),
7608 }),
7609 }
7610 }
7611}
7612impl From<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError> for Error {
7613 fn from(err: crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError) -> Self {
7614 match err {
7615 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
7616 }
7617 }
7618}
7619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>> for Error
7620where
7621 R: Send + Sync + std::fmt::Debug + 'static,
7622{
7623 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>) -> Self {
7624 match err {
7625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7628 source: err.into(),
7629 }),
7630 }
7631 }
7632}
7633impl From<crate::operation::describe_fleet_history::DescribeFleetHistoryError> for Error {
7634 fn from(err: crate::operation::describe_fleet_history::DescribeFleetHistoryError) -> Self {
7635 match err {
7636 crate::operation::describe_fleet_history::DescribeFleetHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7637 }
7638 }
7639}
7640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>> for Error
7641where
7642 R: Send + Sync + std::fmt::Debug + 'static,
7643{
7644 fn from(
7645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>,
7646 ) -> Self {
7647 match err {
7648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7651 source: err.into(),
7652 }),
7653 }
7654 }
7655}
7656impl From<crate::operation::describe_fleet_instances::DescribeFleetInstancesError> for Error {
7657 fn from(err: crate::operation::describe_fleet_instances::DescribeFleetInstancesError) -> Self {
7658 match err {
7659 crate::operation::describe_fleet_instances::DescribeFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7660 }
7661 }
7662}
7663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
7664where
7665 R: Send + Sync + std::fmt::Debug + 'static,
7666{
7667 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
7668 match err {
7669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7672 source: err.into(),
7673 }),
7674 }
7675 }
7676}
7677impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
7678 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
7679 match err {
7680 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
7681 }
7682 }
7683}
7684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>> for Error
7685where
7686 R: Send + Sync + std::fmt::Debug + 'static,
7687{
7688 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>) -> Self {
7689 match err {
7690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7693 source: err.into(),
7694 }),
7695 }
7696 }
7697}
7698impl From<crate::operation::describe_flow_logs::DescribeFlowLogsError> for Error {
7699 fn from(err: crate::operation::describe_flow_logs::DescribeFlowLogsError) -> Self {
7700 match err {
7701 crate::operation::describe_flow_logs::DescribeFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
7702 }
7703 }
7704}
7705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>>
7706 for Error
7707where
7708 R: Send + Sync + std::fmt::Debug + 'static,
7709{
7710 fn from(
7711 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>,
7712 ) -> Self {
7713 match err {
7714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7717 source: err.into(),
7718 }),
7719 }
7720 }
7721}
7722impl From<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError> for Error {
7723 fn from(err: crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError) -> Self {
7724 match err {
7725 crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7726 }
7727 }
7728}
7729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>> for Error
7730where
7731 R: Send + Sync + std::fmt::Debug + 'static,
7732{
7733 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>) -> Self {
7734 match err {
7735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7738 source: err.into(),
7739 }),
7740 }
7741 }
7742}
7743impl From<crate::operation::describe_fpga_images::DescribeFpgaImagesError> for Error {
7744 fn from(err: crate::operation::describe_fpga_images::DescribeFpgaImagesError) -> Self {
7745 match err {
7746 crate::operation::describe_fpga_images::DescribeFpgaImagesError::Unhandled(inner) => Error::Unhandled(inner),
7747 }
7748 }
7749}
7750impl<R>
7751 From<
7752 ::aws_smithy_runtime_api::client::result::SdkError<
7753 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7754 R,
7755 >,
7756 > for Error
7757where
7758 R: Send + Sync + std::fmt::Debug + 'static,
7759{
7760 fn from(
7761 err: ::aws_smithy_runtime_api::client::result::SdkError<
7762 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7763 R,
7764 >,
7765 ) -> Self {
7766 match err {
7767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7770 source: err.into(),
7771 }),
7772 }
7773 }
7774}
7775impl From<crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError> for Error {
7776 fn from(err: crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError) -> Self {
7777 match err {
7778 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7779 }
7780 }
7781}
7782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>>
7783 for Error
7784where
7785 R: Send + Sync + std::fmt::Debug + 'static,
7786{
7787 fn from(
7788 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>,
7789 ) -> Self {
7790 match err {
7791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7794 source: err.into(),
7795 }),
7796 }
7797 }
7798}
7799impl From<crate::operation::describe_host_reservations::DescribeHostReservationsError> for Error {
7800 fn from(err: crate::operation::describe_host_reservations::DescribeHostReservationsError) -> Self {
7801 match err {
7802 crate::operation::describe_host_reservations::DescribeHostReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7803 }
7804 }
7805}
7806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>> for Error
7807where
7808 R: Send + Sync + std::fmt::Debug + 'static,
7809{
7810 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>) -> Self {
7811 match err {
7812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7815 source: err.into(),
7816 }),
7817 }
7818 }
7819}
7820impl From<crate::operation::describe_hosts::DescribeHostsError> for Error {
7821 fn from(err: crate::operation::describe_hosts::DescribeHostsError) -> Self {
7822 match err {
7823 crate::operation::describe_hosts::DescribeHostsError::Unhandled(inner) => Error::Unhandled(inner),
7824 }
7825 }
7826}
7827impl<R>
7828 From<
7829 ::aws_smithy_runtime_api::client::result::SdkError<
7830 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7831 R,
7832 >,
7833 > for Error
7834where
7835 R: Send + Sync + std::fmt::Debug + 'static,
7836{
7837 fn from(
7838 err: ::aws_smithy_runtime_api::client::result::SdkError<
7839 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7840 R,
7841 >,
7842 ) -> Self {
7843 match err {
7844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7847 source: err.into(),
7848 }),
7849 }
7850 }
7851}
7852impl From<crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError> for Error {
7853 fn from(err: crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError) -> Self {
7854 match err {
7855 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError::Unhandled(inner) => {
7856 Error::Unhandled(inner)
7857 }
7858 }
7859 }
7860}
7861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>>
7862 for Error
7863where
7864 R: Send + Sync + std::fmt::Debug + 'static,
7865{
7866 fn from(
7867 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>,
7868 ) -> Self {
7869 match err {
7870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7873 source: err.into(),
7874 }),
7875 }
7876 }
7877}
7878impl From<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError> for Error {
7879 fn from(err: crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError) -> Self {
7880 match err {
7881 crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7882 }
7883 }
7884}
7885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>> for Error
7886where
7887 R: Send + Sync + std::fmt::Debug + 'static,
7888{
7889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>) -> Self {
7890 match err {
7891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7894 source: err.into(),
7895 }),
7896 }
7897 }
7898}
7899impl From<crate::operation::describe_id_format::DescribeIdFormatError> for Error {
7900 fn from(err: crate::operation::describe_id_format::DescribeIdFormatError) -> Self {
7901 match err {
7902 crate::operation::describe_id_format::DescribeIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7903 }
7904 }
7905}
7906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>> for Error
7907where
7908 R: Send + Sync + std::fmt::Debug + 'static,
7909{
7910 fn from(
7911 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>,
7912 ) -> Self {
7913 match err {
7914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7917 source: err.into(),
7918 }),
7919 }
7920 }
7921}
7922impl From<crate::operation::describe_image_attribute::DescribeImageAttributeError> for Error {
7923 fn from(err: crate::operation::describe_image_attribute::DescribeImageAttributeError) -> Self {
7924 match err {
7925 crate::operation::describe_image_attribute::DescribeImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7926 }
7927 }
7928}
7929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>>
7930 for Error
7931where
7932 R: Send + Sync + std::fmt::Debug + 'static,
7933{
7934 fn from(
7935 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>,
7936 ) -> Self {
7937 match err {
7938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7941 source: err.into(),
7942 }),
7943 }
7944 }
7945}
7946impl From<crate::operation::describe_image_references::DescribeImageReferencesError> for Error {
7947 fn from(err: crate::operation::describe_image_references::DescribeImageReferencesError) -> Self {
7948 match err {
7949 crate::operation::describe_image_references::DescribeImageReferencesError::Unhandled(inner) => Error::Unhandled(inner),
7950 }
7951 }
7952}
7953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
7954where
7955 R: Send + Sync + std::fmt::Debug + 'static,
7956{
7957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
7958 match err {
7959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7962 source: err.into(),
7963 }),
7964 }
7965 }
7966}
7967impl From<crate::operation::describe_images::DescribeImagesError> for Error {
7968 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
7969 match err {
7970 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
7971 }
7972 }
7973}
7974impl<R>
7975 From<
7976 ::aws_smithy_runtime_api::client::result::SdkError<
7977 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7978 R,
7979 >,
7980 > for Error
7981where
7982 R: Send + Sync + std::fmt::Debug + 'static,
7983{
7984 fn from(
7985 err: ::aws_smithy_runtime_api::client::result::SdkError<
7986 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7987 R,
7988 >,
7989 ) -> Self {
7990 match err {
7991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7994 source: err.into(),
7995 }),
7996 }
7997 }
7998}
7999impl From<crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError> for Error {
8000 fn from(err: crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError) -> Self {
8001 match err {
8002 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError::Unhandled(inner) => Error::Unhandled(inner),
8003 }
8004 }
8005}
8006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>>
8007 for Error
8008where
8009 R: Send + Sync + std::fmt::Debug + 'static,
8010{
8011 fn from(
8012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>,
8013 ) -> Self {
8014 match err {
8015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8018 source: err.into(),
8019 }),
8020 }
8021 }
8022}
8023impl From<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError> for Error {
8024 fn from(err: crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError) -> Self {
8025 match err {
8026 crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError::Unhandled(inner) => Error::Unhandled(inner),
8027 }
8028 }
8029}
8030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>>
8031 for Error
8032where
8033 R: Send + Sync + std::fmt::Debug + 'static,
8034{
8035 fn from(
8036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>,
8037 ) -> Self {
8038 match err {
8039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8042 source: err.into(),
8043 }),
8044 }
8045 }
8046}
8047impl From<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError> for Error {
8048 fn from(err: crate::operation::describe_import_image_tasks::DescribeImportImageTasksError) -> Self {
8049 match err {
8050 crate::operation::describe_import_image_tasks::DescribeImportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
8051 }
8052 }
8053}
8054impl<R>
8055 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError, R>>
8056 for Error
8057where
8058 R: Send + Sync + std::fmt::Debug + 'static,
8059{
8060 fn from(
8061 err: ::aws_smithy_runtime_api::client::result::SdkError<
8062 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError,
8063 R,
8064 >,
8065 ) -> Self {
8066 match err {
8067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8070 source: err.into(),
8071 }),
8072 }
8073 }
8074}
8075impl From<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError> for Error {
8076 fn from(err: crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError) -> Self {
8077 match err {
8078 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError::Unhandled(inner) => Error::Unhandled(inner),
8079 }
8080 }
8081}
8082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
8083 for Error
8084where
8085 R: Send + Sync + std::fmt::Debug + 'static,
8086{
8087 fn from(
8088 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
8089 ) -> Self {
8090 match err {
8091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8094 source: err.into(),
8095 }),
8096 }
8097 }
8098}
8099impl From<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError> for Error {
8100 fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
8101 match err {
8102 crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8103 }
8104 }
8105}
8106impl<R>
8107 From<
8108 ::aws_smithy_runtime_api::client::result::SdkError<
8109 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8110 R,
8111 >,
8112 > for Error
8113where
8114 R: Send + Sync + std::fmt::Debug + 'static,
8115{
8116 fn from(
8117 err: ::aws_smithy_runtime_api::client::result::SdkError<
8118 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8119 R,
8120 >,
8121 ) -> Self {
8122 match err {
8123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8126 source: err.into(),
8127 }),
8128 }
8129 }
8130}
8131impl From<crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError> for Error {
8132 fn from(err: crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError) -> Self {
8133 match err {
8134 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
8135 }
8136 }
8137}
8138impl<R>
8139 From<
8140 ::aws_smithy_runtime_api::client::result::SdkError<
8141 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8142 R,
8143 >,
8144 > for Error
8145where
8146 R: Send + Sync + std::fmt::Debug + 'static,
8147{
8148 fn from(
8149 err: ::aws_smithy_runtime_api::client::result::SdkError<
8150 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8151 R,
8152 >,
8153 ) -> 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_instance_credit_specifications::DescribeInstanceCreditSpecificationsError> for Error {
8164 fn from(err: crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError) -> Self {
8165 match err {
8166 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError::Unhandled(inner) => {
8167 Error::Unhandled(inner)
8168 }
8169 }
8170 }
8171}
8172impl<R>
8173 From<
8174 ::aws_smithy_runtime_api::client::result::SdkError<
8175 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8176 R,
8177 >,
8178 > for Error
8179where
8180 R: Send + Sync + std::fmt::Debug + 'static,
8181{
8182 fn from(
8183 err: ::aws_smithy_runtime_api::client::result::SdkError<
8184 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8185 R,
8186 >,
8187 ) -> Self {
8188 match err {
8189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8192 source: err.into(),
8193 }),
8194 }
8195 }
8196}
8197impl From<crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError> for Error {
8198 fn from(err: crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError) -> Self {
8199 match err {
8200 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError::Unhandled(inner) => {
8201 Error::Unhandled(inner)
8202 }
8203 }
8204 }
8205}
8206impl<R>
8207 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError, R>>
8208 for Error
8209where
8210 R: Send + Sync + std::fmt::Debug + 'static,
8211{
8212 fn from(
8213 err: ::aws_smithy_runtime_api::client::result::SdkError<
8214 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError,
8215 R,
8216 >,
8217 ) -> Self {
8218 match err {
8219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8222 source: err.into(),
8223 }),
8224 }
8225 }
8226}
8227impl From<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError> for Error {
8228 fn from(err: crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError) -> Self {
8229 match err {
8230 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError::Unhandled(inner) => Error::Unhandled(inner),
8231 }
8232 }
8233}
8234impl<R>
8235 From<
8236 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError, R>,
8237 > for Error
8238where
8239 R: Send + Sync + std::fmt::Debug + 'static,
8240{
8241 fn from(
8242 err: ::aws_smithy_runtime_api::client::result::SdkError<
8243 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError,
8244 R,
8245 >,
8246 ) -> Self {
8247 match err {
8248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8251 source: err.into(),
8252 }),
8253 }
8254 }
8255}
8256impl From<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError> for Error {
8257 fn from(err: crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError) -> Self {
8258 match err {
8259 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8260 }
8261 }
8262}
8263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>> for Error
8264where
8265 R: Send + Sync + std::fmt::Debug + 'static,
8266{
8267 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>) -> Self {
8268 match err {
8269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8272 source: err.into(),
8273 }),
8274 }
8275 }
8276}
8277impl From<crate::operation::describe_instances::DescribeInstancesError> for Error {
8278 fn from(err: crate::operation::describe_instances::DescribeInstancesError) -> Self {
8279 match err {
8280 crate::operation::describe_instances::DescribeInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8281 }
8282 }
8283}
8284impl<R>
8285 From<
8286 ::aws_smithy_runtime_api::client::result::SdkError<
8287 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8288 R,
8289 >,
8290 > for Error
8291where
8292 R: Send + Sync + std::fmt::Debug + 'static,
8293{
8294 fn from(
8295 err: ::aws_smithy_runtime_api::client::result::SdkError<
8296 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8297 R,
8298 >,
8299 ) -> Self {
8300 match err {
8301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8304 source: err.into(),
8305 }),
8306 }
8307 }
8308}
8309impl From<crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError> for Error {
8310 fn from(err: crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError) -> Self {
8311 match err {
8312 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError::Unhandled(inner) => {
8313 Error::Unhandled(inner)
8314 }
8315 }
8316 }
8317}
8318impl<R>
8319 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError, R>>
8320 for Error
8321where
8322 R: Send + Sync + std::fmt::Debug + 'static,
8323{
8324 fn from(
8325 err: ::aws_smithy_runtime_api::client::result::SdkError<
8326 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError,
8327 R,
8328 >,
8329 ) -> Self {
8330 match err {
8331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8334 source: err.into(),
8335 }),
8336 }
8337 }
8338}
8339impl From<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError> for Error {
8340 fn from(err: crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError) -> Self {
8341 match err {
8342 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError::Unhandled(inner) => Error::Unhandled(inner),
8343 }
8344 }
8345}
8346impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>> for Error
8347where
8348 R: Send + Sync + std::fmt::Debug + 'static,
8349{
8350 fn from(
8351 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>,
8352 ) -> Self {
8353 match err {
8354 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8355 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8356 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8357 source: err.into(),
8358 }),
8359 }
8360 }
8361}
8362impl From<crate::operation::describe_instance_status::DescribeInstanceStatusError> for Error {
8363 fn from(err: crate::operation::describe_instance_status::DescribeInstanceStatusError) -> Self {
8364 match err {
8365 crate::operation::describe_instance_status::DescribeInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
8366 }
8367 }
8368}
8369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>>
8370 for Error
8371where
8372 R: Send + Sync + std::fmt::Debug + 'static,
8373{
8374 fn from(
8375 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>,
8376 ) -> Self {
8377 match err {
8378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8381 source: err.into(),
8382 }),
8383 }
8384 }
8385}
8386impl From<crate::operation::describe_instance_topology::DescribeInstanceTopologyError> for Error {
8387 fn from(err: crate::operation::describe_instance_topology::DescribeInstanceTopologyError) -> Self {
8388 match err {
8389 crate::operation::describe_instance_topology::DescribeInstanceTopologyError::Unhandled(inner) => Error::Unhandled(inner),
8390 }
8391 }
8392}
8393impl<R>
8394 From<
8395 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError, R>,
8396 > for Error
8397where
8398 R: Send + Sync + std::fmt::Debug + 'static,
8399{
8400 fn from(
8401 err: ::aws_smithy_runtime_api::client::result::SdkError<
8402 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError,
8403 R,
8404 >,
8405 ) -> Self {
8406 match err {
8407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8410 source: err.into(),
8411 }),
8412 }
8413 }
8414}
8415impl From<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError> for Error {
8416 fn from(err: crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError) -> Self {
8417 match err {
8418 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8419 }
8420 }
8421}
8422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>> for Error
8423where
8424 R: Send + Sync + std::fmt::Debug + 'static,
8425{
8426 fn from(
8427 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>,
8428 ) -> Self {
8429 match err {
8430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8433 source: err.into(),
8434 }),
8435 }
8436 }
8437}
8438impl From<crate::operation::describe_instance_types::DescribeInstanceTypesError> for Error {
8439 fn from(err: crate::operation::describe_instance_types::DescribeInstanceTypesError) -> Self {
8440 match err {
8441 crate::operation::describe_instance_types::DescribeInstanceTypesError::Unhandled(inner) => Error::Unhandled(inner),
8442 }
8443 }
8444}
8445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>>
8446 for Error
8447where
8448 R: Send + Sync + std::fmt::Debug + 'static,
8449{
8450 fn from(
8451 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>,
8452 ) -> Self {
8453 match err {
8454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8457 source: err.into(),
8458 }),
8459 }
8460 }
8461}
8462impl From<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError> for Error {
8463 fn from(err: crate::operation::describe_internet_gateways::DescribeInternetGatewaysError) -> Self {
8464 match err {
8465 crate::operation::describe_internet_gateways::DescribeInternetGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8466 }
8467 }
8468}
8469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>> for Error
8470where
8471 R: Send + Sync + std::fmt::Debug + 'static,
8472{
8473 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>) -> Self {
8474 match err {
8475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8478 source: err.into(),
8479 }),
8480 }
8481 }
8482}
8483impl From<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError> for Error {
8484 fn from(err: crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError) -> Self {
8485 match err {
8486 crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
8487 }
8488 }
8489}
8490impl<R>
8491 From<
8492 ::aws_smithy_runtime_api::client::result::SdkError<
8493 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8494 R,
8495 >,
8496 > for Error
8497where
8498 R: Send + Sync + std::fmt::Debug + 'static,
8499{
8500 fn from(
8501 err: ::aws_smithy_runtime_api::client::result::SdkError<
8502 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8503 R,
8504 >,
8505 ) -> Self {
8506 match err {
8507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8510 source: err.into(),
8511 }),
8512 }
8513 }
8514}
8515impl From<crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError> for Error {
8516 fn from(err: crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError) -> Self {
8517 match err {
8518 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError::Unhandled(
8519 inner,
8520 ) => Error::Unhandled(inner),
8521 }
8522 }
8523}
8524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8525where
8526 R: Send + Sync + std::fmt::Debug + 'static,
8527{
8528 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8529 match err {
8530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8533 source: err.into(),
8534 }),
8535 }
8536 }
8537}
8538impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
8539 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
8540 match err {
8541 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
8542 }
8543 }
8544}
8545impl<R>
8546 From<
8547 ::aws_smithy_runtime_api::client::result::SdkError<
8548 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8549 R,
8550 >,
8551 > for Error
8552where
8553 R: Send + Sync + std::fmt::Debug + 'static,
8554{
8555 fn from(
8556 err: ::aws_smithy_runtime_api::client::result::SdkError<
8557 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8558 R,
8559 >,
8560 ) -> Self {
8561 match err {
8562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8565 source: err.into(),
8566 }),
8567 }
8568 }
8569}
8570impl From<crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError> for Error {
8571 fn from(err: crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError) -> Self {
8572 match err {
8573 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError::Unhandled(inner) => Error::Unhandled(inner),
8574 }
8575 }
8576}
8577impl<R>
8578 From<
8579 ::aws_smithy_runtime_api::client::result::SdkError<
8580 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8581 R,
8582 >,
8583 > for Error
8584where
8585 R: Send + Sync + std::fmt::Debug + 'static,
8586{
8587 fn from(
8588 err: ::aws_smithy_runtime_api::client::result::SdkError<
8589 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8590 R,
8591 >,
8592 ) -> Self {
8593 match err {
8594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8597 source: err.into(),
8598 }),
8599 }
8600 }
8601}
8602impl From<crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError> for Error {
8603 fn from(err: crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError) -> Self {
8604 match err {
8605 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError::Unhandled(inner) => {
8606 Error::Unhandled(inner)
8607 }
8608 }
8609 }
8610}
8611impl<R>
8612 From<
8613 ::aws_smithy_runtime_api::client::result::SdkError<
8614 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8615 R,
8616 >,
8617 > for Error
8618where
8619 R: Send + Sync + std::fmt::Debug + 'static,
8620{
8621 fn from(
8622 err: ::aws_smithy_runtime_api::client::result::SdkError<
8623 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8624 R,
8625 >,
8626 ) -> Self {
8627 match err {
8628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8631 source: err.into(),
8632 }),
8633 }
8634 }
8635}
8636impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
8637 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
8638 match err {
8639 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
8640 }
8641 }
8642}
8643impl<R>
8644 From<
8645 ::aws_smithy_runtime_api::client::result::SdkError<
8646 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8647 R,
8648 >,
8649 > for Error
8650where
8651 R: Send + Sync + std::fmt::Debug + 'static,
8652{
8653 fn from(
8654 err: ::aws_smithy_runtime_api::client::result::SdkError<
8655 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8656 R,
8657 >,
8658 ) -> Self {
8659 match err {
8660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8663 source: err.into(),
8664 }),
8665 }
8666 }
8667}
8668impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
8669 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
8670 match err {
8671 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
8672 Error::Unhandled(inner)
8673 }
8674 }
8675 }
8676}
8677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
8678where
8679 R: Send + Sync + std::fmt::Debug + 'static,
8680{
8681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
8682 match err {
8683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8686 source: err.into(),
8687 }),
8688 }
8689 }
8690}
8691impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
8692 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
8693 match err {
8694 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
8695 }
8696 }
8697}
8698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
8699where
8700 R: Send + Sync + std::fmt::Debug + 'static,
8701{
8702 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
8703 match err {
8704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8707 source: err.into(),
8708 }),
8709 }
8710 }
8711}
8712impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
8713 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
8714 match err {
8715 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
8716 }
8717 }
8718}
8719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
8720where
8721 R: Send + Sync + std::fmt::Debug + 'static,
8722{
8723 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
8724 match err {
8725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8728 source: err.into(),
8729 }),
8730 }
8731 }
8732}
8733impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
8734 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
8735 match err {
8736 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
8737 }
8738 }
8739}
8740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
8741where
8742 R: Send + Sync + std::fmt::Debug + 'static,
8743{
8744 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> Self {
8745 match err {
8746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8749 source: err.into(),
8750 }),
8751 }
8752 }
8753}
8754impl From<crate::operation::describe_key_pairs::DescribeKeyPairsError> for Error {
8755 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
8756 match err {
8757 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
8758 }
8759 }
8760}
8761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
8762 for Error
8763where
8764 R: Send + Sync + std::fmt::Debug + 'static,
8765{
8766 fn from(
8767 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
8768 ) -> Self {
8769 match err {
8770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8773 source: err.into(),
8774 }),
8775 }
8776 }
8777}
8778impl From<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError> for Error {
8779 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
8780 match err {
8781 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
8782 }
8783 }
8784}
8785impl<R>
8786 From<
8787 ::aws_smithy_runtime_api::client::result::SdkError<
8788 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8789 R,
8790 >,
8791 > for Error
8792where
8793 R: Send + Sync + std::fmt::Debug + 'static,
8794{
8795 fn from(
8796 err: ::aws_smithy_runtime_api::client::result::SdkError<
8797 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8798 R,
8799 >,
8800 ) -> Self {
8801 match err {
8802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8805 source: err.into(),
8806 }),
8807 }
8808 }
8809}
8810impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
8811 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
8812 match err {
8813 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
8814 }
8815 }
8816}
8817impl<R>
8818 From<
8819 ::aws_smithy_runtime_api::client::result::SdkError<
8820 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8821 R,
8822 >,
8823 > for Error
8824where
8825 R: Send + Sync + std::fmt::Debug + 'static,
8826{
8827 fn from(
8828 err: ::aws_smithy_runtime_api::client::result::SdkError<
8829 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8830 R,
8831 >,
8832 ) -> Self {
8833 match err {
8834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8837 source: err.into(),
8838 }),
8839 }
8840 }
8841}
8842impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
8843 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
8844 match err {
8845 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
8846 }
8847 }
8848}
8849impl<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 {
8850 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
8851 match err {
8852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8853 _ => Error::Unhandled(
8854 crate::error::sealed_unhandled::Unhandled {
8855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8856 source: err.into(),
8857 }
8858 ),
8859 }
8860 }
8861}
8862impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
8863 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
8864 match err {
8865 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
8866 }
8867 }
8868}
8869impl<R>
8870 From<
8871 ::aws_smithy_runtime_api::client::result::SdkError<
8872 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8873 R,
8874 >,
8875 > for Error
8876where
8877 R: Send + Sync + std::fmt::Debug + 'static,
8878{
8879 fn from(
8880 err: ::aws_smithy_runtime_api::client::result::SdkError<
8881 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8882 R,
8883 >,
8884 ) -> Self {
8885 match err {
8886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8889 source: err.into(),
8890 }),
8891 }
8892 }
8893}
8894impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
8895 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
8896 match err {
8897 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
8898 inner,
8899 ) => Error::Unhandled(inner),
8900 }
8901 }
8902}
8903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
8904where
8905 R: Send + Sync + std::fmt::Debug + 'static,
8906{
8907 fn from(
8908 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
8909 ) -> Self {
8910 match err {
8911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8914 source: err.into(),
8915 }),
8916 }
8917 }
8918}
8919impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
8920 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
8921 match err {
8922 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8923 }
8924 }
8925}
8926impl<R>
8927 From<
8928 ::aws_smithy_runtime_api::client::result::SdkError<
8929 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8930 R,
8931 >,
8932 > for Error
8933where
8934 R: Send + Sync + std::fmt::Debug + 'static,
8935{
8936 fn from(
8937 err: ::aws_smithy_runtime_api::client::result::SdkError<
8938 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8939 R,
8940 >,
8941 ) -> Self {
8942 match err {
8943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8946 source: err.into(),
8947 }),
8948 }
8949 }
8950}
8951impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
8952 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
8953 match err {
8954 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
8955 Error::Unhandled(inner)
8956 }
8957 }
8958 }
8959}
8960impl<R>
8961 From<
8962 ::aws_smithy_runtime_api::client::result::SdkError<
8963 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8964 R,
8965 >,
8966 > for Error
8967where
8968 R: Send + Sync + std::fmt::Debug + 'static,
8969{
8970 fn from(
8971 err: ::aws_smithy_runtime_api::client::result::SdkError<
8972 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8973 R,
8974 >,
8975 ) -> Self {
8976 match err {
8977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8980 source: err.into(),
8981 }),
8982 }
8983 }
8984}
8985impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
8986 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
8987 match err {
8988 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
8989 Error::Unhandled(inner)
8990 }
8991 }
8992 }
8993}
8994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
8995 for Error
8996where
8997 R: Send + Sync + std::fmt::Debug + 'static,
8998{
8999 fn from(
9000 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
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_locked_snapshots::DescribeLockedSnapshotsError> for Error {
9012 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
9013 match err {
9014 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9015 }
9016 }
9017}
9018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
9019where
9020 R: Send + Sync + std::fmt::Debug + 'static,
9021{
9022 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
9023 match err {
9024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9027 source: err.into(),
9028 }),
9029 }
9030 }
9031}
9032impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
9033 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
9034 match err {
9035 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
9036 }
9037 }
9038}
9039impl<R>
9040 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
9041 for Error
9042where
9043 R: Send + Sync + std::fmt::Debug + 'static,
9044{
9045 fn from(
9046 err: ::aws_smithy_runtime_api::client::result::SdkError<
9047 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
9048 R,
9049 >,
9050 ) -> Self {
9051 match err {
9052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9055 source: err.into(),
9056 }),
9057 }
9058 }
9059}
9060impl From<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError> for Error {
9061 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
9062 match err {
9063 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
9064 }
9065 }
9066}
9067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
9068 for Error
9069where
9070 R: Send + Sync + std::fmt::Debug + 'static,
9071{
9072 fn from(
9073 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
9074 ) -> Self {
9075 match err {
9076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9079 source: err.into(),
9080 }),
9081 }
9082 }
9083}
9084impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
9085 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
9086 match err {
9087 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9088 }
9089 }
9090}
9091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
9092 for Error
9093where
9094 R: Send + Sync + std::fmt::Debug + 'static,
9095{
9096 fn from(
9097 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
9098 ) -> Self {
9099 match err {
9100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9103 source: err.into(),
9104 }),
9105 }
9106 }
9107}
9108impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
9109 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
9110 match err {
9111 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
9112 }
9113 }
9114}
9115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
9116where
9117 R: Send + Sync + std::fmt::Debug + 'static,
9118{
9119 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
9120 match err {
9121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9124 source: err.into(),
9125 }),
9126 }
9127 }
9128}
9129impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
9130 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
9131 match err {
9132 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9133 }
9134 }
9135}
9136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
9137where
9138 R: Send + Sync + std::fmt::Debug + 'static,
9139{
9140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
9141 match err {
9142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9145 source: err.into(),
9146 }),
9147 }
9148 }
9149}
9150impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
9151 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
9152 match err {
9153 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
9154 }
9155 }
9156}
9157impl<R>
9158 From<
9159 ::aws_smithy_runtime_api::client::result::SdkError<
9160 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9161 R,
9162 >,
9163 > for Error
9164where
9165 R: Send + Sync + std::fmt::Debug + 'static,
9166{
9167 fn from(
9168 err: ::aws_smithy_runtime_api::client::result::SdkError<
9169 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9170 R,
9171 >,
9172 ) -> Self {
9173 match err {
9174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9177 source: err.into(),
9178 }),
9179 }
9180 }
9181}
9182impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
9183 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
9184 match err {
9185 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
9186 Error::Unhandled(inner)
9187 }
9188 }
9189 }
9190}
9191impl<R>
9192 From<
9193 ::aws_smithy_runtime_api::client::result::SdkError<
9194 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9195 R,
9196 >,
9197 > for Error
9198where
9199 R: Send + Sync + std::fmt::Debug + 'static,
9200{
9201 fn from(
9202 err: ::aws_smithy_runtime_api::client::result::SdkError<
9203 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9204 R,
9205 >,
9206 ) -> Self {
9207 match err {
9208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9211 source: err.into(),
9212 }),
9213 }
9214 }
9215}
9216impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
9217 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
9218 match err {
9219 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
9220 Error::Unhandled(inner)
9221 }
9222 }
9223 }
9224}
9225impl<R>
9226 From<
9227 ::aws_smithy_runtime_api::client::result::SdkError<
9228 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9229 R,
9230 >,
9231 > for Error
9232where
9233 R: Send + Sync + std::fmt::Debug + 'static,
9234{
9235 fn from(
9236 err: ::aws_smithy_runtime_api::client::result::SdkError<
9237 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9238 R,
9239 >,
9240 ) -> Self {
9241 match err {
9242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9245 source: err.into(),
9246 }),
9247 }
9248 }
9249}
9250impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
9251 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
9252 match err {
9253 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
9254 }
9255 }
9256}
9257impl<R>
9258 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
9259 for Error
9260where
9261 R: Send + Sync + std::fmt::Debug + 'static,
9262{
9263 fn from(
9264 err: ::aws_smithy_runtime_api::client::result::SdkError<
9265 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError,
9266 R,
9267 >,
9268 ) -> Self {
9269 match err {
9270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9273 source: err.into(),
9274 }),
9275 }
9276 }
9277}
9278impl From<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError> for Error {
9279 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
9280 match err {
9281 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
9282 }
9283 }
9284}
9285impl<R>
9286 From<
9287 ::aws_smithy_runtime_api::client::result::SdkError<
9288 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9289 R,
9290 >,
9291 > for Error
9292where
9293 R: Send + Sync + std::fmt::Debug + 'static,
9294{
9295 fn from(
9296 err: ::aws_smithy_runtime_api::client::result::SdkError<
9297 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9298 R,
9299 >,
9300 ) -> Self {
9301 match err {
9302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9305 source: err.into(),
9306 }),
9307 }
9308 }
9309}
9310impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
9311 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
9312 match err {
9313 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
9314 Error::Unhandled(inner)
9315 }
9316 }
9317 }
9318}
9319impl<R>
9320 From<
9321 ::aws_smithy_runtime_api::client::result::SdkError<
9322 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9323 R,
9324 >,
9325 > for Error
9326where
9327 R: Send + Sync + std::fmt::Debug + 'static,
9328{
9329 fn from(
9330 err: ::aws_smithy_runtime_api::client::result::SdkError<
9331 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9332 R,
9333 >,
9334 ) -> Self {
9335 match err {
9336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9339 source: err.into(),
9340 }),
9341 }
9342 }
9343}
9344impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9345 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9346 match err {
9347 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9348 Error::Unhandled(inner)
9349 }
9350 }
9351 }
9352}
9353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9354 for Error
9355where
9356 R: Send + Sync + std::fmt::Debug + 'static,
9357{
9358 fn from(
9359 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9360 ) -> Self {
9361 match err {
9362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9365 source: err.into(),
9366 }),
9367 }
9368 }
9369}
9370impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9371 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9372 match err {
9373 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9374 }
9375 }
9376}
9377impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9378where
9379 R: Send + Sync + std::fmt::Debug + 'static,
9380{
9381 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9382 match err {
9383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9386 source: err.into(),
9387 }),
9388 }
9389 }
9390}
9391impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9392 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9393 match err {
9394 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9395 }
9396 }
9397}
9398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9399 for Error
9400where
9401 R: Send + Sync + std::fmt::Debug + 'static,
9402{
9403 fn from(
9404 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9405 ) -> Self {
9406 match err {
9407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9410 source: err.into(),
9411 }),
9412 }
9413 }
9414}
9415impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9416 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9417 match err {
9418 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9419 }
9420 }
9421}
9422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9423where
9424 R: Send + Sync + std::fmt::Debug + 'static,
9425{
9426 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9427 match err {
9428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9431 source: err.into(),
9432 }),
9433 }
9434 }
9435}
9436impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9437 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9438 match err {
9439 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9440 }
9441 }
9442}
9443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9444 for Error
9445where
9446 R: Send + Sync + std::fmt::Debug + 'static,
9447{
9448 fn from(
9449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9450 ) -> Self {
9451 match err {
9452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9455 source: err.into(),
9456 }),
9457 }
9458 }
9459}
9460impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9461 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9462 match err {
9463 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9464 }
9465 }
9466}
9467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9468 for Error
9469where
9470 R: Send + Sync + std::fmt::Debug + 'static,
9471{
9472 fn from(
9473 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9474 ) -> Self {
9475 match err {
9476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9479 source: err.into(),
9480 }),
9481 }
9482 }
9483}
9484impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9485 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9486 match err {
9487 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9488 }
9489 }
9490}
9491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9492where
9493 R: Send + Sync + std::fmt::Debug + 'static,
9494{
9495 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9496 match err {
9497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9500 source: err.into(),
9501 }),
9502 }
9503 }
9504}
9505impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9506 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9507 match err {
9508 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9509 }
9510 }
9511}
9512impl<R>
9513 From<
9514 ::aws_smithy_runtime_api::client::result::SdkError<
9515 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9516 R,
9517 >,
9518 > for Error
9519where
9520 R: Send + Sync + std::fmt::Debug + 'static,
9521{
9522 fn from(
9523 err: ::aws_smithy_runtime_api::client::result::SdkError<
9524 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9525 R,
9526 >,
9527 ) -> Self {
9528 match err {
9529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9532 source: err.into(),
9533 }),
9534 }
9535 }
9536}
9537impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
9538 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
9539 match err {
9540 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
9541 }
9542 }
9543}
9544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
9545 for Error
9546where
9547 R: Send + Sync + std::fmt::Debug + 'static,
9548{
9549 fn from(
9550 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
9551 ) -> Self {
9552 match err {
9553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9556 source: err.into(),
9557 }),
9558 }
9559 }
9560}
9561impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
9562 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
9563 match err {
9564 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9565 }
9566 }
9567}
9568impl<R>
9569 From<
9570 ::aws_smithy_runtime_api::client::result::SdkError<
9571 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9572 R,
9573 >,
9574 > for Error
9575where
9576 R: Send + Sync + std::fmt::Debug + 'static,
9577{
9578 fn from(
9579 err: ::aws_smithy_runtime_api::client::result::SdkError<
9580 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9581 R,
9582 >,
9583 ) -> Self {
9584 match err {
9585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9588 source: err.into(),
9589 }),
9590 }
9591 }
9592}
9593impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
9594 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
9595 match err {
9596 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
9597 Error::Unhandled(inner)
9598 }
9599 }
9600 }
9601}
9602impl<R>
9603 From<
9604 ::aws_smithy_runtime_api::client::result::SdkError<
9605 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9606 R,
9607 >,
9608 > for Error
9609where
9610 R: Send + Sync + std::fmt::Debug + 'static,
9611{
9612 fn from(
9613 err: ::aws_smithy_runtime_api::client::result::SdkError<
9614 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9615 R,
9616 >,
9617 ) -> Self {
9618 match err {
9619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9622 source: err.into(),
9623 }),
9624 }
9625 }
9626}
9627impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
9628 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
9629 match err {
9630 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
9631 Error::Unhandled(inner)
9632 }
9633 }
9634 }
9635}
9636impl<R>
9637 From<
9638 ::aws_smithy_runtime_api::client::result::SdkError<
9639 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9640 R,
9641 >,
9642 > for Error
9643where
9644 R: Send + Sync + std::fmt::Debug + 'static,
9645{
9646 fn from(
9647 err: ::aws_smithy_runtime_api::client::result::SdkError<
9648 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9649 R,
9650 >,
9651 ) -> Self {
9652 match err {
9653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9656 source: err.into(),
9657 }),
9658 }
9659 }
9660}
9661impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
9662 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
9663 match err {
9664 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
9665 Error::Unhandled(inner)
9666 }
9667 }
9668 }
9669}
9670impl<R>
9671 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
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_route_server_endpoints::DescribeRouteServerEndpointsError,
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_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
9692 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
9693 match err {
9694 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
9695 }
9696 }
9697}
9698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
9699 for Error
9700where
9701 R: Send + Sync + std::fmt::Debug + 'static,
9702{
9703 fn from(
9704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
9705 ) -> Self {
9706 match err {
9707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9710 source: err.into(),
9711 }),
9712 }
9713 }
9714}
9715impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
9716 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
9717 match err {
9718 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
9719 }
9720 }
9721}
9722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
9723where
9724 R: Send + Sync + std::fmt::Debug + 'static,
9725{
9726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
9727 match err {
9728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9731 source: err.into(),
9732 }),
9733 }
9734 }
9735}
9736impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
9737 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
9738 match err {
9739 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
9740 }
9741 }
9742}
9743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
9744where
9745 R: Send + Sync + std::fmt::Debug + 'static,
9746{
9747 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
9748 match err {
9749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9752 source: err.into(),
9753 }),
9754 }
9755 }
9756}
9757impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
9758 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
9759 match err {
9760 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9761 }
9762 }
9763}
9764impl<R>
9765 From<
9766 ::aws_smithy_runtime_api::client::result::SdkError<
9767 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9768 R,
9769 >,
9770 > for Error
9771where
9772 R: Send + Sync + std::fmt::Debug + 'static,
9773{
9774 fn from(
9775 err: ::aws_smithy_runtime_api::client::result::SdkError<
9776 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9777 R,
9778 >,
9779 ) -> Self {
9780 match err {
9781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9784 source: err.into(),
9785 }),
9786 }
9787 }
9788}
9789impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
9790 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
9791 match err {
9792 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
9793 Error::Unhandled(inner)
9794 }
9795 }
9796 }
9797}
9798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
9799 for Error
9800where
9801 R: Send + Sync + std::fmt::Debug + 'static,
9802{
9803 fn from(
9804 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
9805 ) -> Self {
9806 match err {
9807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9810 source: err.into(),
9811 }),
9812 }
9813 }
9814}
9815impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
9816 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
9817 match err {
9818 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9819 }
9820 }
9821}
9822impl<R>
9823 From<
9824 ::aws_smithy_runtime_api::client::result::SdkError<
9825 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9826 R,
9827 >,
9828 > for Error
9829where
9830 R: Send + Sync + std::fmt::Debug + 'static,
9831{
9832 fn from(
9833 err: ::aws_smithy_runtime_api::client::result::SdkError<
9834 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9835 R,
9836 >,
9837 ) -> Self {
9838 match err {
9839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9842 source: err.into(),
9843 }),
9844 }
9845 }
9846}
9847impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
9848 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
9849 match err {
9850 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
9851 }
9852 }
9853}
9854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
9855 for Error
9856where
9857 R: Send + Sync + std::fmt::Debug + 'static,
9858{
9859 fn from(
9860 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
9861 ) -> Self {
9862 match err {
9863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9866 source: err.into(),
9867 }),
9868 }
9869 }
9870}
9871impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
9872 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
9873 match err {
9874 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
9875 }
9876 }
9877}
9878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
9879where
9880 R: Send + Sync + std::fmt::Debug + 'static,
9881{
9882 fn from(
9883 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
9884 ) -> Self {
9885 match err {
9886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9889 source: err.into(),
9890 }),
9891 }
9892 }
9893}
9894impl From<crate::operation::describe_security_groups::DescribeSecurityGroupsError> for Error {
9895 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
9896 match err {
9897 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9898 }
9899 }
9900}
9901impl<R>
9902 From<
9903 ::aws_smithy_runtime_api::client::result::SdkError<
9904 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
9905 R,
9906 >,
9907 > for Error
9908where
9909 R: Send + Sync + std::fmt::Debug + 'static,
9910{
9911 fn from(
9912 err: ::aws_smithy_runtime_api::client::result::SdkError<
9913 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
9914 R,
9915 >,
9916 ) -> Self {
9917 match err {
9918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9921 source: err.into(),
9922 }),
9923 }
9924 }
9925}
9926impl From<crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
9927 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
9928 match err {
9929 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
9930 Error::Unhandled(inner)
9931 }
9932 }
9933 }
9934}
9935impl<R>
9936 From<
9937 ::aws_smithy_runtime_api::client::result::SdkError<
9938 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9939 R,
9940 >,
9941 > for Error
9942where
9943 R: Send + Sync + std::fmt::Debug + 'static,
9944{
9945 fn from(
9946 err: ::aws_smithy_runtime_api::client::result::SdkError<
9947 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9948 R,
9949 >,
9950 ) -> Self {
9951 match err {
9952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9955 source: err.into(),
9956 }),
9957 }
9958 }
9959}
9960impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
9961 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
9962 match err {
9963 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
9964 Error::Unhandled(inner)
9965 }
9966 }
9967 }
9968}
9969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
9970 for Error
9971where
9972 R: Send + Sync + std::fmt::Debug + 'static,
9973{
9974 fn from(
9975 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
9976 ) -> Self {
9977 match err {
9978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9981 source: err.into(),
9982 }),
9983 }
9984 }
9985}
9986impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
9987 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
9988 match err {
9989 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
9990 }
9991 }
9992}
9993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
9994where
9995 R: Send + Sync + std::fmt::Debug + 'static,
9996{
9997 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
9998 match err {
9999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10002 source: err.into(),
10003 }),
10004 }
10005 }
10006}
10007impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
10008 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
10009 match err {
10010 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
10011 }
10012 }
10013}
10014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
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<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
10021 ) -> Self {
10022 match err {
10023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10026 source: err.into(),
10027 }),
10028 }
10029 }
10030}
10031impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
10032 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
10033 match err {
10034 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
10035 }
10036 }
10037}
10038impl<R>
10039 From<
10040 ::aws_smithy_runtime_api::client::result::SdkError<
10041 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10042 R,
10043 >,
10044 > for Error
10045where
10046 R: Send + Sync + std::fmt::Debug + 'static,
10047{
10048 fn from(
10049 err: ::aws_smithy_runtime_api::client::result::SdkError<
10050 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
10051 R,
10052 >,
10053 ) -> Self {
10054 match err {
10055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10058 source: err.into(),
10059 }),
10060 }
10061 }
10062}
10063impl From<crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
10064 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
10065 match err {
10066 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
10067 }
10068 }
10069}
10070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
10071 for Error
10072where
10073 R: Send + Sync + std::fmt::Debug + 'static,
10074{
10075 fn from(
10076 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
10077 ) -> Self {
10078 match err {
10079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10082 source: err.into(),
10083 }),
10084 }
10085 }
10086}
10087impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
10088 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
10089 match err {
10090 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10091 }
10092 }
10093}
10094impl<R>
10095 From<
10096 ::aws_smithy_runtime_api::client::result::SdkError<
10097 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10098 R,
10099 >,
10100 > for Error
10101where
10102 R: Send + Sync + std::fmt::Debug + 'static,
10103{
10104 fn from(
10105 err: ::aws_smithy_runtime_api::client::result::SdkError<
10106 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10107 R,
10108 >,
10109 ) -> Self {
10110 match err {
10111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10114 source: err.into(),
10115 }),
10116 }
10117 }
10118}
10119impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
10120 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
10121 match err {
10122 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10123 }
10124 }
10125}
10126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
10127 for Error
10128where
10129 R: Send + Sync + std::fmt::Debug + 'static,
10130{
10131 fn from(
10132 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
10133 ) -> Self {
10134 match err {
10135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10138 source: err.into(),
10139 }),
10140 }
10141 }
10142}
10143impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
10144 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
10145 match err {
10146 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10147 }
10148 }
10149}
10150impl<R>
10151 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
10152 for Error
10153where
10154 R: Send + Sync + std::fmt::Debug + 'static,
10155{
10156 fn from(
10157 err: ::aws_smithy_runtime_api::client::result::SdkError<
10158 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
10159 R,
10160 >,
10161 ) -> Self {
10162 match err {
10163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10166 source: err.into(),
10167 }),
10168 }
10169 }
10170}
10171impl From<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError> for Error {
10172 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
10173 match err {
10174 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10175 }
10176 }
10177}
10178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
10179 for Error
10180where
10181 R: Send + Sync + std::fmt::Debug + 'static,
10182{
10183 fn from(
10184 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
10185 ) -> Self {
10186 match err {
10187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10190 source: err.into(),
10191 }),
10192 }
10193 }
10194}
10195impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
10196 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
10197 match err {
10198 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10199 }
10200 }
10201}
10202impl<R>
10203 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
10204 for Error
10205where
10206 R: Send + Sync + std::fmt::Debug + 'static,
10207{
10208 fn from(
10209 err: ::aws_smithy_runtime_api::client::result::SdkError<
10210 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
10211 R,
10212 >,
10213 ) -> Self {
10214 match err {
10215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10218 source: err.into(),
10219 }),
10220 }
10221 }
10222}
10223impl From<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
10224 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
10225 match err {
10226 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10227 }
10228 }
10229}
10230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
10231 for Error
10232where
10233 R: Send + Sync + std::fmt::Debug + 'static,
10234{
10235 fn from(
10236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
10237 ) -> Self {
10238 match err {
10239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10242 source: err.into(),
10243 }),
10244 }
10245 }
10246}
10247impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
10248 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
10249 match err {
10250 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
10251 }
10252 }
10253}
10254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
10255where
10256 R: Send + Sync + std::fmt::Debug + 'static,
10257{
10258 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
10259 match err {
10260 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10261 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10262 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10263 source: err.into(),
10264 }),
10265 }
10266 }
10267}
10268impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
10269 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
10270 match err {
10271 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10272 }
10273 }
10274}
10275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
10276where
10277 R: Send + Sync + std::fmt::Debug + 'static,
10278{
10279 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
10280 match err {
10281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10284 source: err.into(),
10285 }),
10286 }
10287 }
10288}
10289impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
10290 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
10291 match err {
10292 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
10293 }
10294 }
10295}
10296impl<R>
10297 From<
10298 ::aws_smithy_runtime_api::client::result::SdkError<
10299 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10300 R,
10301 >,
10302 > for Error
10303where
10304 R: Send + Sync + std::fmt::Debug + 'static,
10305{
10306 fn from(
10307 err: ::aws_smithy_runtime_api::client::result::SdkError<
10308 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10309 R,
10310 >,
10311 ) -> Self {
10312 match err {
10313 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10314 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10315 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10316 source: err.into(),
10317 }),
10318 }
10319 }
10320}
10321impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
10322 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
10323 match err {
10324 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
10325 Error::Unhandled(inner)
10326 }
10327 }
10328 }
10329}
10330impl<R>
10331 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10332 for Error
10333where
10334 R: Send + Sync + std::fmt::Debug + 'static,
10335{
10336 fn from(
10337 err: ::aws_smithy_runtime_api::client::result::SdkError<
10338 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10339 R,
10340 >,
10341 ) -> Self {
10342 match err {
10343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10346 source: err.into(),
10347 }),
10348 }
10349 }
10350}
10351impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10352 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10353 match err {
10354 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10355 }
10356 }
10357}
10358impl<R>
10359 From<
10360 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10361 > for Error
10362where
10363 R: Send + Sync + std::fmt::Debug + 'static,
10364{
10365 fn from(
10366 err: ::aws_smithy_runtime_api::client::result::SdkError<
10367 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10368 R,
10369 >,
10370 ) -> Self {
10371 match err {
10372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10375 source: err.into(),
10376 }),
10377 }
10378 }
10379}
10380impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10381 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10382 match err {
10383 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10384 }
10385 }
10386}
10387impl<R>
10388 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, R>>
10389 for Error
10390where
10391 R: Send + Sync + std::fmt::Debug + 'static,
10392{
10393 fn from(
10394 err: ::aws_smithy_runtime_api::client::result::SdkError<
10395 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError,
10396 R,
10397 >,
10398 ) -> Self {
10399 match err {
10400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10403 source: err.into(),
10404 }),
10405 }
10406 }
10407}
10408impl From<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError> for Error {
10409 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10410 match err {
10411 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10412 }
10413 }
10414}
10415impl<R>
10416 From<
10417 ::aws_smithy_runtime_api::client::result::SdkError<
10418 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10419 R,
10420 >,
10421 > for Error
10422where
10423 R: Send + Sync + std::fmt::Debug + 'static,
10424{
10425 fn from(
10426 err: ::aws_smithy_runtime_api::client::result::SdkError<
10427 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10428 R,
10429 >,
10430 ) -> Self {
10431 match err {
10432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10435 source: err.into(),
10436 }),
10437 }
10438 }
10439}
10440impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10441 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10442 match err {
10443 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10444 Error::Unhandled(inner)
10445 }
10446 }
10447 }
10448}
10449impl<R>
10450 From<
10451 ::aws_smithy_runtime_api::client::result::SdkError<
10452 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10453 R,
10454 >,
10455 > for Error
10456where
10457 R: Send + Sync + std::fmt::Debug + 'static,
10458{
10459 fn from(
10460 err: ::aws_smithy_runtime_api::client::result::SdkError<
10461 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10462 R,
10463 >,
10464 ) -> Self {
10465 match err {
10466 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10467 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10468 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10469 source: err.into(),
10470 }),
10471 }
10472 }
10473}
10474impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
10475 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
10476 match err {
10477 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
10478 Error::Unhandled(inner)
10479 }
10480 }
10481 }
10482}
10483impl<R>
10484 From<
10485 ::aws_smithy_runtime_api::client::result::SdkError<
10486 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10487 R,
10488 >,
10489 > for Error
10490where
10491 R: Send + Sync + std::fmt::Debug + 'static,
10492{
10493 fn from(
10494 err: ::aws_smithy_runtime_api::client::result::SdkError<
10495 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10496 R,
10497 >,
10498 ) -> Self {
10499 match err {
10500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10503 source: err.into(),
10504 }),
10505 }
10506 }
10507}
10508impl From<crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
10509 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
10510 match err {
10511 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
10512 }
10513 }
10514}
10515impl<R>
10516 From<
10517 ::aws_smithy_runtime_api::client::result::SdkError<
10518 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10519 R,
10520 >,
10521 > for Error
10522where
10523 R: Send + Sync + std::fmt::Debug + 'static,
10524{
10525 fn from(
10526 err: ::aws_smithy_runtime_api::client::result::SdkError<
10527 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10528 R,
10529 >,
10530 ) -> Self {
10531 match err {
10532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10535 source: err.into(),
10536 }),
10537 }
10538 }
10539}
10540impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
10541 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
10542 match err {
10543 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
10544 Error::Unhandled(inner)
10545 }
10546 }
10547 }
10548}
10549impl<R>
10550 From<
10551 ::aws_smithy_runtime_api::client::result::SdkError<
10552 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10553 R,
10554 >,
10555 > for Error
10556where
10557 R: Send + Sync + std::fmt::Debug + 'static,
10558{
10559 fn from(
10560 err: ::aws_smithy_runtime_api::client::result::SdkError<
10561 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10562 R,
10563 >,
10564 ) -> Self {
10565 match err {
10566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10569 source: err.into(),
10570 }),
10571 }
10572 }
10573}
10574impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
10575 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
10576 match err {
10577 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
10578 Error::Unhandled(inner)
10579 }
10580 }
10581 }
10582}
10583impl<R>
10584 From<
10585 ::aws_smithy_runtime_api::client::result::SdkError<
10586 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10587 R,
10588 >,
10589 > for Error
10590where
10591 R: Send + Sync + std::fmt::Debug + 'static,
10592{
10593 fn from(
10594 err: ::aws_smithy_runtime_api::client::result::SdkError<
10595 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10596 R,
10597 >,
10598 ) -> Self {
10599 match err {
10600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10603 source: err.into(),
10604 }),
10605 }
10606 }
10607}
10608impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
10609 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
10610 match err {
10611 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
10612 Error::Unhandled(inner)
10613 }
10614 }
10615 }
10616}
10617impl<R>
10618 From<
10619 ::aws_smithy_runtime_api::client::result::SdkError<
10620 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10621 R,
10622 >,
10623 > for Error
10624where
10625 R: Send + Sync + std::fmt::Debug + 'static,
10626{
10627 fn from(
10628 err: ::aws_smithy_runtime_api::client::result::SdkError<
10629 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10630 R,
10631 >,
10632 ) -> Self {
10633 match err {
10634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10637 source: err.into(),
10638 }),
10639 }
10640 }
10641}
10642impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
10643 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
10644 match err {
10645 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
10646 inner,
10647 ) => Error::Unhandled(inner),
10648 }
10649 }
10650}
10651impl<R>
10652 From<
10653 ::aws_smithy_runtime_api::client::result::SdkError<
10654 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10655 R,
10656 >,
10657 > for Error
10658where
10659 R: Send + Sync + std::fmt::Debug + 'static,
10660{
10661 fn from(
10662 err: ::aws_smithy_runtime_api::client::result::SdkError<
10663 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10664 R,
10665 >,
10666 ) -> Self {
10667 match err {
10668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10671 source: err.into(),
10672 }),
10673 }
10674 }
10675}
10676impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
10677 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
10678 match err {
10679 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
10680 Error::Unhandled(inner)
10681 }
10682 }
10683 }
10684}
10685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
10686 for Error
10687where
10688 R: Send + Sync + std::fmt::Debug + 'static,
10689{
10690 fn from(
10691 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
10692 ) -> Self {
10693 match err {
10694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10697 source: err.into(),
10698 }),
10699 }
10700 }
10701}
10702impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
10703 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
10704 match err {
10705 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
10706 }
10707 }
10708}
10709impl<R>
10710 From<
10711 ::aws_smithy_runtime_api::client::result::SdkError<
10712 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10713 R,
10714 >,
10715 > for Error
10716where
10717 R: Send + Sync + std::fmt::Debug + 'static,
10718{
10719 fn from(
10720 err: ::aws_smithy_runtime_api::client::result::SdkError<
10721 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10722 R,
10723 >,
10724 ) -> Self {
10725 match err {
10726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10729 source: err.into(),
10730 }),
10731 }
10732 }
10733}
10734impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
10735 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
10736 match err {
10737 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
10738 Error::Unhandled(inner)
10739 }
10740 }
10741 }
10742}
10743impl<R>
10744 From<
10745 ::aws_smithy_runtime_api::client::result::SdkError<
10746 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10747 R,
10748 >,
10749 > for Error
10750where
10751 R: Send + Sync + std::fmt::Debug + 'static,
10752{
10753 fn from(
10754 err: ::aws_smithy_runtime_api::client::result::SdkError<
10755 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10756 R,
10757 >,
10758 ) -> Self {
10759 match err {
10760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10763 source: err.into(),
10764 }),
10765 }
10766 }
10767}
10768impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
10769 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
10770 match err {
10771 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
10772 Error::Unhandled(inner)
10773 }
10774 }
10775 }
10776}
10777impl<R>
10778 From<
10779 ::aws_smithy_runtime_api::client::result::SdkError<
10780 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10781 R,
10782 >,
10783 > for Error
10784where
10785 R: Send + Sync + std::fmt::Debug + 'static,
10786{
10787 fn from(
10788 err: ::aws_smithy_runtime_api::client::result::SdkError<
10789 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10790 R,
10791 >,
10792 ) -> 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_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
10803 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
10804 match err {
10805 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10806 }
10807 }
10808}
10809impl<R>
10810 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
10811 for Error
10812where
10813 R: Send + Sync + std::fmt::Debug + 'static,
10814{
10815 fn from(
10816 err: ::aws_smithy_runtime_api::client::result::SdkError<
10817 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
10818 R,
10819 >,
10820 ) -> Self {
10821 match err {
10822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10825 source: err.into(),
10826 }),
10827 }
10828 }
10829}
10830impl From<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError> for Error {
10831 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
10832 match err {
10833 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10834 }
10835 }
10836}
10837impl<R>
10838 From<
10839 ::aws_smithy_runtime_api::client::result::SdkError<
10840 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10841 R,
10842 >,
10843 > for Error
10844where
10845 R: Send + Sync + std::fmt::Debug + 'static,
10846{
10847 fn from(
10848 err: ::aws_smithy_runtime_api::client::result::SdkError<
10849 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10850 R,
10851 >,
10852 ) -> Self {
10853 match err {
10854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10857 source: err.into(),
10858 }),
10859 }
10860 }
10861}
10862impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
10863 for Error
10864{
10865 fn from(
10866 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10867 ) -> Self {
10868 match err {
10869 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
10870 }
10871 }
10872}
10873impl<R>
10874 From<
10875 ::aws_smithy_runtime_api::client::result::SdkError<
10876 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10877 R,
10878 >,
10879 > for Error
10880where
10881 R: Send + Sync + std::fmt::Debug + 'static,
10882{
10883 fn from(
10884 err: ::aws_smithy_runtime_api::client::result::SdkError<
10885 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10886 R,
10887 >,
10888 ) -> Self {
10889 match err {
10890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10893 source: err.into(),
10894 }),
10895 }
10896 }
10897}
10898impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
10899 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
10900 match err {
10901 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10902 }
10903 }
10904}
10905impl<R>
10906 From<
10907 ::aws_smithy_runtime_api::client::result::SdkError<
10908 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10909 R,
10910 >,
10911 > for Error
10912where
10913 R: Send + Sync + std::fmt::Debug + 'static,
10914{
10915 fn from(
10916 err: ::aws_smithy_runtime_api::client::result::SdkError<
10917 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10918 R,
10919 >,
10920 ) -> Self {
10921 match err {
10922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10925 source: err.into(),
10926 }),
10927 }
10928 }
10929}
10930impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
10931 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
10932 match err {
10933 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
10934 Error::Unhandled(inner)
10935 }
10936 }
10937 }
10938}
10939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
10940 for Error
10941where
10942 R: Send + Sync + std::fmt::Debug + 'static,
10943{
10944 fn from(
10945 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
10946 ) -> Self {
10947 match err {
10948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10951 source: err.into(),
10952 }),
10953 }
10954 }
10955}
10956impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
10957 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
10958 match err {
10959 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10960 }
10961 }
10962}
10963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
10964where
10965 R: Send + Sync + std::fmt::Debug + 'static,
10966{
10967 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
10968 match err {
10969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10972 source: err.into(),
10973 }),
10974 }
10975 }
10976}
10977impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
10978 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
10979 match err {
10980 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
10981 }
10982 }
10983}
10984impl<R>
10985 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
10986 for Error
10987where
10988 R: Send + Sync + std::fmt::Debug + 'static,
10989{
10990 fn from(
10991 err: ::aws_smithy_runtime_api::client::result::SdkError<
10992 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
10993 R,
10994 >,
10995 ) -> Self {
10996 match err {
10997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11000 source: err.into(),
11001 }),
11002 }
11003 }
11004}
11005impl From<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError> for Error {
11006 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
11007 match err {
11008 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
11009 }
11010 }
11011}
11012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
11013where
11014 R: Send + Sync + std::fmt::Debug + 'static,
11015{
11016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
11017 match err {
11018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11021 source: err.into(),
11022 }),
11023 }
11024 }
11025}
11026impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
11027 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
11028 match err {
11029 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
11030 }
11031 }
11032}
11033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
11034where
11035 R: Send + Sync + std::fmt::Debug + 'static,
11036{
11037 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
11038 match err {
11039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11042 source: err.into(),
11043 }),
11044 }
11045 }
11046}
11047impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
11048 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
11049 match err {
11050 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11051 }
11052 }
11053}
11054impl<R>
11055 From<
11056 ::aws_smithy_runtime_api::client::result::SdkError<
11057 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11058 R,
11059 >,
11060 > for Error
11061where
11062 R: Send + Sync + std::fmt::Debug + 'static,
11063{
11064 fn from(
11065 err: ::aws_smithy_runtime_api::client::result::SdkError<
11066 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11067 R,
11068 >,
11069 ) -> Self {
11070 match err {
11071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11074 source: err.into(),
11075 }),
11076 }
11077 }
11078}
11079impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
11080 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
11081 match err {
11082 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
11083 Error::Unhandled(inner)
11084 }
11085 }
11086 }
11087}
11088impl<R>
11089 From<
11090 ::aws_smithy_runtime_api::client::result::SdkError<
11091 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11092 R,
11093 >,
11094 > for Error
11095where
11096 R: Send + Sync + std::fmt::Debug + 'static,
11097{
11098 fn from(
11099 err: ::aws_smithy_runtime_api::client::result::SdkError<
11100 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11101 R,
11102 >,
11103 ) -> Self {
11104 match err {
11105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11108 source: err.into(),
11109 }),
11110 }
11111 }
11112}
11113impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
11114 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
11115 match err {
11116 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
11117 Error::Unhandled(inner)
11118 }
11119 }
11120 }
11121}
11122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
11123 for Error
11124where
11125 R: Send + Sync + std::fmt::Debug + 'static,
11126{
11127 fn from(
11128 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
11129 ) -> Self {
11130 match err {
11131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11134 source: err.into(),
11135 }),
11136 }
11137 }
11138}
11139impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
11140 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
11141 match err {
11142 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11143 }
11144 }
11145}
11146impl<R>
11147 From<
11148 ::aws_smithy_runtime_api::client::result::SdkError<
11149 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11150 R,
11151 >,
11152 > for Error
11153where
11154 R: Send + Sync + std::fmt::Debug + 'static,
11155{
11156 fn from(
11157 err: ::aws_smithy_runtime_api::client::result::SdkError<
11158 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11159 R,
11160 >,
11161 ) -> Self {
11162 match err {
11163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11166 source: err.into(),
11167 }),
11168 }
11169 }
11170}
11171impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
11172 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
11173 match err {
11174 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
11175 Error::Unhandled(inner)
11176 }
11177 }
11178 }
11179}
11180impl<R>
11181 From<
11182 ::aws_smithy_runtime_api::client::result::SdkError<
11183 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11184 R,
11185 >,
11186 > for Error
11187where
11188 R: Send + Sync + std::fmt::Debug + 'static,
11189{
11190 fn from(
11191 err: ::aws_smithy_runtime_api::client::result::SdkError<
11192 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11193 R,
11194 >,
11195 ) -> Self {
11196 match err {
11197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11200 source: err.into(),
11201 }),
11202 }
11203 }
11204}
11205impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
11206 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
11207 match err {
11208 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
11209 }
11210 }
11211}
11212impl<R>
11213 From<
11214 ::aws_smithy_runtime_api::client::result::SdkError<
11215 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11216 R,
11217 >,
11218 > for Error
11219where
11220 R: Send + Sync + std::fmt::Debug + 'static,
11221{
11222 fn from(
11223 err: ::aws_smithy_runtime_api::client::result::SdkError<
11224 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11225 R,
11226 >,
11227 ) -> Self {
11228 match err {
11229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11232 source: err.into(),
11233 }),
11234 }
11235 }
11236}
11237impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
11238 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
11239 match err {
11240 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
11241 Error::Unhandled(inner)
11242 }
11243 }
11244 }
11245}
11246impl<R>
11247 From<
11248 ::aws_smithy_runtime_api::client::result::SdkError<
11249 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11250 R,
11251 >,
11252 > for Error
11253where
11254 R: Send + Sync + std::fmt::Debug + 'static,
11255{
11256 fn from(
11257 err: ::aws_smithy_runtime_api::client::result::SdkError<
11258 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11259 R,
11260 >,
11261 ) -> Self {
11262 match err {
11263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11266 source: err.into(),
11267 }),
11268 }
11269 }
11270}
11271impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
11272 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
11273 match err {
11274 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11275 }
11276 }
11277}
11278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
11279where
11280 R: Send + Sync + std::fmt::Debug + 'static,
11281{
11282 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
11283 match err {
11284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11287 source: err.into(),
11288 }),
11289 }
11290 }
11291}
11292impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
11293 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
11294 match err {
11295 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11296 }
11297 }
11298}
11299impl<R>
11300 From<
11301 ::aws_smithy_runtime_api::client::result::SdkError<
11302 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11303 R,
11304 >,
11305 > for Error
11306where
11307 R: Send + Sync + std::fmt::Debug + 'static,
11308{
11309 fn from(
11310 err: ::aws_smithy_runtime_api::client::result::SdkError<
11311 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11312 R,
11313 >,
11314 ) -> Self {
11315 match err {
11316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11319 source: err.into(),
11320 }),
11321 }
11322 }
11323}
11324impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
11325 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
11326 match err {
11327 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
11328 Error::Unhandled(inner)
11329 }
11330 }
11331 }
11332}
11333impl<R>
11334 From<
11335 ::aws_smithy_runtime_api::client::result::SdkError<
11336 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11337 R,
11338 >,
11339 > for Error
11340where
11341 R: Send + Sync + std::fmt::Debug + 'static,
11342{
11343 fn from(
11344 err: ::aws_smithy_runtime_api::client::result::SdkError<
11345 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11346 R,
11347 >,
11348 ) -> Self {
11349 match err {
11350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11353 source: err.into(),
11354 }),
11355 }
11356 }
11357}
11358impl From<crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11359 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11360 match err {
11361 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11362 Error::Unhandled(inner)
11363 }
11364 }
11365 }
11366}
11367impl<R>
11368 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11369 for Error
11370where
11371 R: Send + Sync + std::fmt::Debug + 'static,
11372{
11373 fn from(
11374 err: ::aws_smithy_runtime_api::client::result::SdkError<
11375 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11376 R,
11377 >,
11378 ) -> Self {
11379 match err {
11380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11383 source: err.into(),
11384 }),
11385 }
11386 }
11387}
11388impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11389 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11390 match err {
11391 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11392 }
11393 }
11394}
11395impl<R>
11396 From<
11397 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
11398 > for Error
11399where
11400 R: Send + Sync + std::fmt::Debug + 'static,
11401{
11402 fn from(
11403 err: ::aws_smithy_runtime_api::client::result::SdkError<
11404 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
11405 R,
11406 >,
11407 ) -> Self {
11408 match err {
11409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11412 source: err.into(),
11413 }),
11414 }
11415 }
11416}
11417impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
11418 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
11419 match err {
11420 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11421 }
11422 }
11423}
11424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
11425where
11426 R: Send + Sync + std::fmt::Debug + 'static,
11427{
11428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
11429 match err {
11430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11433 source: err.into(),
11434 }),
11435 }
11436 }
11437}
11438impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
11439 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
11440 match err {
11441 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
11442 }
11443 }
11444}
11445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>>
11446 for Error
11447where
11448 R: Send + Sync + std::fmt::Debug + 'static,
11449{
11450 fn from(
11451 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>,
11452 ) -> Self {
11453 match err {
11454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11457 source: err.into(),
11458 }),
11459 }
11460 }
11461}
11462impl From<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError> for Error {
11463 fn from(err: crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError) -> Self {
11464 match err {
11465 crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError::Unhandled(inner) => Error::Unhandled(inner),
11466 }
11467 }
11468}
11469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
11470where
11471 R: Send + Sync + std::fmt::Debug + 'static,
11472{
11473 fn from(
11474 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
11475 ) -> Self {
11476 match err {
11477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11480 source: err.into(),
11481 }),
11482 }
11483 }
11484}
11485impl From<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
11486 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
11487 match err {
11488 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11489 }
11490 }
11491}
11492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>> for Error
11493where
11494 R: Send + Sync + std::fmt::Debug + 'static,
11495{
11496 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>) -> Self {
11497 match err {
11498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11501 source: err.into(),
11502 }),
11503 }
11504 }
11505}
11506impl From<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
11507 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
11508 match err {
11509 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11510 }
11511 }
11512}
11513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
11514where
11515 R: Send + Sync + std::fmt::Debug + 'static,
11516{
11517 fn from(
11518 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
11519 ) -> Self {
11520 match err {
11521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11524 source: err.into(),
11525 }),
11526 }
11527 }
11528}
11529impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
11530 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
11531 match err {
11532 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
11533 }
11534 }
11535}
11536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
11537where
11538 R: Send + Sync + std::fmt::Debug + 'static,
11539{
11540 fn from(
11541 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
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::detach_internet_gateway::DetachInternetGatewayError> for Error {
11553 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
11554 match err {
11555 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11556 }
11557 }
11558}
11559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
11560where
11561 R: Send + Sync + std::fmt::Debug + 'static,
11562{
11563 fn from(
11564 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
11565 ) -> Self {
11566 match err {
11567 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11568 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11569 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11570 source: err.into(),
11571 }),
11572 }
11573 }
11574}
11575impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
11576 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
11577 match err {
11578 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
11579 }
11580 }
11581}
11582impl<R>
11583 From<
11584 ::aws_smithy_runtime_api::client::result::SdkError<
11585 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11586 R,
11587 >,
11588 > for Error
11589where
11590 R: Send + Sync + std::fmt::Debug + 'static,
11591{
11592 fn from(
11593 err: ::aws_smithy_runtime_api::client::result::SdkError<
11594 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11595 R,
11596 >,
11597 ) -> Self {
11598 match err {
11599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11602 source: err.into(),
11603 }),
11604 }
11605 }
11606}
11607impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
11608 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
11609 match err {
11610 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
11611 Error::Unhandled(inner)
11612 }
11613 }
11614 }
11615}
11616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
11617where
11618 R: Send + Sync + std::fmt::Debug + 'static,
11619{
11620 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
11621 match err {
11622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11625 source: err.into(),
11626 }),
11627 }
11628 }
11629}
11630impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
11631 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
11632 match err {
11633 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
11634 }
11635 }
11636}
11637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
11638where
11639 R: Send + Sync + std::fmt::Debug + 'static,
11640{
11641 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
11642 match err {
11643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11646 source: err.into(),
11647 }),
11648 }
11649 }
11650}
11651impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
11652 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
11653 match err {
11654 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11655 }
11656 }
11657}
11658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
11659where
11660 R: Send + Sync + std::fmt::Debug + 'static,
11661{
11662 fn from(
11663 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
11664 ) -> Self {
11665 match err {
11666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11669 source: err.into(),
11670 }),
11671 }
11672 }
11673}
11674impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
11675 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
11676 match err {
11677 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
11678 }
11679 }
11680}
11681impl<R>
11682 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
11683 for Error
11684where
11685 R: Send + Sync + std::fmt::Debug + 'static,
11686{
11687 fn from(
11688 err: ::aws_smithy_runtime_api::client::result::SdkError<
11689 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
11690 R,
11691 >,
11692 ) -> Self {
11693 match err {
11694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11697 source: err.into(),
11698 }),
11699 }
11700 }
11701}
11702impl From<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
11703 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
11704 match err {
11705 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
11706 }
11707 }
11708}
11709impl<R>
11710 From<
11711 ::aws_smithy_runtime_api::client::result::SdkError<
11712 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11713 R,
11714 >,
11715 > for Error
11716where
11717 R: Send + Sync + std::fmt::Debug + 'static,
11718{
11719 fn from(
11720 err: ::aws_smithy_runtime_api::client::result::SdkError<
11721 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11722 R,
11723 >,
11724 ) -> Self {
11725 match err {
11726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11729 source: err.into(),
11730 }),
11731 }
11732 }
11733}
11734impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
11735 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
11736 match err {
11737 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
11738 inner,
11739 ) => Error::Unhandled(inner),
11740 }
11741 }
11742}
11743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
11744where
11745 R: Send + Sync + std::fmt::Debug + 'static,
11746{
11747 fn from(
11748 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
11749 ) -> Self {
11750 match err {
11751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11754 source: err.into(),
11755 }),
11756 }
11757 }
11758}
11759impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
11760 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
11761 match err {
11762 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
11763 }
11764 }
11765}
11766impl<R>
11767 From<
11768 ::aws_smithy_runtime_api::client::result::SdkError<
11769 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11770 R,
11771 >,
11772 > for Error
11773where
11774 R: Send + Sync + std::fmt::Debug + 'static,
11775{
11776 fn from(
11777 err: ::aws_smithy_runtime_api::client::result::SdkError<
11778 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11779 R,
11780 >,
11781 ) -> Self {
11782 match err {
11783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11786 source: err.into(),
11787 }),
11788 }
11789 }
11790}
11791impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
11792 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
11793 match err {
11794 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
11795 }
11796 }
11797}
11798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
11799where
11800 R: Send + Sync + std::fmt::Debug + 'static,
11801{
11802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
11803 match err {
11804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11807 source: err.into(),
11808 }),
11809 }
11810 }
11811}
11812impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
11813 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
11814 match err {
11815 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
11816 }
11817 }
11818}
11819impl<R>
11820 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
11821 for Error
11822where
11823 R: Send + Sync + std::fmt::Debug + 'static,
11824{
11825 fn from(
11826 err: ::aws_smithy_runtime_api::client::result::SdkError<
11827 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
11828 R,
11829 >,
11830 ) -> Self {
11831 match err {
11832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11835 source: err.into(),
11836 }),
11837 }
11838 }
11839}
11840impl From<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
11841 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
11842 match err {
11843 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
11844 }
11845 }
11846}
11847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
11848where
11849 R: Send + Sync + std::fmt::Debug + 'static,
11850{
11851 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> Self {
11852 match err {
11853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11856 source: err.into(),
11857 }),
11858 }
11859 }
11860}
11861impl From<crate::operation::disable_image::DisableImageError> for Error {
11862 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
11863 match err {
11864 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
11865 }
11866 }
11867}
11868impl<R>
11869 From<
11870 ::aws_smithy_runtime_api::client::result::SdkError<
11871 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
11872 R,
11873 >,
11874 > for Error
11875where
11876 R: Send + Sync + std::fmt::Debug + 'static,
11877{
11878 fn from(
11879 err: ::aws_smithy_runtime_api::client::result::SdkError<
11880 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
11881 R,
11882 >,
11883 ) -> Self {
11884 match err {
11885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11888 source: err.into(),
11889 }),
11890 }
11891 }
11892}
11893impl From<crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
11894 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
11895 match err {
11896 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
11897 }
11898 }
11899}
11900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
11901 for Error
11902where
11903 R: Send + Sync + std::fmt::Debug + 'static,
11904{
11905 fn from(
11906 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
11907 ) -> Self {
11908 match err {
11909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11912 source: err.into(),
11913 }),
11914 }
11915 }
11916}
11917impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
11918 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
11919 match err {
11920 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
11921 }
11922 }
11923}
11924impl<R>
11925 From<
11926 ::aws_smithy_runtime_api::client::result::SdkError<
11927 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11928 R,
11929 >,
11930 > for Error
11931where
11932 R: Send + Sync + std::fmt::Debug + 'static,
11933{
11934 fn from(
11935 err: ::aws_smithy_runtime_api::client::result::SdkError<
11936 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11937 R,
11938 >,
11939 ) -> Self {
11940 match err {
11941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11944 source: err.into(),
11945 }),
11946 }
11947 }
11948}
11949impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
11950 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
11951 match err {
11952 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
11953 Error::Unhandled(inner)
11954 }
11955 }
11956 }
11957}
11958impl<R>
11959 From<
11960 ::aws_smithy_runtime_api::client::result::SdkError<
11961 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
11962 R,
11963 >,
11964 > for Error
11965where
11966 R: Send + Sync + std::fmt::Debug + 'static,
11967{
11968 fn from(
11969 err: ::aws_smithy_runtime_api::client::result::SdkError<
11970 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
11971 R,
11972 >,
11973 ) -> Self {
11974 match err {
11975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11978 source: err.into(),
11979 }),
11980 }
11981 }
11982}
11983impl From<crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError> for Error {
11984 fn from(err: crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError) -> Self {
11985 match err {
11986 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
11987 Error::Unhandled(inner)
11988 }
11989 }
11990 }
11991}
11992impl<R>
11993 From<
11994 ::aws_smithy_runtime_api::client::result::SdkError<
11995 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
11996 R,
11997 >,
11998 > for Error
11999where
12000 R: Send + Sync + std::fmt::Debug + 'static,
12001{
12002 fn from(
12003 err: ::aws_smithy_runtime_api::client::result::SdkError<
12004 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12005 R,
12006 >,
12007 ) -> Self {
12008 match err {
12009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12012 source: err.into(),
12013 }),
12014 }
12015 }
12016}
12017impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
12018 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
12019 match err {
12020 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12021 Error::Unhandled(inner)
12022 }
12023 }
12024 }
12025}
12026impl<R>
12027 From<
12028 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
12029 > for Error
12030where
12031 R: Send + Sync + std::fmt::Debug + 'static,
12032{
12033 fn from(
12034 err: ::aws_smithy_runtime_api::client::result::SdkError<
12035 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
12036 R,
12037 >,
12038 ) -> Self {
12039 match err {
12040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12043 source: err.into(),
12044 }),
12045 }
12046 }
12047}
12048impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
12049 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
12050 match err {
12051 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12052 }
12053 }
12054}
12055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
12056 for Error
12057where
12058 R: Send + Sync + std::fmt::Debug + 'static,
12059{
12060 fn from(
12061 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
12062 ) -> Self {
12063 match err {
12064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12067 source: err.into(),
12068 }),
12069 }
12070 }
12071}
12072impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
12073 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
12074 match err {
12075 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12076 }
12077 }
12078}
12079impl<R>
12080 From<
12081 ::aws_smithy_runtime_api::client::result::SdkError<
12082 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12083 R,
12084 >,
12085 > for Error
12086where
12087 R: Send + Sync + std::fmt::Debug + 'static,
12088{
12089 fn from(
12090 err: ::aws_smithy_runtime_api::client::result::SdkError<
12091 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12092 R,
12093 >,
12094 ) -> Self {
12095 match err {
12096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12099 source: err.into(),
12100 }),
12101 }
12102 }
12103}
12104impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
12105 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
12106 match err {
12107 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
12108 Error::Unhandled(inner)
12109 }
12110 }
12111 }
12112}
12113impl<R>
12114 From<
12115 ::aws_smithy_runtime_api::client::result::SdkError<
12116 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12117 R,
12118 >,
12119 > for Error
12120where
12121 R: Send + Sync + std::fmt::Debug + 'static,
12122{
12123 fn from(
12124 err: ::aws_smithy_runtime_api::client::result::SdkError<
12125 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12126 R,
12127 >,
12128 ) -> Self {
12129 match err {
12130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12133 source: err.into(),
12134 }),
12135 }
12136 }
12137}
12138impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
12139 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
12140 match err {
12141 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
12142 Error::Unhandled(inner)
12143 }
12144 }
12145 }
12146}
12147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
12148 for Error
12149where
12150 R: Send + Sync + std::fmt::Debug + 'static,
12151{
12152 fn from(
12153 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
12154 ) -> Self {
12155 match err {
12156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12159 source: err.into(),
12160 }),
12161 }
12162 }
12163}
12164impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
12165 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
12166 match err {
12167 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12168 }
12169 }
12170}
12171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
12172where
12173 R: Send + Sync + std::fmt::Debug + 'static,
12174{
12175 fn from(
12176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
12177 ) -> Self {
12178 match err {
12179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12182 source: err.into(),
12183 }),
12184 }
12185 }
12186}
12187impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
12188 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
12189 match err {
12190 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12191 }
12192 }
12193}
12194impl<R>
12195 From<
12196 ::aws_smithy_runtime_api::client::result::SdkError<
12197 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12198 R,
12199 >,
12200 > for Error
12201where
12202 R: Send + Sync + std::fmt::Debug + 'static,
12203{
12204 fn from(
12205 err: ::aws_smithy_runtime_api::client::result::SdkError<
12206 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12207 R,
12208 >,
12209 ) -> Self {
12210 match err {
12211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12214 source: err.into(),
12215 }),
12216 }
12217 }
12218}
12219impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
12220 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
12221 match err {
12222 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12223 }
12224 }
12225}
12226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
12227where
12228 R: Send + Sync + std::fmt::Debug + 'static,
12229{
12230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
12231 match err {
12232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12235 source: err.into(),
12236 }),
12237 }
12238 }
12239}
12240impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
12241 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
12242 match err {
12243 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
12244 }
12245 }
12246}
12247impl<R>
12248 From<
12249 ::aws_smithy_runtime_api::client::result::SdkError<
12250 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12251 R,
12252 >,
12253 > for Error
12254where
12255 R: Send + Sync + std::fmt::Debug + 'static,
12256{
12257 fn from(
12258 err: ::aws_smithy_runtime_api::client::result::SdkError<
12259 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12260 R,
12261 >,
12262 ) -> Self {
12263 match err {
12264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12267 source: err.into(),
12268 }),
12269 }
12270 }
12271}
12272impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
12273 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
12274 match err {
12275 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
12276 Error::Unhandled(inner)
12277 }
12278 }
12279 }
12280}
12281impl<R>
12282 From<
12283 ::aws_smithy_runtime_api::client::result::SdkError<
12284 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12285 R,
12286 >,
12287 > for Error
12288where
12289 R: Send + Sync + std::fmt::Debug + 'static,
12290{
12291 fn from(
12292 err: ::aws_smithy_runtime_api::client::result::SdkError<
12293 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12294 R,
12295 >,
12296 ) -> Self {
12297 match err {
12298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12301 source: err.into(),
12302 }),
12303 }
12304 }
12305}
12306impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
12307 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
12308 match err {
12309 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
12310 Error::Unhandled(inner)
12311 }
12312 }
12313 }
12314}
12315impl<R>
12316 From<
12317 ::aws_smithy_runtime_api::client::result::SdkError<
12318 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12319 R,
12320 >,
12321 > for Error
12322where
12323 R: Send + Sync + std::fmt::Debug + 'static,
12324{
12325 fn from(
12326 err: ::aws_smithy_runtime_api::client::result::SdkError<
12327 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12328 R,
12329 >,
12330 ) -> Self {
12331 match err {
12332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12335 source: err.into(),
12336 }),
12337 }
12338 }
12339}
12340impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
12341 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
12342 match err {
12343 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
12344 Error::Unhandled(inner)
12345 }
12346 }
12347 }
12348}
12349impl<R>
12350 From<
12351 ::aws_smithy_runtime_api::client::result::SdkError<
12352 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12353 R,
12354 >,
12355 > for Error
12356where
12357 R: Send + Sync + std::fmt::Debug + 'static,
12358{
12359 fn from(
12360 err: ::aws_smithy_runtime_api::client::result::SdkError<
12361 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12362 R,
12363 >,
12364 ) -> Self {
12365 match err {
12366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12369 source: err.into(),
12370 }),
12371 }
12372 }
12373}
12374impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
12375 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
12376 match err {
12377 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
12378 }
12379 }
12380}
12381impl<R>
12382 From<
12383 ::aws_smithy_runtime_api::client::result::SdkError<
12384 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12385 R,
12386 >,
12387 > for Error
12388where
12389 R: Send + Sync + std::fmt::Debug + 'static,
12390{
12391 fn from(
12392 err: ::aws_smithy_runtime_api::client::result::SdkError<
12393 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12394 R,
12395 >,
12396 ) -> Self {
12397 match err {
12398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12401 source: err.into(),
12402 }),
12403 }
12404 }
12405}
12406impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
12407 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
12408 match err {
12409 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
12410 }
12411 }
12412}
12413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
12414where
12415 R: Send + Sync + std::fmt::Debug + 'static,
12416{
12417 fn from(
12418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
12419 ) -> Self {
12420 match err {
12421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12424 source: err.into(),
12425 }),
12426 }
12427 }
12428}
12429impl From<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
12430 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
12431 match err {
12432 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
12433 }
12434 }
12435}
12436impl<R>
12437 From<
12438 ::aws_smithy_runtime_api::client::result::SdkError<
12439 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12440 R,
12441 >,
12442 > for Error
12443where
12444 R: Send + Sync + std::fmt::Debug + 'static,
12445{
12446 fn from(
12447 err: ::aws_smithy_runtime_api::client::result::SdkError<
12448 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12449 R,
12450 >,
12451 ) -> Self {
12452 match err {
12453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12456 source: err.into(),
12457 }),
12458 }
12459 }
12460}
12461impl From<crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
12462 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
12463 match err {
12464 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
12465 Error::Unhandled(inner)
12466 }
12467 }
12468 }
12469}
12470impl<R>
12471 From<
12472 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
12473 > for Error
12474where
12475 R: Send + Sync + std::fmt::Debug + 'static,
12476{
12477 fn from(
12478 err: ::aws_smithy_runtime_api::client::result::SdkError<
12479 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
12480 R,
12481 >,
12482 ) -> Self {
12483 match err {
12484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12487 source: err.into(),
12488 }),
12489 }
12490 }
12491}
12492impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
12493 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
12494 match err {
12495 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
12496 }
12497 }
12498}
12499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
12500 for Error
12501where
12502 R: Send + Sync + std::fmt::Debug + 'static,
12503{
12504 fn from(
12505 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
12506 ) -> Self {
12507 match err {
12508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12511 source: err.into(),
12512 }),
12513 }
12514 }
12515}
12516impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
12517 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
12518 match err {
12519 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
12520 }
12521 }
12522}
12523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
12524where
12525 R: Send + Sync + std::fmt::Debug + 'static,
12526{
12527 fn from(
12528 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
12529 ) -> Self {
12530 match err {
12531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12534 source: err.into(),
12535 }),
12536 }
12537 }
12538}
12539impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
12540 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
12541 match err {
12542 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
12543 }
12544 }
12545}
12546impl<R>
12547 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
12548 for Error
12549where
12550 R: Send + Sync + std::fmt::Debug + 'static,
12551{
12552 fn from(
12553 err: ::aws_smithy_runtime_api::client::result::SdkError<
12554 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
12555 R,
12556 >,
12557 ) -> Self {
12558 match err {
12559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12562 source: err.into(),
12563 }),
12564 }
12565 }
12566}
12567impl From<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
12568 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
12569 match err {
12570 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
12571 }
12572 }
12573}
12574impl<R>
12575 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, R>>
12576 for Error
12577where
12578 R: Send + Sync + std::fmt::Debug + 'static,
12579{
12580 fn from(
12581 err: ::aws_smithy_runtime_api::client::result::SdkError<
12582 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError,
12583 R,
12584 >,
12585 ) -> Self {
12586 match err {
12587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12590 source: err.into(),
12591 }),
12592 }
12593 }
12594}
12595impl From<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
12596 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
12597 match err {
12598 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12599 }
12600 }
12601}
12602impl<R>
12603 From<
12604 ::aws_smithy_runtime_api::client::result::SdkError<
12605 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12606 R,
12607 >,
12608 > for Error
12609where
12610 R: Send + Sync + std::fmt::Debug + 'static,
12611{
12612 fn from(
12613 err: ::aws_smithy_runtime_api::client::result::SdkError<
12614 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12615 R,
12616 >,
12617 ) -> Self {
12618 match err {
12619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12622 source: err.into(),
12623 }),
12624 }
12625 }
12626}
12627impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
12628 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
12629 match err {
12630 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
12631 Error::Unhandled(inner)
12632 }
12633 }
12634 }
12635}
12636impl<R>
12637 From<
12638 ::aws_smithy_runtime_api::client::result::SdkError<
12639 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12640 R,
12641 >,
12642 > for Error
12643where
12644 R: Send + Sync + std::fmt::Debug + 'static,
12645{
12646 fn from(
12647 err: ::aws_smithy_runtime_api::client::result::SdkError<
12648 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12649 R,
12650 >,
12651 ) -> Self {
12652 match err {
12653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12656 source: err.into(),
12657 }),
12658 }
12659 }
12660}
12661impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
12662 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
12663 match err {
12664 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
12665 Error::Unhandled(inner)
12666 }
12667 }
12668 }
12669}
12670impl<R>
12671 From<
12672 ::aws_smithy_runtime_api::client::result::SdkError<
12673 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12674 R,
12675 >,
12676 > for Error
12677where
12678 R: Send + Sync + std::fmt::Debug + 'static,
12679{
12680 fn from(
12681 err: ::aws_smithy_runtime_api::client::result::SdkError<
12682 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12683 R,
12684 >,
12685 ) -> Self {
12686 match err {
12687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12690 source: err.into(),
12691 }),
12692 }
12693 }
12694}
12695impl From<crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
12696 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
12697 match err {
12698 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
12699 Error::Unhandled(inner)
12700 }
12701 }
12702 }
12703}
12704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
12705 for Error
12706where
12707 R: Send + Sync + std::fmt::Debug + 'static,
12708{
12709 fn from(
12710 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
12711 ) -> Self {
12712 match err {
12713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12716 source: err.into(),
12717 }),
12718 }
12719 }
12720}
12721impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
12722 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
12723 match err {
12724 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
12725 }
12726 }
12727}
12728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
12729 for Error
12730where
12731 R: Send + Sync + std::fmt::Debug + 'static,
12732{
12733 fn from(
12734 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
12735 ) -> Self {
12736 match err {
12737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12740 source: err.into(),
12741 }),
12742 }
12743 }
12744}
12745impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
12746 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
12747 match err {
12748 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12749 }
12750 }
12751}
12752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
12753where
12754 R: Send + Sync + std::fmt::Debug + 'static,
12755{
12756 fn from(
12757 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
12758 ) -> Self {
12759 match err {
12760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12763 source: err.into(),
12764 }),
12765 }
12766 }
12767}
12768impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
12769 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
12770 match err {
12771 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12772 }
12773 }
12774}
12775impl<R>
12776 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
12777 for Error
12778where
12779 R: Send + Sync + std::fmt::Debug + 'static,
12780{
12781 fn from(
12782 err: ::aws_smithy_runtime_api::client::result::SdkError<
12783 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
12784 R,
12785 >,
12786 ) -> Self {
12787 match err {
12788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12791 source: err.into(),
12792 }),
12793 }
12794 }
12795}
12796impl From<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
12797 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
12798 match err {
12799 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12800 }
12801 }
12802}
12803impl<R>
12804 From<
12805 ::aws_smithy_runtime_api::client::result::SdkError<
12806 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12807 R,
12808 >,
12809 > for Error
12810where
12811 R: Send + Sync + std::fmt::Debug + 'static,
12812{
12813 fn from(
12814 err: ::aws_smithy_runtime_api::client::result::SdkError<
12815 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12816 R,
12817 >,
12818 ) -> Self {
12819 match err {
12820 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12821 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12822 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12823 source: err.into(),
12824 }),
12825 }
12826 }
12827}
12828impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12829 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12830 match err {
12831 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12832 inner,
12833 ) => Error::Unhandled(inner),
12834 }
12835 }
12836}
12837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
12838where
12839 R: Send + Sync + std::fmt::Debug + 'static,
12840{
12841 fn from(
12842 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
12843 ) -> Self {
12844 match err {
12845 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12846 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12847 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12848 source: err.into(),
12849 }),
12850 }
12851 }
12852}
12853impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
12854 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
12855 match err {
12856 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12857 }
12858 }
12859}
12860impl<R>
12861 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
12862 for Error
12863where
12864 R: Send + Sync + std::fmt::Debug + 'static,
12865{
12866 fn from(
12867 err: ::aws_smithy_runtime_api::client::result::SdkError<
12868 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
12869 R,
12870 >,
12871 ) -> Self {
12872 match err {
12873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12876 source: err.into(),
12877 }),
12878 }
12879 }
12880}
12881impl From<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
12882 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
12883 match err {
12884 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12885 }
12886 }
12887}
12888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
12889where
12890 R: Send + Sync + std::fmt::Debug + 'static,
12891{
12892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
12893 match err {
12894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12897 source: err.into(),
12898 }),
12899 }
12900 }
12901}
12902impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
12903 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
12904 match err {
12905 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12906 }
12907 }
12908}
12909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
12910 for Error
12911where
12912 R: Send + Sync + std::fmt::Debug + 'static,
12913{
12914 fn from(
12915 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
12916 ) -> Self {
12917 match err {
12918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12921 source: err.into(),
12922 }),
12923 }
12924 }
12925}
12926impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
12927 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
12928 match err {
12929 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12930 }
12931 }
12932}
12933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
12934where
12935 R: Send + Sync + std::fmt::Debug + 'static,
12936{
12937 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
12938 match err {
12939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12942 source: err.into(),
12943 }),
12944 }
12945 }
12946}
12947impl From<crate::operation::enable_image::EnableImageError> for Error {
12948 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
12949 match err {
12950 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
12951 }
12952 }
12953}
12954impl<R>
12955 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
12956 for Error
12957where
12958 R: Send + Sync + std::fmt::Debug + 'static,
12959{
12960 fn from(
12961 err: ::aws_smithy_runtime_api::client::result::SdkError<
12962 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
12963 R,
12964 >,
12965 ) -> Self {
12966 match err {
12967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12970 source: err.into(),
12971 }),
12972 }
12973 }
12974}
12975impl From<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError> for Error {
12976 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
12977 match err {
12978 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12979 }
12980 }
12981}
12982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
12983where
12984 R: Send + Sync + std::fmt::Debug + 'static,
12985{
12986 fn from(
12987 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
12988 ) -> Self {
12989 match err {
12990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12993 source: err.into(),
12994 }),
12995 }
12996 }
12997}
12998impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
12999 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
13000 match err {
13001 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
13002 }
13003 }
13004}
13005impl<R>
13006 From<
13007 ::aws_smithy_runtime_api::client::result::SdkError<
13008 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13009 R,
13010 >,
13011 > for Error
13012where
13013 R: Send + Sync + std::fmt::Debug + 'static,
13014{
13015 fn from(
13016 err: ::aws_smithy_runtime_api::client::result::SdkError<
13017 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13018 R,
13019 >,
13020 ) -> Self {
13021 match err {
13022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13025 source: err.into(),
13026 }),
13027 }
13028 }
13029}
13030impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
13031 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
13032 match err {
13033 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
13034 Error::Unhandled(inner)
13035 }
13036 }
13037 }
13038}
13039impl<R>
13040 From<
13041 ::aws_smithy_runtime_api::client::result::SdkError<
13042 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13043 R,
13044 >,
13045 > for Error
13046where
13047 R: Send + Sync + std::fmt::Debug + 'static,
13048{
13049 fn from(
13050 err: ::aws_smithy_runtime_api::client::result::SdkError<
13051 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13052 R,
13053 >,
13054 ) -> Self {
13055 match err {
13056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13059 source: err.into(),
13060 }),
13061 }
13062 }
13063}
13064impl From<crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError> for Error {
13065 fn from(err: crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError) -> Self {
13066 match err {
13067 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
13068 Error::Unhandled(inner)
13069 }
13070 }
13071 }
13072}
13073impl<R>
13074 From<
13075 ::aws_smithy_runtime_api::client::result::SdkError<
13076 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13077 R,
13078 >,
13079 > for Error
13080where
13081 R: Send + Sync + std::fmt::Debug + 'static,
13082{
13083 fn from(
13084 err: ::aws_smithy_runtime_api::client::result::SdkError<
13085 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13086 R,
13087 >,
13088 ) -> Self {
13089 match err {
13090 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13091 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13092 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13093 source: err.into(),
13094 }),
13095 }
13096 }
13097}
13098impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
13099 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
13100 match err {
13101 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
13102 Error::Unhandled(inner)
13103 }
13104 }
13105 }
13106}
13107impl<R>
13108 From<
13109 ::aws_smithy_runtime_api::client::result::SdkError<
13110 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13111 R,
13112 >,
13113 > for Error
13114where
13115 R: Send + Sync + std::fmt::Debug + 'static,
13116{
13117 fn from(
13118 err: ::aws_smithy_runtime_api::client::result::SdkError<
13119 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13120 R,
13121 >,
13122 ) -> Self {
13123 match err {
13124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13127 source: err.into(),
13128 }),
13129 }
13130 }
13131}
13132impl From<crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
13133 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
13134 match err {
13135 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
13136 inner,
13137 ) => Error::Unhandled(inner),
13138 }
13139 }
13140}
13141impl<R>
13142 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
13143 for Error
13144where
13145 R: Send + Sync + std::fmt::Debug + 'static,
13146{
13147 fn from(
13148 err: ::aws_smithy_runtime_api::client::result::SdkError<
13149 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
13150 R,
13151 >,
13152 ) -> Self {
13153 match err {
13154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13157 source: err.into(),
13158 }),
13159 }
13160 }
13161}
13162impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
13163 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
13164 match err {
13165 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
13166 }
13167 }
13168}
13169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
13170 for Error
13171where
13172 R: Send + Sync + std::fmt::Debug + 'static,
13173{
13174 fn from(
13175 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
13176 ) -> Self {
13177 match err {
13178 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13179 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13180 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13181 source: err.into(),
13182 }),
13183 }
13184 }
13185}
13186impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
13187 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
13188 match err {
13189 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
13190 }
13191 }
13192}
13193impl<R>
13194 From<
13195 ::aws_smithy_runtime_api::client::result::SdkError<
13196 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13197 R,
13198 >,
13199 > for Error
13200where
13201 R: Send + Sync + std::fmt::Debug + 'static,
13202{
13203 fn from(
13204 err: ::aws_smithy_runtime_api::client::result::SdkError<
13205 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13206 R,
13207 >,
13208 ) -> Self {
13209 match err {
13210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13213 source: err.into(),
13214 }),
13215 }
13216 }
13217}
13218impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
13219 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
13220 match err {
13221 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13222 }
13223 }
13224}
13225impl<R>
13226 From<
13227 ::aws_smithy_runtime_api::client::result::SdkError<
13228 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13229 R,
13230 >,
13231 > for Error
13232where
13233 R: Send + Sync + std::fmt::Debug + 'static,
13234{
13235 fn from(
13236 err: ::aws_smithy_runtime_api::client::result::SdkError<
13237 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13238 R,
13239 >,
13240 ) -> Self {
13241 match err {
13242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13245 source: err.into(),
13246 }),
13247 }
13248 }
13249}
13250impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
13251 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
13252 match err {
13253 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
13254 Error::Unhandled(inner)
13255 }
13256 }
13257 }
13258}
13259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
13260 for Error
13261where
13262 R: Send + Sync + std::fmt::Debug + 'static,
13263{
13264 fn from(
13265 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
13266 ) -> Self {
13267 match err {
13268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13271 source: err.into(),
13272 }),
13273 }
13274 }
13275}
13276impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
13277 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
13278 match err {
13279 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
13280 }
13281 }
13282}
13283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
13284where
13285 R: Send + Sync + std::fmt::Debug + 'static,
13286{
13287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
13288 match err {
13289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13292 source: err.into(),
13293 }),
13294 }
13295 }
13296}
13297impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
13298 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
13299 match err {
13300 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
13301 }
13302 }
13303}
13304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
13305where
13306 R: Send + Sync + std::fmt::Debug + 'static,
13307{
13308 fn from(
13309 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
13310 ) -> Self {
13311 match err {
13312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13315 source: err.into(),
13316 }),
13317 }
13318 }
13319}
13320impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
13321 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
13322 match err {
13323 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
13324 }
13325 }
13326}
13327impl<R>
13328 From<
13329 ::aws_smithy_runtime_api::client::result::SdkError<
13330 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13331 R,
13332 >,
13333 > for Error
13334where
13335 R: Send + Sync + std::fmt::Debug + 'static,
13336{
13337 fn from(
13338 err: ::aws_smithy_runtime_api::client::result::SdkError<
13339 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13340 R,
13341 >,
13342 ) -> Self {
13343 match err {
13344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13347 source: err.into(),
13348 }),
13349 }
13350 }
13351}
13352impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
13353 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
13354 match err {
13355 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
13356 }
13357 }
13358}
13359impl<R>
13360 From<
13361 ::aws_smithy_runtime_api::client::result::SdkError<
13362 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13363 R,
13364 >,
13365 > for Error
13366where
13367 R: Send + Sync + std::fmt::Debug + 'static,
13368{
13369 fn from(
13370 err: ::aws_smithy_runtime_api::client::result::SdkError<
13371 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13372 R,
13373 >,
13374 ) -> Self {
13375 match err {
13376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13379 source: err.into(),
13380 }),
13381 }
13382 }
13383}
13384impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
13385 fn from(
13386 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13387 ) -> Self {
13388 match err {
13389 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
13390 }
13391 }
13392}
13393impl<R>
13394 From<
13395 ::aws_smithy_runtime_api::client::result::SdkError<
13396 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13397 R,
13398 >,
13399 > for Error
13400where
13401 R: Send + Sync + std::fmt::Debug + 'static,
13402{
13403 fn from(
13404 err: ::aws_smithy_runtime_api::client::result::SdkError<
13405 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13406 R,
13407 >,
13408 ) -> Self {
13409 match err {
13410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13413 source: err.into(),
13414 }),
13415 }
13416 }
13417}
13418impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
13419 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
13420 match err {
13421 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
13422 Error::Unhandled(inner)
13423 }
13424 }
13425 }
13426}
13427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
13428where
13429 R: Send + Sync + std::fmt::Debug + 'static,
13430{
13431 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
13432 match err {
13433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13436 source: err.into(),
13437 }),
13438 }
13439 }
13440}
13441impl From<crate::operation::export_image::ExportImageError> for Error {
13442 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
13443 match err {
13444 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
13445 }
13446 }
13447}
13448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
13449 for Error
13450where
13451 R: Send + Sync + std::fmt::Debug + 'static,
13452{
13453 fn from(
13454 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
13455 ) -> Self {
13456 match err {
13457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13460 source: err.into(),
13461 }),
13462 }
13463 }
13464}
13465impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
13466 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
13467 match err {
13468 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
13469 }
13470 }
13471}
13472impl<R>
13473 From<
13474 ::aws_smithy_runtime_api::client::result::SdkError<
13475 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13476 R,
13477 >,
13478 > for Error
13479where
13480 R: Send + Sync + std::fmt::Debug + 'static,
13481{
13482 fn from(
13483 err: ::aws_smithy_runtime_api::client::result::SdkError<
13484 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13485 R,
13486 >,
13487 ) -> Self {
13488 match err {
13489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13492 source: err.into(),
13493 }),
13494 }
13495 }
13496}
13497impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
13498 fn from(
13499 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13500 ) -> Self {
13501 match err {
13502 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
13503 }
13504 }
13505}
13506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, 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::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, 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::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
13524 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
13525 match err {
13526 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
13527 }
13528 }
13529}
13530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
13531 for Error
13532where
13533 R: Send + Sync + std::fmt::Debug + 'static,
13534{
13535 fn from(
13536 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
13537 ) -> Self {
13538 match err {
13539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13542 source: err.into(),
13543 }),
13544 }
13545 }
13546}
13547impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
13548 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
13549 match err {
13550 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13551 }
13552 }
13553}
13554impl<R>
13555 From<
13556 ::aws_smithy_runtime_api::client::result::SdkError<
13557 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13558 R,
13559 >,
13560 > for Error
13561where
13562 R: Send + Sync + std::fmt::Debug + 'static,
13563{
13564 fn from(
13565 err: ::aws_smithy_runtime_api::client::result::SdkError<
13566 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13567 R,
13568 >,
13569 ) -> Self {
13570 match err {
13571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13574 source: err.into(),
13575 }),
13576 }
13577 }
13578}
13579impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
13580 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
13581 match err {
13582 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
13583 Error::Unhandled(inner)
13584 }
13585 }
13586 }
13587}
13588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
13589 for Error
13590where
13591 R: Send + Sync + std::fmt::Debug + 'static,
13592{
13593 fn from(
13594 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
13595 ) -> Self {
13596 match err {
13597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13600 source: err.into(),
13601 }),
13602 }
13603 }
13604}
13605impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
13606 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
13607 match err {
13608 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13609 }
13610 }
13611}
13612impl<R>
13613 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
13614 for Error
13615where
13616 R: Send + Sync + std::fmt::Debug + 'static,
13617{
13618 fn from(
13619 err: ::aws_smithy_runtime_api::client::result::SdkError<
13620 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
13621 R,
13622 >,
13623 ) -> Self {
13624 match err {
13625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13628 source: err.into(),
13629 }),
13630 }
13631 }
13632}
13633impl From<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
13634 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
13635 match err {
13636 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
13637 }
13638 }
13639}
13640impl<R>
13641 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, R>>
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::get_capacity_manager_attributes::GetCapacityManagerAttributesError,
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::get_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
13662 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
13663 match err {
13664 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
13665 }
13666 }
13667}
13668impl<R>
13669 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, R>>
13670 for Error
13671where
13672 R: Send + Sync + std::fmt::Debug + 'static,
13673{
13674 fn from(
13675 err: ::aws_smithy_runtime_api::client::result::SdkError<
13676 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError,
13677 R,
13678 >,
13679 ) -> Self {
13680 match err {
13681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13684 source: err.into(),
13685 }),
13686 }
13687 }
13688}
13689impl From<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError> for Error {
13690 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
13691 match err {
13692 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
13693 }
13694 }
13695}
13696impl<R>
13697 From<
13698 ::aws_smithy_runtime_api::client::result::SdkError<
13699 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13700 R,
13701 >,
13702 > for Error
13703where
13704 R: Send + Sync + std::fmt::Debug + 'static,
13705{
13706 fn from(
13707 err: ::aws_smithy_runtime_api::client::result::SdkError<
13708 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13709 R,
13710 >,
13711 ) -> Self {
13712 match err {
13713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13716 source: err.into(),
13717 }),
13718 }
13719 }
13720}
13721impl From<crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
13722 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
13723 match err {
13724 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
13725 Error::Unhandled(inner)
13726 }
13727 }
13728 }
13729}
13730impl<R>
13731 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
13732 for Error
13733where
13734 R: Send + Sync + std::fmt::Debug + 'static,
13735{
13736 fn from(
13737 err: ::aws_smithy_runtime_api::client::result::SdkError<
13738 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
13739 R,
13740 >,
13741 ) -> Self {
13742 match err {
13743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13746 source: err.into(),
13747 }),
13748 }
13749 }
13750}
13751impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
13752 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
13753 match err {
13754 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
13755 }
13756 }
13757}
13758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
13759where
13760 R: Send + Sync + std::fmt::Debug + 'static,
13761{
13762 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
13763 match err {
13764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13767 source: err.into(),
13768 }),
13769 }
13770 }
13771}
13772impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
13773 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
13774 match err {
13775 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
13776 }
13777 }
13778}
13779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
13780where
13781 R: Send + Sync + std::fmt::Debug + 'static,
13782{
13783 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
13784 match err {
13785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13788 source: err.into(),
13789 }),
13790 }
13791 }
13792}
13793impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
13794 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
13795 match err {
13796 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
13797 }
13798 }
13799}
13800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
13801where
13802 R: Send + Sync + std::fmt::Debug + 'static,
13803{
13804 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
13805 match err {
13806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13809 source: err.into(),
13810 }),
13811 }
13812 }
13813}
13814impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
13815 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
13816 match err {
13817 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
13818 }
13819 }
13820}
13821impl<R>
13822 From<
13823 ::aws_smithy_runtime_api::client::result::SdkError<
13824 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13825 R,
13826 >,
13827 > for Error
13828where
13829 R: Send + Sync + std::fmt::Debug + 'static,
13830{
13831 fn from(
13832 err: ::aws_smithy_runtime_api::client::result::SdkError<
13833 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13834 R,
13835 >,
13836 ) -> Self {
13837 match err {
13838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13841 source: err.into(),
13842 }),
13843 }
13844 }
13845}
13846impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
13847 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
13848 match err {
13849 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
13850 Error::Unhandled(inner)
13851 }
13852 }
13853 }
13854}
13855impl<R>
13856 From<
13857 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
13858 > for Error
13859where
13860 R: Send + Sync + std::fmt::Debug + 'static,
13861{
13862 fn from(
13863 err: ::aws_smithy_runtime_api::client::result::SdkError<
13864 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
13865 R,
13866 >,
13867 ) -> Self {
13868 match err {
13869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13872 source: err.into(),
13873 }),
13874 }
13875 }
13876}
13877impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
13878 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
13879 match err {
13880 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
13881 }
13882 }
13883}
13884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
13885 for Error
13886where
13887 R: Send + Sync + std::fmt::Debug + 'static,
13888{
13889 fn from(
13890 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
13891 ) -> Self {
13892 match err {
13893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13896 source: err.into(),
13897 }),
13898 }
13899 }
13900}
13901impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
13902 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
13903 match err {
13904 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
13905 }
13906 }
13907}
13908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
13909 for Error
13910where
13911 R: Send + Sync + std::fmt::Debug + 'static,
13912{
13913 fn from(
13914 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
13915 ) -> Self {
13916 match err {
13917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13920 source: err.into(),
13921 }),
13922 }
13923 }
13924}
13925impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
13926 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
13927 match err {
13928 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13929 }
13930 }
13931}
13932impl<R>
13933 From<
13934 ::aws_smithy_runtime_api::client::result::SdkError<
13935 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13936 R,
13937 >,
13938 > for Error
13939where
13940 R: Send + Sync + std::fmt::Debug + 'static,
13941{
13942 fn from(
13943 err: ::aws_smithy_runtime_api::client::result::SdkError<
13944 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13945 R,
13946 >,
13947 ) -> Self {
13948 match err {
13949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13952 source: err.into(),
13953 }),
13954 }
13955 }
13956}
13957impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
13958 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
13959 match err {
13960 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
13961 }
13962 }
13963}
13964impl<R>
13965 From<
13966 ::aws_smithy_runtime_api::client::result::SdkError<
13967 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13968 R,
13969 >,
13970 > for Error
13971where
13972 R: Send + Sync + std::fmt::Debug + 'static,
13973{
13974 fn from(
13975 err: ::aws_smithy_runtime_api::client::result::SdkError<
13976 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13977 R,
13978 >,
13979 ) -> Self {
13980 match err {
13981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13984 source: err.into(),
13985 }),
13986 }
13987 }
13988}
13989impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
13990 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
13991 match err {
13992 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
13993 }
13994 }
13995}
13996impl<R>
13997 From<
13998 ::aws_smithy_runtime_api::client::result::SdkError<
13999 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14000 R,
14001 >,
14002 > for Error
14003where
14004 R: Send + Sync + std::fmt::Debug + 'static,
14005{
14006 fn from(
14007 err: ::aws_smithy_runtime_api::client::result::SdkError<
14008 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14009 R,
14010 >,
14011 ) -> Self {
14012 match err {
14013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14016 source: err.into(),
14017 }),
14018 }
14019 }
14020}
14021impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
14022 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
14023 match err {
14024 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
14025 Error::Unhandled(inner)
14026 }
14027 }
14028 }
14029}
14030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>> for Error
14031where
14032 R: Send + Sync + std::fmt::Debug + 'static,
14033{
14034 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>) -> Self {
14035 match err {
14036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14039 source: err.into(),
14040 }),
14041 }
14042 }
14043}
14044impl From<crate::operation::get_image_ancestry::GetImageAncestryError> for Error {
14045 fn from(err: crate::operation::get_image_ancestry::GetImageAncestryError) -> Self {
14046 match err {
14047 crate::operation::get_image_ancestry::GetImageAncestryError::Unhandled(inner) => Error::Unhandled(inner),
14048 }
14049 }
14050}
14051impl<R>
14052 From<
14053 ::aws_smithy_runtime_api::client::result::SdkError<
14054 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14055 R,
14056 >,
14057 > for Error
14058where
14059 R: Send + Sync + std::fmt::Debug + 'static,
14060{
14061 fn from(
14062 err: ::aws_smithy_runtime_api::client::result::SdkError<
14063 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14064 R,
14065 >,
14066 ) -> Self {
14067 match err {
14068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14071 source: err.into(),
14072 }),
14073 }
14074 }
14075}
14076impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
14077 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
14078 match err {
14079 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
14080 }
14081 }
14082}
14083impl<R>
14084 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
14085 for Error
14086where
14087 R: Send + Sync + std::fmt::Debug + 'static,
14088{
14089 fn from(
14090 err: ::aws_smithy_runtime_api::client::result::SdkError<
14091 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
14092 R,
14093 >,
14094 ) -> Self {
14095 match err {
14096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14099 source: err.into(),
14100 }),
14101 }
14102 }
14103}
14104impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
14105 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
14106 match err {
14107 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
14108 }
14109 }
14110}
14111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
14112where
14113 R: Send + Sync + std::fmt::Debug + 'static,
14114{
14115 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
14116 match err {
14117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14120 source: err.into(),
14121 }),
14122 }
14123 }
14124}
14125impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
14126 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
14127 match err {
14128 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
14129 }
14130 }
14131}
14132impl<R>
14133 From<
14134 ::aws_smithy_runtime_api::client::result::SdkError<
14135 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14136 R,
14137 >,
14138 > for Error
14139where
14140 R: Send + Sync + std::fmt::Debug + 'static,
14141{
14142 fn from(
14143 err: ::aws_smithy_runtime_api::client::result::SdkError<
14144 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14145 R,
14146 >,
14147 ) -> Self {
14148 match err {
14149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14152 source: err.into(),
14153 }),
14154 }
14155 }
14156}
14157impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
14158 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
14159 match err {
14160 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
14161 Error::Unhandled(inner)
14162 }
14163 }
14164 }
14165}
14166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
14167where
14168 R: Send + Sync + std::fmt::Debug + 'static,
14169{
14170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
14171 match err {
14172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14175 source: err.into(),
14176 }),
14177 }
14178 }
14179}
14180impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
14181 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
14182 match err {
14183 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
14184 }
14185 }
14186}
14187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
14188where
14189 R: Send + Sync + std::fmt::Debug + 'static,
14190{
14191 fn from(
14192 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
14193 ) -> Self {
14194 match err {
14195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14198 source: err.into(),
14199 }),
14200 }
14201 }
14202}
14203impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
14204 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
14205 match err {
14206 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
14207 }
14208 }
14209}
14210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
14211 for Error
14212where
14213 R: Send + Sync + std::fmt::Debug + 'static,
14214{
14215 fn from(
14216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
14217 ) -> Self {
14218 match err {
14219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14222 source: err.into(),
14223 }),
14224 }
14225 }
14226}
14227impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14228 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14229 match err {
14230 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14231 }
14232 }
14233}
14234impl<R>
14235 From<
14236 ::aws_smithy_runtime_api::client::result::SdkError<
14237 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14238 R,
14239 >,
14240 > for Error
14241where
14242 R: Send + Sync + std::fmt::Debug + 'static,
14243{
14244 fn from(
14245 err: ::aws_smithy_runtime_api::client::result::SdkError<
14246 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14247 R,
14248 >,
14249 ) -> Self {
14250 match err {
14251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14254 source: err.into(),
14255 }),
14256 }
14257 }
14258}
14259impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14260 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14261 match err {
14262 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14263 Error::Unhandled(inner)
14264 }
14265 }
14266 }
14267}
14268impl<R>
14269 From<
14270 ::aws_smithy_runtime_api::client::result::SdkError<
14271 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14272 R,
14273 >,
14274 > for Error
14275where
14276 R: Send + Sync + std::fmt::Debug + 'static,
14277{
14278 fn from(
14279 err: ::aws_smithy_runtime_api::client::result::SdkError<
14280 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14281 R,
14282 >,
14283 ) -> Self {
14284 match err {
14285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14288 source: err.into(),
14289 }),
14290 }
14291 }
14292}
14293impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14294 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14295 match err {
14296 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14297 }
14298 }
14299}
14300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
14301 for Error
14302where
14303 R: Send + Sync + std::fmt::Debug + 'static,
14304{
14305 fn from(
14306 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
14307 ) -> Self {
14308 match err {
14309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14312 source: err.into(),
14313 }),
14314 }
14315 }
14316}
14317impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
14318 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
14319 match err {
14320 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
14321 }
14322 }
14323}
14324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
14325where
14326 R: Send + Sync + std::fmt::Debug + 'static,
14327{
14328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
14329 match err {
14330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14333 source: err.into(),
14334 }),
14335 }
14336 }
14337}
14338impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
14339 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
14340 match err {
14341 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14342 }
14343 }
14344}
14345impl<R>
14346 From<
14347 ::aws_smithy_runtime_api::client::result::SdkError<
14348 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14349 R,
14350 >,
14351 > for Error
14352where
14353 R: Send + Sync + std::fmt::Debug + 'static,
14354{
14355 fn from(
14356 err: ::aws_smithy_runtime_api::client::result::SdkError<
14357 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14358 R,
14359 >,
14360 ) -> Self {
14361 match err {
14362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14365 source: err.into(),
14366 }),
14367 }
14368 }
14369}
14370impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
14371 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
14372 match err {
14373 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
14374 }
14375 }
14376}
14377impl<R>
14378 From<
14379 ::aws_smithy_runtime_api::client::result::SdkError<
14380 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14381 R,
14382 >,
14383 > for Error
14384where
14385 R: Send + Sync + std::fmt::Debug + 'static,
14386{
14387 fn from(
14388 err: ::aws_smithy_runtime_api::client::result::SdkError<
14389 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14390 R,
14391 >,
14392 ) -> Self {
14393 match err {
14394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14397 source: err.into(),
14398 }),
14399 }
14400 }
14401}
14402impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
14403 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
14404 match err {
14405 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
14406 Error::Unhandled(inner)
14407 }
14408 }
14409 }
14410}
14411impl<R>
14412 From<
14413 ::aws_smithy_runtime_api::client::result::SdkError<
14414 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14415 R,
14416 >,
14417 > for Error
14418where
14419 R: Send + Sync + std::fmt::Debug + 'static,
14420{
14421 fn from(
14422 err: ::aws_smithy_runtime_api::client::result::SdkError<
14423 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14424 R,
14425 >,
14426 ) -> Self {
14427 match err {
14428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14431 source: err.into(),
14432 }),
14433 }
14434 }
14435}
14436impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
14437 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
14438 match err {
14439 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
14440 Error::Unhandled(inner)
14441 }
14442 }
14443 }
14444}
14445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
14446where
14447 R: Send + Sync + std::fmt::Debug + 'static,
14448{
14449 fn from(
14450 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
14451 ) -> Self {
14452 match err {
14453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14456 source: err.into(),
14457 }),
14458 }
14459 }
14460}
14461impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
14462 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
14463 match err {
14464 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14465 }
14466 }
14467}
14468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
14469where
14470 R: Send + Sync + std::fmt::Debug + 'static,
14471{
14472 fn from(
14473 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
14474 ) -> Self {
14475 match err {
14476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14479 source: err.into(),
14480 }),
14481 }
14482 }
14483}
14484impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
14485 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
14486 match err {
14487 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
14488 }
14489 }
14490}
14491impl<R>
14492 From<
14493 ::aws_smithy_runtime_api::client::result::SdkError<
14494 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14495 R,
14496 >,
14497 > for Error
14498where
14499 R: Send + Sync + std::fmt::Debug + 'static,
14500{
14501 fn from(
14502 err: ::aws_smithy_runtime_api::client::result::SdkError<
14503 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14504 R,
14505 >,
14506 ) -> Self {
14507 match err {
14508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14511 source: err.into(),
14512 }),
14513 }
14514 }
14515}
14516impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
14517 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
14518 match err {
14519 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
14520 Error::Unhandled(inner)
14521 }
14522 }
14523 }
14524}
14525impl<R>
14526 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
14527 for Error
14528where
14529 R: Send + Sync + std::fmt::Debug + 'static,
14530{
14531 fn from(
14532 err: ::aws_smithy_runtime_api::client::result::SdkError<
14533 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
14534 R,
14535 >,
14536 ) -> Self {
14537 match err {
14538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14541 source: err.into(),
14542 }),
14543 }
14544 }
14545}
14546impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
14547 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
14548 match err {
14549 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
14550 }
14551 }
14552}
14553impl<R>
14554 From<
14555 ::aws_smithy_runtime_api::client::result::SdkError<
14556 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14557 R,
14558 >,
14559 > for Error
14560where
14561 R: Send + Sync + std::fmt::Debug + 'static,
14562{
14563 fn from(
14564 err: ::aws_smithy_runtime_api::client::result::SdkError<
14565 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14566 R,
14567 >,
14568 ) -> Self {
14569 match err {
14570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14573 source: err.into(),
14574 }),
14575 }
14576 }
14577}
14578impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
14579 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
14580 match err {
14581 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
14582 inner,
14583 ) => Error::Unhandled(inner),
14584 }
14585 }
14586}
14587impl<R>
14588 From<
14589 ::aws_smithy_runtime_api::client::result::SdkError<
14590 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14591 R,
14592 >,
14593 > for Error
14594where
14595 R: Send + Sync + std::fmt::Debug + 'static,
14596{
14597 fn from(
14598 err: ::aws_smithy_runtime_api::client::result::SdkError<
14599 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14600 R,
14601 >,
14602 ) -> Self {
14603 match err {
14604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14607 source: err.into(),
14608 }),
14609 }
14610 }
14611}
14612impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
14613 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
14614 match err {
14615 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
14616 Error::Unhandled(inner)
14617 }
14618 }
14619 }
14620}
14621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
14622where
14623 R: Send + Sync + std::fmt::Debug + 'static,
14624{
14625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
14626 match err {
14627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14630 source: err.into(),
14631 }),
14632 }
14633 }
14634}
14635impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
14636 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
14637 match err {
14638 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
14639 }
14640 }
14641}
14642impl<R>
14643 From<
14644 ::aws_smithy_runtime_api::client::result::SdkError<
14645 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14646 R,
14647 >,
14648 > for Error
14649where
14650 R: Send + Sync + std::fmt::Debug + 'static,
14651{
14652 fn from(
14653 err: ::aws_smithy_runtime_api::client::result::SdkError<
14654 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14655 R,
14656 >,
14657 ) -> Self {
14658 match err {
14659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14662 source: err.into(),
14663 }),
14664 }
14665 }
14666}
14667impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
14668 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
14669 match err {
14670 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
14671 Error::Unhandled(inner)
14672 }
14673 }
14674 }
14675}
14676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
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<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
14683 ) -> Self {
14684 match err {
14685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14688 source: err.into(),
14689 }),
14690 }
14691 }
14692}
14693impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
14694 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
14695 match err {
14696 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
14697 }
14698 }
14699}
14700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
14701 for Error
14702where
14703 R: Send + Sync + std::fmt::Debug + 'static,
14704{
14705 fn from(
14706 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
14707 ) -> Self {
14708 match err {
14709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14712 source: err.into(),
14713 }),
14714 }
14715 }
14716}
14717impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
14718 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
14719 match err {
14720 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
14721 }
14722 }
14723}
14724impl<R>
14725 From<
14726 ::aws_smithy_runtime_api::client::result::SdkError<
14727 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14728 R,
14729 >,
14730 > for Error
14731where
14732 R: Send + Sync + std::fmt::Debug + 'static,
14733{
14734 fn from(
14735 err: ::aws_smithy_runtime_api::client::result::SdkError<
14736 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14737 R,
14738 >,
14739 ) -> Self {
14740 match err {
14741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14744 source: err.into(),
14745 }),
14746 }
14747 }
14748}
14749impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
14750 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
14751 match err {
14752 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
14753 }
14754 }
14755}
14756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
14757 for Error
14758where
14759 R: Send + Sync + std::fmt::Debug + 'static,
14760{
14761 fn from(
14762 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
14763 ) -> Self {
14764 match err {
14765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14768 source: err.into(),
14769 }),
14770 }
14771 }
14772}
14773impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
14774 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
14775 match err {
14776 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
14777 }
14778 }
14779}
14780impl<R>
14781 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
14782 for Error
14783where
14784 R: Send + Sync + std::fmt::Debug + 'static,
14785{
14786 fn from(
14787 err: ::aws_smithy_runtime_api::client::result::SdkError<
14788 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
14789 R,
14790 >,
14791 ) -> Self {
14792 match err {
14793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14796 source: err.into(),
14797 }),
14798 }
14799 }
14800}
14801impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
14802 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
14803 match err {
14804 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
14805 }
14806 }
14807}
14808impl<R>
14809 From<
14810 ::aws_smithy_runtime_api::client::result::SdkError<
14811 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14812 R,
14813 >,
14814 > for Error
14815where
14816 R: Send + Sync + std::fmt::Debug + 'static,
14817{
14818 fn from(
14819 err: ::aws_smithy_runtime_api::client::result::SdkError<
14820 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14821 R,
14822 >,
14823 ) -> Self {
14824 match err {
14825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14828 source: err.into(),
14829 }),
14830 }
14831 }
14832}
14833impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
14834 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
14835 match err {
14836 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
14837 Error::Unhandled(inner)
14838 }
14839 }
14840 }
14841}
14842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
14843 for Error
14844where
14845 R: Send + Sync + std::fmt::Debug + 'static,
14846{
14847 fn from(
14848 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
14849 ) -> Self {
14850 match err {
14851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14854 source: err.into(),
14855 }),
14856 }
14857 }
14858}
14859impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
14860 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
14861 match err {
14862 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
14863 }
14864 }
14865}
14866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
14867 for Error
14868where
14869 R: Send + Sync + std::fmt::Debug + 'static,
14870{
14871 fn from(
14872 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
14873 ) -> Self {
14874 match err {
14875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14878 source: err.into(),
14879 }),
14880 }
14881 }
14882}
14883impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
14884 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
14885 match err {
14886 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
14887 }
14888 }
14889}
14890impl<R>
14891 From<
14892 ::aws_smithy_runtime_api::client::result::SdkError<
14893 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14894 R,
14895 >,
14896 > for Error
14897where
14898 R: Send + Sync + std::fmt::Debug + 'static,
14899{
14900 fn from(
14901 err: ::aws_smithy_runtime_api::client::result::SdkError<
14902 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14903 R,
14904 >,
14905 ) -> Self {
14906 match err {
14907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14910 source: err.into(),
14911 }),
14912 }
14913 }
14914}
14915impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
14916 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
14917 match err {
14918 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
14919 Error::Unhandled(inner)
14920 }
14921 }
14922 }
14923}
14924impl<R>
14925 From<
14926 ::aws_smithy_runtime_api::client::result::SdkError<
14927 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14928 R,
14929 >,
14930 > for Error
14931where
14932 R: Send + Sync + std::fmt::Debug + 'static,
14933{
14934 fn from(
14935 err: ::aws_smithy_runtime_api::client::result::SdkError<
14936 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14937 R,
14938 >,
14939 ) -> Self {
14940 match err {
14941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14944 source: err.into(),
14945 }),
14946 }
14947 }
14948}
14949impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
14950 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
14951 match err {
14952 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
14953 inner,
14954 ) => Error::Unhandled(inner),
14955 }
14956 }
14957}
14958impl<R>
14959 From<
14960 ::aws_smithy_runtime_api::client::result::SdkError<
14961 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14962 R,
14963 >,
14964 > for Error
14965where
14966 R: Send + Sync + std::fmt::Debug + 'static,
14967{
14968 fn from(
14969 err: ::aws_smithy_runtime_api::client::result::SdkError<
14970 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14971 R,
14972 >,
14973 ) -> Self {
14974 match err {
14975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14978 source: err.into(),
14979 }),
14980 }
14981 }
14982}
14983impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
14984 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
14985 match err {
14986 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
14987 Error::Unhandled(inner)
14988 }
14989 }
14990 }
14991}
14992impl<R>
14993 From<
14994 ::aws_smithy_runtime_api::client::result::SdkError<
14995 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14996 R,
14997 >,
14998 > for Error
14999where
15000 R: Send + Sync + std::fmt::Debug + 'static,
15001{
15002 fn from(
15003 err: ::aws_smithy_runtime_api::client::result::SdkError<
15004 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15005 R,
15006 >,
15007 ) -> Self {
15008 match err {
15009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15012 source: err.into(),
15013 }),
15014 }
15015 }
15016}
15017impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
15018 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
15019 match err {
15020 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
15021 Error::Unhandled(inner)
15022 }
15023 }
15024 }
15025}
15026impl<R>
15027 From<
15028 ::aws_smithy_runtime_api::client::result::SdkError<
15029 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15030 R,
15031 >,
15032 > for Error
15033where
15034 R: Send + Sync + std::fmt::Debug + 'static,
15035{
15036 fn from(
15037 err: ::aws_smithy_runtime_api::client::result::SdkError<
15038 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15039 R,
15040 >,
15041 ) -> Self {
15042 match err {
15043 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15044 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15045 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15046 source: err.into(),
15047 }),
15048 }
15049 }
15050}
15051impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
15052 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
15053 match err {
15054 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
15055 Error::Unhandled(inner)
15056 }
15057 }
15058 }
15059}
15060impl<R>
15061 From<
15062 ::aws_smithy_runtime_api::client::result::SdkError<
15063 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15064 R,
15065 >,
15066 > for Error
15067where
15068 R: Send + Sync + std::fmt::Debug + 'static,
15069{
15070 fn from(
15071 err: ::aws_smithy_runtime_api::client::result::SdkError<
15072 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15073 R,
15074 >,
15075 ) -> Self {
15076 match err {
15077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15080 source: err.into(),
15081 }),
15082 }
15083 }
15084}
15085impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
15086 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
15087 match err {
15088 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
15089 Error::Unhandled(inner)
15090 }
15091 }
15092 }
15093}
15094impl<R>
15095 From<
15096 ::aws_smithy_runtime_api::client::result::SdkError<
15097 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15098 R,
15099 >,
15100 > for Error
15101where
15102 R: Send + Sync + std::fmt::Debug + 'static,
15103{
15104 fn from(
15105 err: ::aws_smithy_runtime_api::client::result::SdkError<
15106 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15107 R,
15108 >,
15109 ) -> Self {
15110 match err {
15111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15114 source: err.into(),
15115 }),
15116 }
15117 }
15118}
15119impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
15120 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
15121 match err {
15122 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
15123 Error::Unhandled(inner)
15124 }
15125 }
15126 }
15127}
15128impl<R>
15129 From<
15130 ::aws_smithy_runtime_api::client::result::SdkError<
15131 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15132 R,
15133 >,
15134 > for Error
15135where
15136 R: Send + Sync + std::fmt::Debug + 'static,
15137{
15138 fn from(
15139 err: ::aws_smithy_runtime_api::client::result::SdkError<
15140 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15141 R,
15142 >,
15143 ) -> Self {
15144 match err {
15145 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15146 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15147 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15148 source: err.into(),
15149 }),
15150 }
15151 }
15152}
15153impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
15154 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
15155 match err {
15156 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15157 }
15158 }
15159}
15160impl<R>
15161 From<
15162 ::aws_smithy_runtime_api::client::result::SdkError<
15163 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15164 R,
15165 >,
15166 > for Error
15167where
15168 R: Send + Sync + std::fmt::Debug + 'static,
15169{
15170 fn from(
15171 err: ::aws_smithy_runtime_api::client::result::SdkError<
15172 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15173 R,
15174 >,
15175 ) -> Self {
15176 match err {
15177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15180 source: err.into(),
15181 }),
15182 }
15183 }
15184}
15185impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
15186 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
15187 match err {
15188 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
15189 Error::Unhandled(inner)
15190 }
15191 }
15192 }
15193}
15194impl<R>
15195 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
15196 for Error
15197where
15198 R: Send + Sync + std::fmt::Debug + 'static,
15199{
15200 fn from(
15201 err: ::aws_smithy_runtime_api::client::result::SdkError<
15202 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
15203 R,
15204 >,
15205 ) -> Self {
15206 match err {
15207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15210 source: err.into(),
15211 }),
15212 }
15213 }
15214}
15215impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
15216 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
15217 match err {
15218 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15219 }
15220 }
15221}
15222impl<R>
15223 From<
15224 ::aws_smithy_runtime_api::client::result::SdkError<
15225 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15226 R,
15227 >,
15228 > for Error
15229where
15230 R: Send + Sync + std::fmt::Debug + 'static,
15231{
15232 fn from(
15233 err: ::aws_smithy_runtime_api::client::result::SdkError<
15234 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15235 R,
15236 >,
15237 ) -> Self {
15238 match err {
15239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15242 source: err.into(),
15243 }),
15244 }
15245 }
15246}
15247impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
15248 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
15249 match err {
15250 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
15251 Error::Unhandled(inner)
15252 }
15253 }
15254 }
15255}
15256impl<R>
15257 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
15258 for Error
15259where
15260 R: Send + Sync + std::fmt::Debug + 'static,
15261{
15262 fn from(
15263 err: ::aws_smithy_runtime_api::client::result::SdkError<
15264 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
15265 R,
15266 >,
15267 ) -> Self {
15268 match err {
15269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15272 source: err.into(),
15273 }),
15274 }
15275 }
15276}
15277impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
15278 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
15279 match err {
15280 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
15281 }
15282 }
15283}
15284impl<R>
15285 From<
15286 ::aws_smithy_runtime_api::client::result::SdkError<
15287 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15288 R,
15289 >,
15290 > for Error
15291where
15292 R: Send + Sync + std::fmt::Debug + 'static,
15293{
15294 fn from(
15295 err: ::aws_smithy_runtime_api::client::result::SdkError<
15296 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15297 R,
15298 >,
15299 ) -> Self {
15300 match err {
15301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15304 source: err.into(),
15305 }),
15306 }
15307 }
15308}
15309impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
15310 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
15311 match err {
15312 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
15313 }
15314 }
15315}
15316impl<R>
15317 From<
15318 ::aws_smithy_runtime_api::client::result::SdkError<
15319 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15320 R,
15321 >,
15322 > for Error
15323where
15324 R: Send + Sync + std::fmt::Debug + 'static,
15325{
15326 fn from(
15327 err: ::aws_smithy_runtime_api::client::result::SdkError<
15328 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15329 R,
15330 >,
15331 ) -> Self {
15332 match err {
15333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15336 source: err.into(),
15337 }),
15338 }
15339 }
15340}
15341impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
15342 fn from(
15343 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15344 ) -> Self {
15345 match err {
15346 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
15347 }
15348 }
15349}
15350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
15351where
15352 R: Send + Sync + std::fmt::Debug + 'static,
15353{
15354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
15355 match err {
15356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15359 source: err.into(),
15360 }),
15361 }
15362 }
15363}
15364impl From<crate::operation::import_image::ImportImageError> for Error {
15365 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
15366 match err {
15367 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
15368 }
15369 }
15370}
15371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
15372where
15373 R: Send + Sync + std::fmt::Debug + 'static,
15374{
15375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
15376 match err {
15377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15380 source: err.into(),
15381 }),
15382 }
15383 }
15384}
15385impl From<crate::operation::import_instance::ImportInstanceError> for Error {
15386 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
15387 match err {
15388 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
15389 }
15390 }
15391}
15392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
15393where
15394 R: Send + Sync + std::fmt::Debug + 'static,
15395{
15396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
15397 match err {
15398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15401 source: err.into(),
15402 }),
15403 }
15404 }
15405}
15406impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
15407 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
15408 match err {
15409 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
15410 }
15411 }
15412}
15413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
15414where
15415 R: Send + Sync + std::fmt::Debug + 'static,
15416{
15417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
15418 match err {
15419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15422 source: err.into(),
15423 }),
15424 }
15425 }
15426}
15427impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
15428 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
15429 match err {
15430 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15431 }
15432 }
15433}
15434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
15435where
15436 R: Send + Sync + std::fmt::Debug + 'static,
15437{
15438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
15439 match err {
15440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15443 source: err.into(),
15444 }),
15445 }
15446 }
15447}
15448impl From<crate::operation::import_volume::ImportVolumeError> for Error {
15449 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
15450 match err {
15451 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
15452 }
15453 }
15454}
15455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
15456 for Error
15457where
15458 R: Send + Sync + std::fmt::Debug + 'static,
15459{
15460 fn from(
15461 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
15462 ) -> Self {
15463 match err {
15464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15467 source: err.into(),
15468 }),
15469 }
15470 }
15471}
15472impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
15473 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
15474 match err {
15475 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15476 }
15477 }
15478}
15479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
15480 for Error
15481where
15482 R: Send + Sync + std::fmt::Debug + 'static,
15483{
15484 fn from(
15485 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
15486 ) -> Self {
15487 match err {
15488 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15489 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15490 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15491 source: err.into(),
15492 }),
15493 }
15494 }
15495}
15496impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
15497 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
15498 match err {
15499 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15500 }
15501 }
15502}
15503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
15504where
15505 R: Send + Sync + std::fmt::Debug + 'static,
15506{
15507 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
15508 match err {
15509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15512 source: err.into(),
15513 }),
15514 }
15515 }
15516}
15517impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
15518 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
15519 match err {
15520 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15521 }
15522 }
15523}
15524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
15525where
15526 R: Send + Sync + std::fmt::Debug + 'static,
15527{
15528 fn from(
15529 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
15530 ) -> Self {
15531 match err {
15532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15535 source: err.into(),
15536 }),
15537 }
15538 }
15539}
15540impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
15541 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
15542 match err {
15543 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15544 }
15545 }
15546}
15547impl<R>
15548 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
15549 for Error
15550where
15551 R: Send + Sync + std::fmt::Debug + 'static,
15552{
15553 fn from(
15554 err: ::aws_smithy_runtime_api::client::result::SdkError<
15555 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
15556 R,
15557 >,
15558 ) -> Self {
15559 match err {
15560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15563 source: err.into(),
15564 }),
15565 }
15566 }
15567}
15568impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
15569 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
15570 match err {
15571 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
15572 }
15573 }
15574}
15575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
15576 for Error
15577where
15578 R: Send + Sync + std::fmt::Debug + 'static,
15579{
15580 fn from(
15581 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
15582 ) -> Self {
15583 match err {
15584 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15585 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15586 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15587 source: err.into(),
15588 }),
15589 }
15590 }
15591}
15592impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
15593 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
15594 match err {
15595 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
15596 }
15597 }
15598}
15599impl<R>
15600 From<
15601 ::aws_smithy_runtime_api::client::result::SdkError<
15602 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15603 R,
15604 >,
15605 > for Error
15606where
15607 R: Send + Sync + std::fmt::Debug + 'static,
15608{
15609 fn from(
15610 err: ::aws_smithy_runtime_api::client::result::SdkError<
15611 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15612 R,
15613 >,
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::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
15625 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
15626 match err {
15627 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
15628 }
15629 }
15630}
15631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, 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::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, 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::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
15649 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
15650 match err {
15651 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15652 }
15653 }
15654}
15655impl<R>
15656 From<
15657 ::aws_smithy_runtime_api::client::result::SdkError<
15658 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
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::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
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::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
15681 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
15682 match err {
15683 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
15684 }
15685 }
15686}
15687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
15688 for Error
15689where
15690 R: Send + Sync + std::fmt::Debug + 'static,
15691{
15692 fn from(
15693 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
15694 ) -> Self {
15695 match err {
15696 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15697 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15698 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15699 source: err.into(),
15700 }),
15701 }
15702 }
15703}
15704impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
15705 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
15706 match err {
15707 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
15708 }
15709 }
15710}
15711impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
15712where
15713 R: Send + Sync + std::fmt::Debug + 'static,
15714{
15715 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
15716 match err {
15717 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15718 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15719 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15720 source: err.into(),
15721 }),
15722 }
15723 }
15724}
15725impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
15726 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
15727 match err {
15728 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
15729 }
15730 }
15731}
15732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
15733 for Error
15734where
15735 R: Send + Sync + std::fmt::Debug + 'static,
15736{
15737 fn from(
15738 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
15739 ) -> Self {
15740 match err {
15741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15744 source: err.into(),
15745 }),
15746 }
15747 }
15748}
15749impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
15750 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
15751 match err {
15752 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15753 }
15754 }
15755}
15756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
15757where
15758 R: Send + Sync + std::fmt::Debug + 'static,
15759{
15760 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
15761 match err {
15762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15765 source: err.into(),
15766 }),
15767 }
15768 }
15769}
15770impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
15771 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
15772 match err {
15773 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
15774 }
15775 }
15776}
15777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
15778 for Error
15779where
15780 R: Send + Sync + std::fmt::Debug + 'static,
15781{
15782 fn from(
15783 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
15784 ) -> Self {
15785 match err {
15786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15789 source: err.into(),
15790 }),
15791 }
15792 }
15793}
15794impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
15795 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
15796 match err {
15797 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15798 }
15799 }
15800}
15801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
15802where
15803 R: Send + Sync + std::fmt::Debug + 'static,
15804{
15805 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
15806 match err {
15807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15810 source: err.into(),
15811 }),
15812 }
15813 }
15814}
15815impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
15816 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
15817 match err {
15818 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15819 }
15820 }
15821}
15822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
15823where
15824 R: Send + Sync + std::fmt::Debug + 'static,
15825{
15826 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
15827 match err {
15828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15831 source: err.into(),
15832 }),
15833 }
15834 }
15835}
15836impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
15837 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
15838 match err {
15839 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15840 }
15841 }
15842}
15843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
15844 for Error
15845where
15846 R: Send + Sync + std::fmt::Debug + 'static,
15847{
15848 fn from(
15849 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
15850 ) -> Self {
15851 match err {
15852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15855 source: err.into(),
15856 }),
15857 }
15858 }
15859}
15860impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
15861 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
15862 match err {
15863 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15864 }
15865 }
15866}
15867impl<R>
15868 From<
15869 ::aws_smithy_runtime_api::client::result::SdkError<
15870 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15871 R,
15872 >,
15873 > for Error
15874where
15875 R: Send + Sync + std::fmt::Debug + 'static,
15876{
15877 fn from(
15878 err: ::aws_smithy_runtime_api::client::result::SdkError<
15879 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15880 R,
15881 >,
15882 ) -> Self {
15883 match err {
15884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15887 source: err.into(),
15888 }),
15889 }
15890 }
15891}
15892impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
15893 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
15894 match err {
15895 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
15896 Error::Unhandled(inner)
15897 }
15898 }
15899 }
15900}
15901impl<R>
15902 From<
15903 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
15904 > for Error
15905where
15906 R: Send + Sync + std::fmt::Debug + 'static,
15907{
15908 fn from(
15909 err: ::aws_smithy_runtime_api::client::result::SdkError<
15910 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
15911 R,
15912 >,
15913 ) -> Self {
15914 match err {
15915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15918 source: err.into(),
15919 }),
15920 }
15921 }
15922}
15923impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
15924 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
15925 match err {
15926 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15927 }
15928 }
15929}
15930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
15931 for Error
15932where
15933 R: Send + Sync + std::fmt::Debug + 'static,
15934{
15935 fn from(
15936 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
15937 ) -> Self {
15938 match err {
15939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15942 source: err.into(),
15943 }),
15944 }
15945 }
15946}
15947impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
15948 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
15949 match err {
15950 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15951 }
15952 }
15953}
15954impl<R>
15955 From<
15956 ::aws_smithy_runtime_api::client::result::SdkError<
15957 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15958 R,
15959 >,
15960 > for Error
15961where
15962 R: Send + Sync + std::fmt::Debug + 'static,
15963{
15964 fn from(
15965 err: ::aws_smithy_runtime_api::client::result::SdkError<
15966 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15967 R,
15968 >,
15969 ) -> Self {
15970 match err {
15971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15974 source: err.into(),
15975 }),
15976 }
15977 }
15978}
15979impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
15980 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
15981 match err {
15982 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
15983 Error::Unhandled(inner)
15984 }
15985 }
15986 }
15987}
15988impl<R>
15989 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
15990 for Error
15991where
15992 R: Send + Sync + std::fmt::Debug + 'static,
15993{
15994 fn from(
15995 err: ::aws_smithy_runtime_api::client::result::SdkError<
15996 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
15997 R,
15998 >,
15999 ) -> Self {
16000 match err {
16001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16004 source: err.into(),
16005 }),
16006 }
16007 }
16008}
16009impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
16010 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
16011 match err {
16012 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
16013 }
16014 }
16015}
16016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
16017 for Error
16018where
16019 R: Send + Sync + std::fmt::Debug + 'static,
16020{
16021 fn from(
16022 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
16023 ) -> Self {
16024 match err {
16025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16028 source: err.into(),
16029 }),
16030 }
16031 }
16032}
16033impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
16034 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
16035 match err {
16036 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
16037 }
16038 }
16039}
16040impl<R>
16041 From<
16042 ::aws_smithy_runtime_api::client::result::SdkError<
16043 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16044 R,
16045 >,
16046 > for Error
16047where
16048 R: Send + Sync + std::fmt::Debug + 'static,
16049{
16050 fn from(
16051 err: ::aws_smithy_runtime_api::client::result::SdkError<
16052 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16053 R,
16054 >,
16055 ) -> Self {
16056 match err {
16057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16060 source: err.into(),
16061 }),
16062 }
16063 }
16064}
16065impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
16066 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
16067 match err {
16068 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16069 }
16070 }
16071}
16072impl<R>
16073 From<
16074 ::aws_smithy_runtime_api::client::result::SdkError<
16075 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16076 R,
16077 >,
16078 > for Error
16079where
16080 R: Send + Sync + std::fmt::Debug + 'static,
16081{
16082 fn from(
16083 err: ::aws_smithy_runtime_api::client::result::SdkError<
16084 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16085 R,
16086 >,
16087 ) -> Self {
16088 match err {
16089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16092 source: err.into(),
16093 }),
16094 }
16095 }
16096}
16097impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
16098 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
16099 match err {
16100 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
16101 }
16102 }
16103}
16104impl<R>
16105 From<
16106 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
16107 > for Error
16108where
16109 R: Send + Sync + std::fmt::Debug + 'static,
16110{
16111 fn from(
16112 err: ::aws_smithy_runtime_api::client::result::SdkError<
16113 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
16114 R,
16115 >,
16116 ) -> Self {
16117 match err {
16118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16121 source: err.into(),
16122 }),
16123 }
16124 }
16125}
16126impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
16127 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
16128 match err {
16129 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16130 }
16131 }
16132}
16133impl<R>
16134 From<
16135 ::aws_smithy_runtime_api::client::result::SdkError<
16136 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
16137 R,
16138 >,
16139 > for Error
16140where
16141 R: Send + Sync + std::fmt::Debug + 'static,
16142{
16143 fn from(
16144 err: ::aws_smithy_runtime_api::client::result::SdkError<
16145 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
16146 R,
16147 >,
16148 ) -> Self {
16149 match err {
16150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16153 source: err.into(),
16154 }),
16155 }
16156 }
16157}
16158impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
16159 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
16160 match err {
16161 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
16162 Error::Unhandled(inner)
16163 }
16164 }
16165 }
16166}
16167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
16168 for Error
16169where
16170 R: Send + Sync + std::fmt::Debug + 'static,
16171{
16172 fn from(
16173 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
16174 ) -> Self {
16175 match err {
16176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16179 source: err.into(),
16180 }),
16181 }
16182 }
16183}
16184impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
16185 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
16186 match err {
16187 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
16188 }
16189 }
16190}
16191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
16192where
16193 R: Send + Sync + std::fmt::Debug + 'static,
16194{
16195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
16196 match err {
16197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16200 source: err.into(),
16201 }),
16202 }
16203 }
16204}
16205impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
16206 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
16207 match err {
16208 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
16209 }
16210 }
16211}
16212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
16213where
16214 R: Send + Sync + std::fmt::Debug + 'static,
16215{
16216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
16217 match err {
16218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16221 source: err.into(),
16222 }),
16223 }
16224 }
16225}
16226impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
16227 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
16228 match err {
16229 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
16230 }
16231 }
16232}
16233impl<R>
16234 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
16235 for Error
16236where
16237 R: Send + Sync + std::fmt::Debug + 'static,
16238{
16239 fn from(
16240 err: ::aws_smithy_runtime_api::client::result::SdkError<
16241 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
16242 R,
16243 >,
16244 ) -> Self {
16245 match err {
16246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16249 source: err.into(),
16250 }),
16251 }
16252 }
16253}
16254impl From<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
16255 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
16256 match err {
16257 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
16258 }
16259 }
16260}
16261impl<R>
16262 From<
16263 ::aws_smithy_runtime_api::client::result::SdkError<
16264 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16265 R,
16266 >,
16267 > for Error
16268where
16269 R: Send + Sync + std::fmt::Debug + 'static,
16270{
16271 fn from(
16272 err: ::aws_smithy_runtime_api::client::result::SdkError<
16273 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16274 R,
16275 >,
16276 ) -> Self {
16277 match err {
16278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16281 source: err.into(),
16282 }),
16283 }
16284 }
16285}
16286impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
16287 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
16288 match err {
16289 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
16290 Error::Unhandled(inner)
16291 }
16292 }
16293 }
16294}
16295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
16296 for Error
16297where
16298 R: Send + Sync + std::fmt::Debug + 'static,
16299{
16300 fn from(
16301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
16302 ) -> Self {
16303 match err {
16304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16307 source: err.into(),
16308 }),
16309 }
16310 }
16311}
16312impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
16313 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
16314 match err {
16315 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
16316 }
16317 }
16318}
16319impl<R>
16320 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
16321 for Error
16322where
16323 R: Send + Sync + std::fmt::Debug + 'static,
16324{
16325 fn from(
16326 err: ::aws_smithy_runtime_api::client::result::SdkError<
16327 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
16328 R,
16329 >,
16330 ) -> Self {
16331 match err {
16332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16335 source: err.into(),
16336 }),
16337 }
16338 }
16339}
16340impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
16341 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
16342 match err {
16343 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
16344 }
16345 }
16346}
16347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
16348where
16349 R: Send + Sync + std::fmt::Debug + 'static,
16350{
16351 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
16352 match err {
16353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16356 source: err.into(),
16357 }),
16358 }
16359 }
16360}
16361impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
16362 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
16363 match err {
16364 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
16365 }
16366 }
16367}
16368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
16369where
16370 R: Send + Sync + std::fmt::Debug + 'static,
16371{
16372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
16373 match err {
16374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16377 source: err.into(),
16378 }),
16379 }
16380 }
16381}
16382impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
16383 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
16384 match err {
16385 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
16386 }
16387 }
16388}
16389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
16390 for Error
16391where
16392 R: Send + Sync + std::fmt::Debug + 'static,
16393{
16394 fn from(
16395 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
16396 ) -> Self {
16397 match err {
16398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16401 source: err.into(),
16402 }),
16403 }
16404 }
16405}
16406impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
16407 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
16408 match err {
16409 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
16410 }
16411 }
16412}
16413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
16414 for Error
16415where
16416 R: Send + Sync + std::fmt::Debug + 'static,
16417{
16418 fn from(
16419 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
16420 ) -> Self {
16421 match err {
16422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16425 source: err.into(),
16426 }),
16427 }
16428 }
16429}
16430impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
16431 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
16432 match err {
16433 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
16434 }
16435 }
16436}
16437impl<R>
16438 From<
16439 ::aws_smithy_runtime_api::client::result::SdkError<
16440 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16441 R,
16442 >,
16443 > for Error
16444where
16445 R: Send + Sync + std::fmt::Debug + 'static,
16446{
16447 fn from(
16448 err: ::aws_smithy_runtime_api::client::result::SdkError<
16449 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16450 R,
16451 >,
16452 ) -> Self {
16453 match err {
16454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16457 source: err.into(),
16458 }),
16459 }
16460 }
16461}
16462impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
16463 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
16464 match err {
16465 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16466 }
16467 }
16468}
16469impl<R>
16470 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
16471 for Error
16472where
16473 R: Send + Sync + std::fmt::Debug + 'static,
16474{
16475 fn from(
16476 err: ::aws_smithy_runtime_api::client::result::SdkError<
16477 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
16478 R,
16479 >,
16480 ) -> Self {
16481 match err {
16482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16485 source: err.into(),
16486 }),
16487 }
16488 }
16489}
16490impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
16491 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
16492 match err {
16493 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16494 }
16495 }
16496}
16497impl<R>
16498 From<
16499 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
16500 > for Error
16501where
16502 R: Send + Sync + std::fmt::Debug + 'static,
16503{
16504 fn from(
16505 err: ::aws_smithy_runtime_api::client::result::SdkError<
16506 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
16507 R,
16508 >,
16509 ) -> Self {
16510 match err {
16511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16514 source: err.into(),
16515 }),
16516 }
16517 }
16518}
16519impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
16520 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
16521 match err {
16522 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16523 }
16524 }
16525}
16526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
16527 for Error
16528where
16529 R: Send + Sync + std::fmt::Debug + 'static,
16530{
16531 fn from(
16532 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
16533 ) -> Self {
16534 match err {
16535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16538 source: err.into(),
16539 }),
16540 }
16541 }
16542}
16543impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
16544 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
16545 match err {
16546 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
16547 }
16548 }
16549}
16550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
16551where
16552 R: Send + Sync + std::fmt::Debug + 'static,
16553{
16554 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
16555 match err {
16556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16559 source: err.into(),
16560 }),
16561 }
16562 }
16563}
16564impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
16565 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
16566 match err {
16567 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
16568 }
16569 }
16570}
16571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
16572 for Error
16573where
16574 R: Send + Sync + std::fmt::Debug + 'static,
16575{
16576 fn from(
16577 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
16578 ) -> Self {
16579 match err {
16580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16583 source: err.into(),
16584 }),
16585 }
16586 }
16587}
16588impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
16589 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
16590 match err {
16591 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
16592 }
16593 }
16594}
16595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
16596 for Error
16597where
16598 R: Send + Sync + std::fmt::Debug + 'static,
16599{
16600 fn from(
16601 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
16602 ) -> Self {
16603 match err {
16604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16607 source: err.into(),
16608 }),
16609 }
16610 }
16611}
16612impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
16613 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
16614 match err {
16615 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16616 }
16617 }
16618}
16619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
16620where
16621 R: Send + Sync + std::fmt::Debug + 'static,
16622{
16623 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
16624 match err {
16625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16628 source: err.into(),
16629 }),
16630 }
16631 }
16632}
16633impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
16634 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
16635 match err {
16636 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
16637 }
16638 }
16639}
16640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
16641 for Error
16642where
16643 R: Send + Sync + std::fmt::Debug + 'static,
16644{
16645 fn from(
16646 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
16647 ) -> Self {
16648 match err {
16649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16652 source: err.into(),
16653 }),
16654 }
16655 }
16656}
16657impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
16658 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
16659 match err {
16660 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
16661 }
16662 }
16663}
16664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
16665where
16666 R: Send + Sync + std::fmt::Debug + 'static,
16667{
16668 fn from(
16669 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
16670 ) -> Self {
16671 match err {
16672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16675 source: err.into(),
16676 }),
16677 }
16678 }
16679}
16680impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
16681 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
16682 match err {
16683 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16684 }
16685 }
16686}
16687impl<R>
16688 From<
16689 ::aws_smithy_runtime_api::client::result::SdkError<
16690 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16691 R,
16692 >,
16693 > for Error
16694where
16695 R: Send + Sync + std::fmt::Debug + 'static,
16696{
16697 fn from(
16698 err: ::aws_smithy_runtime_api::client::result::SdkError<
16699 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16700 R,
16701 >,
16702 ) -> Self {
16703 match err {
16704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16707 source: err.into(),
16708 }),
16709 }
16710 }
16711}
16712impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
16713 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
16714 match err {
16715 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
16716 Error::Unhandled(inner)
16717 }
16718 }
16719 }
16720}
16721impl<R>
16722 From<
16723 ::aws_smithy_runtime_api::client::result::SdkError<
16724 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16725 R,
16726 >,
16727 > for Error
16728where
16729 R: Send + Sync + std::fmt::Debug + 'static,
16730{
16731 fn from(
16732 err: ::aws_smithy_runtime_api::client::result::SdkError<
16733 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16734 R,
16735 >,
16736 ) -> Self {
16737 match err {
16738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16741 source: err.into(),
16742 }),
16743 }
16744 }
16745}
16746impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
16747 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
16748 match err {
16749 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
16750 }
16751 }
16752}
16753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
16754 for Error
16755where
16756 R: Send + Sync + std::fmt::Debug + 'static,
16757{
16758 fn from(
16759 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
16760 ) -> Self {
16761 match err {
16762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16765 source: err.into(),
16766 }),
16767 }
16768 }
16769}
16770impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
16771 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
16772 match err {
16773 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
16774 }
16775 }
16776}
16777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
16778where
16779 R: Send + Sync + std::fmt::Debug + 'static,
16780{
16781 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> Self {
16782 match err {
16783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16786 source: err.into(),
16787 }),
16788 }
16789 }
16790}
16791impl From<crate::operation::modify_transit_gateway::ModifyTransitGatewayError> for Error {
16792 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
16793 match err {
16794 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
16795 }
16796 }
16797}
16798impl<R>
16799 From<
16800 ::aws_smithy_runtime_api::client::result::SdkError<
16801 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16802 R,
16803 >,
16804 > for Error
16805where
16806 R: Send + Sync + std::fmt::Debug + 'static,
16807{
16808 fn from(
16809 err: ::aws_smithy_runtime_api::client::result::SdkError<
16810 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16811 R,
16812 >,
16813 ) -> Self {
16814 match err {
16815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16818 source: err.into(),
16819 }),
16820 }
16821 }
16822}
16823impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
16824 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
16825 match err {
16826 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
16827 Error::Unhandled(inner)
16828 }
16829 }
16830 }
16831}
16832impl<R>
16833 From<
16834 ::aws_smithy_runtime_api::client::result::SdkError<
16835 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16836 R,
16837 >,
16838 > for Error
16839where
16840 R: Send + Sync + std::fmt::Debug + 'static,
16841{
16842 fn from(
16843 err: ::aws_smithy_runtime_api::client::result::SdkError<
16844 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16845 R,
16846 >,
16847 ) -> Self {
16848 match err {
16849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16852 source: err.into(),
16853 }),
16854 }
16855 }
16856}
16857impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
16858 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
16859 match err {
16860 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
16861 Error::Unhandled(inner)
16862 }
16863 }
16864 }
16865}
16866impl<R>
16867 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
16868 for Error
16869where
16870 R: Send + Sync + std::fmt::Debug + 'static,
16871{
16872 fn from(
16873 err: ::aws_smithy_runtime_api::client::result::SdkError<
16874 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
16875 R,
16876 >,
16877 ) -> Self {
16878 match err {
16879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16882 source: err.into(),
16883 }),
16884 }
16885 }
16886}
16887impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
16888 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
16889 match err {
16890 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16891 }
16892 }
16893}
16894impl<R>
16895 From<
16896 ::aws_smithy_runtime_api::client::result::SdkError<
16897 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16898 R,
16899 >,
16900 > for Error
16901where
16902 R: Send + Sync + std::fmt::Debug + 'static,
16903{
16904 fn from(
16905 err: ::aws_smithy_runtime_api::client::result::SdkError<
16906 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16907 R,
16908 >,
16909 ) -> Self {
16910 match err {
16911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16914 source: err.into(),
16915 }),
16916 }
16917 }
16918}
16919impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
16920 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
16921 match err {
16922 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
16923 Error::Unhandled(inner)
16924 }
16925 }
16926 }
16927}
16928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
16929 for Error
16930where
16931 R: Send + Sync + std::fmt::Debug + 'static,
16932{
16933 fn from(
16934 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
16935 ) -> Self {
16936 match err {
16937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16940 source: err.into(),
16941 }),
16942 }
16943 }
16944}
16945impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
16946 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
16947 match err {
16948 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
16949 }
16950 }
16951}
16952impl<R>
16953 From<
16954 ::aws_smithy_runtime_api::client::result::SdkError<
16955 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16956 R,
16957 >,
16958 > for Error
16959where
16960 R: Send + Sync + std::fmt::Debug + 'static,
16961{
16962 fn from(
16963 err: ::aws_smithy_runtime_api::client::result::SdkError<
16964 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16965 R,
16966 >,
16967 ) -> Self {
16968 match err {
16969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16972 source: err.into(),
16973 }),
16974 }
16975 }
16976}
16977impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
16978 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
16979 match err {
16980 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16981 }
16982 }
16983}
16984impl<R>
16985 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
16986 for Error
16987where
16988 R: Send + Sync + std::fmt::Debug + 'static,
16989{
16990 fn from(
16991 err: ::aws_smithy_runtime_api::client::result::SdkError<
16992 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
16993 R,
16994 >,
16995 ) -> Self {
16996 match err {
16997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17000 source: err.into(),
17001 }),
17002 }
17003 }
17004}
17005impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
17006 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
17007 match err {
17008 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
17009 }
17010 }
17011}
17012impl<R>
17013 From<
17014 ::aws_smithy_runtime_api::client::result::SdkError<
17015 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17016 R,
17017 >,
17018 > for Error
17019where
17020 R: Send + Sync + std::fmt::Debug + 'static,
17021{
17022 fn from(
17023 err: ::aws_smithy_runtime_api::client::result::SdkError<
17024 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17025 R,
17026 >,
17027 ) -> Self {
17028 match err {
17029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17032 source: err.into(),
17033 }),
17034 }
17035 }
17036}
17037impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
17038 fn from(
17039 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17040 ) -> Self {
17041 match err {
17042 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
17043 }
17044 }
17045}
17046impl<R>
17047 From<
17048 ::aws_smithy_runtime_api::client::result::SdkError<
17049 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
17050 R,
17051 >,
17052 > for Error
17053where
17054 R: Send + Sync + std::fmt::Debug + 'static,
17055{
17056 fn from(
17057 err: ::aws_smithy_runtime_api::client::result::SdkError<
17058 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
17059 R,
17060 >,
17061 ) -> Self {
17062 match err {
17063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17066 source: err.into(),
17067 }),
17068 }
17069 }
17070}
17071impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
17072 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
17073 match err {
17074 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
17075 Error::Unhandled(inner)
17076 }
17077 }
17078 }
17079}
17080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
17081where
17082 R: Send + Sync + std::fmt::Debug + 'static,
17083{
17084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> 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_volume::ModifyVolumeError> for Error {
17095 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
17096 match err {
17097 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
17098 }
17099 }
17100}
17101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
17102where
17103 R: Send + Sync + std::fmt::Debug + 'static,
17104{
17105 fn from(
17106 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
17107 ) -> Self {
17108 match err {
17109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17112 source: err.into(),
17113 }),
17114 }
17115 }
17116}
17117impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
17118 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
17119 match err {
17120 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17121 }
17122 }
17123}
17124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
17125where
17126 R: Send + Sync + std::fmt::Debug + 'static,
17127{
17128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
17129 match err {
17130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17133 source: err.into(),
17134 }),
17135 }
17136 }
17137}
17138impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
17139 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
17140 match err {
17141 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17142 }
17143 }
17144}
17145impl<R>
17146 From<
17147 ::aws_smithy_runtime_api::client::result::SdkError<
17148 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
17149 R,
17150 >,
17151 > for Error
17152where
17153 R: Send + Sync + std::fmt::Debug + 'static,
17154{
17155 fn from(
17156 err: ::aws_smithy_runtime_api::client::result::SdkError<
17157 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
17158 R,
17159 >,
17160 ) -> Self {
17161 match err {
17162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17165 source: err.into(),
17166 }),
17167 }
17168 }
17169}
17170impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
17171 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
17172 match err {
17173 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
17174 Error::Unhandled(inner)
17175 }
17176 }
17177 }
17178}
17179impl<R>
17180 From<
17181 ::aws_smithy_runtime_api::client::result::SdkError<
17182 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
17183 R,
17184 >,
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<
17191 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
17192 R,
17193 >,
17194 ) -> Self {
17195 match err {
17196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17199 source: err.into(),
17200 }),
17201 }
17202 }
17203}
17204impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
17205 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
17206 match err {
17207 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
17208 Error::Unhandled(inner)
17209 }
17210 }
17211 }
17212}
17213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
17214where
17215 R: Send + Sync + std::fmt::Debug + 'static,
17216{
17217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
17218 match err {
17219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17222 source: err.into(),
17223 }),
17224 }
17225 }
17226}
17227impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
17228 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
17229 match err {
17230 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17231 }
17232 }
17233}
17234impl<R>
17235 From<
17236 ::aws_smithy_runtime_api::client::result::SdkError<
17237 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17238 R,
17239 >,
17240 > for Error
17241where
17242 R: Send + Sync + std::fmt::Debug + 'static,
17243{
17244 fn from(
17245 err: ::aws_smithy_runtime_api::client::result::SdkError<
17246 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17247 R,
17248 >,
17249 ) -> Self {
17250 match err {
17251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17254 source: err.into(),
17255 }),
17256 }
17257 }
17258}
17259impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
17260 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
17261 match err {
17262 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
17263 Error::Unhandled(inner)
17264 }
17265 }
17266 }
17267}
17268impl<R>
17269 From<
17270 ::aws_smithy_runtime_api::client::result::SdkError<
17271 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17272 R,
17273 >,
17274 > for Error
17275where
17276 R: Send + Sync + std::fmt::Debug + 'static,
17277{
17278 fn from(
17279 err: ::aws_smithy_runtime_api::client::result::SdkError<
17280 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17281 R,
17282 >,
17283 ) -> Self {
17284 match err {
17285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17288 source: err.into(),
17289 }),
17290 }
17291 }
17292}
17293impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
17294 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
17295 match err {
17296 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
17297 Error::Unhandled(inner)
17298 }
17299 }
17300 }
17301}
17302impl<R>
17303 From<
17304 ::aws_smithy_runtime_api::client::result::SdkError<
17305 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17306 R,
17307 >,
17308 > for Error
17309where
17310 R: Send + Sync + std::fmt::Debug + 'static,
17311{
17312 fn from(
17313 err: ::aws_smithy_runtime_api::client::result::SdkError<
17314 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17315 R,
17316 >,
17317 ) -> Self {
17318 match err {
17319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17322 source: err.into(),
17323 }),
17324 }
17325 }
17326}
17327impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
17328 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
17329 match err {
17330 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
17331 inner,
17332 ) => Error::Unhandled(inner),
17333 }
17334 }
17335}
17336impl<R>
17337 From<
17338 ::aws_smithy_runtime_api::client::result::SdkError<
17339 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17340 R,
17341 >,
17342 > for Error
17343where
17344 R: Send + Sync + std::fmt::Debug + 'static,
17345{
17346 fn from(
17347 err: ::aws_smithy_runtime_api::client::result::SdkError<
17348 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17349 R,
17350 >,
17351 ) -> Self {
17352 match err {
17353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17356 source: err.into(),
17357 }),
17358 }
17359 }
17360}
17361impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
17362 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
17363 match err {
17364 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
17365 Error::Unhandled(inner)
17366 }
17367 }
17368 }
17369}
17370impl<R>
17371 From<
17372 ::aws_smithy_runtime_api::client::result::SdkError<
17373 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17374 R,
17375 >,
17376 > for Error
17377where
17378 R: Send + Sync + std::fmt::Debug + 'static,
17379{
17380 fn from(
17381 err: ::aws_smithy_runtime_api::client::result::SdkError<
17382 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17383 R,
17384 >,
17385 ) -> Self {
17386 match err {
17387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17390 source: err.into(),
17391 }),
17392 }
17393 }
17394}
17395impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
17396 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
17397 match err {
17398 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
17399 Error::Unhandled(inner)
17400 }
17401 }
17402 }
17403}
17404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
17405where
17406 R: Send + Sync + std::fmt::Debug + 'static,
17407{
17408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
17409 match err {
17410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17413 source: err.into(),
17414 }),
17415 }
17416 }
17417}
17418impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
17419 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
17420 match err {
17421 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
17422 }
17423 }
17424}
17425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
17426where
17427 R: Send + Sync + std::fmt::Debug + 'static,
17428{
17429 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
17430 match err {
17431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17434 source: err.into(),
17435 }),
17436 }
17437 }
17438}
17439impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
17440 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
17441 match err {
17442 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17443 }
17444 }
17445}
17446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
17447 for Error
17448where
17449 R: Send + Sync + std::fmt::Debug + 'static,
17450{
17451 fn from(
17452 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
17453 ) -> Self {
17454 match err {
17455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17458 source: err.into(),
17459 }),
17460 }
17461 }
17462}
17463impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
17464 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
17465 match err {
17466 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17467 }
17468 }
17469}
17470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
17471 for Error
17472where
17473 R: Send + Sync + std::fmt::Debug + 'static,
17474{
17475 fn from(
17476 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
17477 ) -> Self {
17478 match err {
17479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17482 source: err.into(),
17483 }),
17484 }
17485 }
17486}
17487impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
17488 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
17489 match err {
17490 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
17491 }
17492 }
17493}
17494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
17495 for Error
17496where
17497 R: Send + Sync + std::fmt::Debug + 'static,
17498{
17499 fn from(
17500 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
17501 ) -> Self {
17502 match err {
17503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17506 source: err.into(),
17507 }),
17508 }
17509 }
17510}
17511impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
17512 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
17513 match err {
17514 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17515 }
17516 }
17517}
17518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
17519where
17520 R: Send + Sync + std::fmt::Debug + 'static,
17521{
17522 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
17523 match err {
17524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17527 source: err.into(),
17528 }),
17529 }
17530 }
17531}
17532impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
17533 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
17534 match err {
17535 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17536 }
17537 }
17538}
17539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
17540where
17541 R: Send + Sync + std::fmt::Debug + 'static,
17542{
17543 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
17544 match err {
17545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17548 source: err.into(),
17549 }),
17550 }
17551 }
17552}
17553impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
17554 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
17555 match err {
17556 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
17557 }
17558 }
17559}
17560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
17561where
17562 R: Send + Sync + std::fmt::Debug + 'static,
17563{
17564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
17565 match err {
17566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17569 source: err.into(),
17570 }),
17571 }
17572 }
17573}
17574impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
17575 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
17576 match err {
17577 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
17578 }
17579 }
17580}
17581impl<R>
17582 From<
17583 ::aws_smithy_runtime_api::client::result::SdkError<
17584 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17585 R,
17586 >,
17587 > for Error
17588where
17589 R: Send + Sync + std::fmt::Debug + 'static,
17590{
17591 fn from(
17592 err: ::aws_smithy_runtime_api::client::result::SdkError<
17593 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17594 R,
17595 >,
17596 ) -> Self {
17597 match err {
17598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17601 source: err.into(),
17602 }),
17603 }
17604 }
17605}
17606impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
17607 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
17608 match err {
17609 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17610 }
17611 }
17612}
17613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
17614where
17615 R: Send + Sync + std::fmt::Debug + 'static,
17616{
17617 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
17618 match err {
17619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17622 source: err.into(),
17623 }),
17624 }
17625 }
17626}
17627impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
17628 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
17629 match err {
17630 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
17631 }
17632 }
17633}
17634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
17635where
17636 R: Send + Sync + std::fmt::Debug + 'static,
17637{
17638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
17639 match err {
17640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17643 source: err.into(),
17644 }),
17645 }
17646 }
17647}
17648impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
17649 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
17650 match err {
17651 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
17652 }
17653 }
17654}
17655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
17656where
17657 R: Send + Sync + std::fmt::Debug + 'static,
17658{
17659 fn from(
17660 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
17661 ) -> Self {
17662 match err {
17663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17666 source: err.into(),
17667 }),
17668 }
17669 }
17670}
17671impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
17672 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
17673 match err {
17674 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17675 }
17676 }
17677}
17678impl<R>
17679 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
17680 for Error
17681where
17682 R: Send + Sync + std::fmt::Debug + 'static,
17683{
17684 fn from(
17685 err: ::aws_smithy_runtime_api::client::result::SdkError<
17686 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
17687 R,
17688 >,
17689 ) -> Self {
17690 match err {
17691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17694 source: err.into(),
17695 }),
17696 }
17697 }
17698}
17699impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
17700 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
17701 match err {
17702 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17703 }
17704 }
17705}
17706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
17707where
17708 R: Send + Sync + std::fmt::Debug + 'static,
17709{
17710 fn from(
17711 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
17712 ) -> Self {
17713 match err {
17714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17717 source: err.into(),
17718 }),
17719 }
17720 }
17721}
17722impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
17723 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
17724 match err {
17725 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
17726 }
17727 }
17728}
17729impl<R>
17730 From<
17731 ::aws_smithy_runtime_api::client::result::SdkError<
17732 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17733 R,
17734 >,
17735 > for Error
17736where
17737 R: Send + Sync + std::fmt::Debug + 'static,
17738{
17739 fn from(
17740 err: ::aws_smithy_runtime_api::client::result::SdkError<
17741 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17742 R,
17743 >,
17744 ) -> Self {
17745 match err {
17746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17749 source: err.into(),
17750 }),
17751 }
17752 }
17753}
17754impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
17755 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
17756 match err {
17757 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
17758 }
17759 }
17760}
17761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
17762 for Error
17763where
17764 R: Send + Sync + std::fmt::Debug + 'static,
17765{
17766 fn from(
17767 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
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::purchase_host_reservation::PurchaseHostReservationError> for Error {
17779 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
17780 match err {
17781 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
17782 }
17783 }
17784}
17785impl<R>
17786 From<
17787 ::aws_smithy_runtime_api::client::result::SdkError<
17788 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17789 R,
17790 >,
17791 > for Error
17792where
17793 R: Send + Sync + std::fmt::Debug + 'static,
17794{
17795 fn from(
17796 err: ::aws_smithy_runtime_api::client::result::SdkError<
17797 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17798 R,
17799 >,
17800 ) -> Self {
17801 match err {
17802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17805 source: err.into(),
17806 }),
17807 }
17808 }
17809}
17810impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
17811 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
17812 match err {
17813 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
17814 Error::Unhandled(inner)
17815 }
17816 }
17817 }
17818}
17819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
17820 for Error
17821where
17822 R: Send + Sync + std::fmt::Debug + 'static,
17823{
17824 fn from(
17825 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
17826 ) -> Self {
17827 match err {
17828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17831 source: err.into(),
17832 }),
17833 }
17834 }
17835}
17836impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
17837 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
17838 match err {
17839 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17840 }
17841 }
17842}
17843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
17844where
17845 R: Send + Sync + std::fmt::Debug + 'static,
17846{
17847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
17848 match err {
17849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17852 source: err.into(),
17853 }),
17854 }
17855 }
17856}
17857impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
17858 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
17859 match err {
17860 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17861 }
17862 }
17863}
17864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
17865where
17866 R: Send + Sync + std::fmt::Debug + 'static,
17867{
17868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
17869 match err {
17870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17873 source: err.into(),
17874 }),
17875 }
17876 }
17877}
17878impl From<crate::operation::register_image::RegisterImageError> for Error {
17879 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
17880 match err {
17881 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
17882 }
17883 }
17884}
17885impl<R>
17886 From<
17887 ::aws_smithy_runtime_api::client::result::SdkError<
17888 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17889 R,
17890 >,
17891 > for Error
17892where
17893 R: Send + Sync + std::fmt::Debug + 'static,
17894{
17895 fn from(
17896 err: ::aws_smithy_runtime_api::client::result::SdkError<
17897 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17898 R,
17899 >,
17900 ) -> Self {
17901 match err {
17902 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17903 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17904 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17905 source: err.into(),
17906 }),
17907 }
17908 }
17909}
17910impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
17911 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
17912 match err {
17913 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
17914 Error::Unhandled(inner)
17915 }
17916 }
17917 }
17918}
17919impl<R>
17920 From<
17921 ::aws_smithy_runtime_api::client::result::SdkError<
17922 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17923 R,
17924 >,
17925 > for Error
17926where
17927 R: Send + Sync + std::fmt::Debug + 'static,
17928{
17929 fn from(
17930 err: ::aws_smithy_runtime_api::client::result::SdkError<
17931 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17932 R,
17933 >,
17934 ) -> Self {
17935 match err {
17936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17939 source: err.into(),
17940 }),
17941 }
17942 }
17943}
17944impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
17945 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
17946 match err {
17947 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
17948 inner,
17949 ) => Error::Unhandled(inner),
17950 }
17951 }
17952}
17953impl<R>
17954 From<
17955 ::aws_smithy_runtime_api::client::result::SdkError<
17956 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17957 R,
17958 >,
17959 > for Error
17960where
17961 R: Send + Sync + std::fmt::Debug + 'static,
17962{
17963 fn from(
17964 err: ::aws_smithy_runtime_api::client::result::SdkError<
17965 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17966 R,
17967 >,
17968 ) -> Self {
17969 match err {
17970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17973 source: err.into(),
17974 }),
17975 }
17976 }
17977}
17978impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
17979 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
17980 match err {
17981 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
17982 inner,
17983 ) => Error::Unhandled(inner),
17984 }
17985 }
17986}
17987impl<R>
17988 From<
17989 ::aws_smithy_runtime_api::client::result::SdkError<
17990 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17991 R,
17992 >,
17993 > for Error
17994where
17995 R: Send + Sync + std::fmt::Debug + 'static,
17996{
17997 fn from(
17998 err: ::aws_smithy_runtime_api::client::result::SdkError<
17999 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
18000 R,
18001 >,
18002 ) -> Self {
18003 match err {
18004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18007 source: err.into(),
18008 }),
18009 }
18010 }
18011}
18012impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
18013 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
18014 match err {
18015 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
18016 Error::Unhandled(inner)
18017 }
18018 }
18019 }
18020}
18021impl<R>
18022 From<
18023 ::aws_smithy_runtime_api::client::result::SdkError<
18024 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18025 R,
18026 >,
18027 > for Error
18028where
18029 R: Send + Sync + std::fmt::Debug + 'static,
18030{
18031 fn from(
18032 err: ::aws_smithy_runtime_api::client::result::SdkError<
18033 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18034 R,
18035 >,
18036 ) -> Self {
18037 match err {
18038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18041 source: err.into(),
18042 }),
18043 }
18044 }
18045}
18046impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
18047 fn from(
18048 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18049 ) -> Self {
18050 match err {
18051 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
18052 }
18053 }
18054}
18055impl<R>
18056 From<
18057 ::aws_smithy_runtime_api::client::result::SdkError<
18058 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
18059 R,
18060 >,
18061 > for Error
18062where
18063 R: Send + Sync + std::fmt::Debug + 'static,
18064{
18065 fn from(
18066 err: ::aws_smithy_runtime_api::client::result::SdkError<
18067 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
18068 R,
18069 >,
18070 ) -> Self {
18071 match err {
18072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18075 source: err.into(),
18076 }),
18077 }
18078 }
18079}
18080impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
18081 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
18082 match err {
18083 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
18084 Error::Unhandled(inner)
18085 }
18086 }
18087 }
18088}
18089impl<R>
18090 From<
18091 ::aws_smithy_runtime_api::client::result::SdkError<
18092 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
18093 R,
18094 >,
18095 > for Error
18096where
18097 R: Send + Sync + std::fmt::Debug + 'static,
18098{
18099 fn from(
18100 err: ::aws_smithy_runtime_api::client::result::SdkError<
18101 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
18102 R,
18103 >,
18104 ) -> Self {
18105 match err {
18106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18109 source: err.into(),
18110 }),
18111 }
18112 }
18113}
18114impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
18115 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
18116 match err {
18117 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
18118 Error::Unhandled(inner)
18119 }
18120 }
18121 }
18122}
18123impl<R>
18124 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
18125 for Error
18126where
18127 R: Send + Sync + std::fmt::Debug + 'static,
18128{
18129 fn from(
18130 err: ::aws_smithy_runtime_api::client::result::SdkError<
18131 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
18132 R,
18133 >,
18134 ) -> Self {
18135 match err {
18136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18139 source: err.into(),
18140 }),
18141 }
18142 }
18143}
18144impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
18145 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
18146 match err {
18147 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
18148 }
18149 }
18150}
18151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
18152 for Error
18153where
18154 R: Send + Sync + std::fmt::Debug + 'static,
18155{
18156 fn from(
18157 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
18158 ) -> Self {
18159 match err {
18160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18163 source: err.into(),
18164 }),
18165 }
18166 }
18167}
18168impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
18169 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
18170 match err {
18171 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
18172 }
18173 }
18174}
18175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
18176where
18177 R: Send + Sync + std::fmt::Debug + 'static,
18178{
18179 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
18180 match err {
18181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18184 source: err.into(),
18185 }),
18186 }
18187 }
18188}
18189impl From<crate::operation::release_address::ReleaseAddressError> for Error {
18190 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
18191 match err {
18192 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
18193 }
18194 }
18195}
18196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
18197where
18198 R: Send + Sync + std::fmt::Debug + 'static,
18199{
18200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
18201 match err {
18202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18205 source: err.into(),
18206 }),
18207 }
18208 }
18209}
18210impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
18211 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
18212 match err {
18213 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
18214 }
18215 }
18216}
18217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
18218 for Error
18219where
18220 R: Send + Sync + std::fmt::Debug + 'static,
18221{
18222 fn from(
18223 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
18224 ) -> Self {
18225 match err {
18226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18229 source: err.into(),
18230 }),
18231 }
18232 }
18233}
18234impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
18235 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
18236 match err {
18237 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
18238 }
18239 }
18240}
18241impl<R>
18242 From<
18243 ::aws_smithy_runtime_api::client::result::SdkError<
18244 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18245 R,
18246 >,
18247 > for Error
18248where
18249 R: Send + Sync + std::fmt::Debug + 'static,
18250{
18251 fn from(
18252 err: ::aws_smithy_runtime_api::client::result::SdkError<
18253 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18254 R,
18255 >,
18256 ) -> Self {
18257 match err {
18258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18261 source: err.into(),
18262 }),
18263 }
18264 }
18265}
18266impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
18267 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
18268 match err {
18269 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
18270 Error::Unhandled(inner)
18271 }
18272 }
18273 }
18274}
18275impl<R>
18276 From<
18277 ::aws_smithy_runtime_api::client::result::SdkError<
18278 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18279 R,
18280 >,
18281 > for Error
18282where
18283 R: Send + Sync + std::fmt::Debug + 'static,
18284{
18285 fn from(
18286 err: ::aws_smithy_runtime_api::client::result::SdkError<
18287 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18288 R,
18289 >,
18290 ) -> Self {
18291 match err {
18292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18295 source: err.into(),
18296 }),
18297 }
18298 }
18299}
18300impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
18301 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
18302 match err {
18303 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
18304 inner,
18305 ) => Error::Unhandled(inner),
18306 }
18307 }
18308}
18309impl<R>
18310 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
18311 for Error
18312where
18313 R: Send + Sync + std::fmt::Debug + 'static,
18314{
18315 fn from(
18316 err: ::aws_smithy_runtime_api::client::result::SdkError<
18317 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
18318 R,
18319 >,
18320 ) -> Self {
18321 match err {
18322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18325 source: err.into(),
18326 }),
18327 }
18328 }
18329}
18330impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
18331 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
18332 match err {
18333 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18334 }
18335 }
18336}
18337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
18338 for Error
18339where
18340 R: Send + Sync + std::fmt::Debug + 'static,
18341{
18342 fn from(
18343 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
18344 ) -> Self {
18345 match err {
18346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18349 source: err.into(),
18350 }),
18351 }
18352 }
18353}
18354impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
18355 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
18356 match err {
18357 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
18358 }
18359 }
18360}
18361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
18362where
18363 R: Send + Sync + std::fmt::Debug + 'static,
18364{
18365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
18366 match err {
18367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18370 source: err.into(),
18371 }),
18372 }
18373 }
18374}
18375impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
18376 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
18377 match err {
18378 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
18379 }
18380 }
18381}
18382impl<R>
18383 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
18384 for Error
18385where
18386 R: Send + Sync + std::fmt::Debug + 'static,
18387{
18388 fn from(
18389 err: ::aws_smithy_runtime_api::client::result::SdkError<
18390 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
18391 R,
18392 >,
18393 ) -> Self {
18394 match err {
18395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18398 source: err.into(),
18399 }),
18400 }
18401 }
18402}
18403impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
18404 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
18405 match err {
18406 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18407 }
18408 }
18409}
18410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
18411 for Error
18412where
18413 R: Send + Sync + std::fmt::Debug + 'static,
18414{
18415 fn from(
18416 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
18417 ) -> Self {
18418 match err {
18419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18422 source: err.into(),
18423 }),
18424 }
18425 }
18426}
18427impl From<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
18428 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
18429 match err {
18430 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
18431 }
18432 }
18433}
18434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
18435where
18436 R: Send + Sync + std::fmt::Debug + 'static,
18437{
18438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
18439 match err {
18440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18443 source: err.into(),
18444 }),
18445 }
18446 }
18447}
18448impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
18449 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
18450 match err {
18451 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
18452 }
18453 }
18454}
18455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
18456where
18457 R: Send + Sync + std::fmt::Debug + 'static,
18458{
18459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
18460 match err {
18461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18464 source: err.into(),
18465 }),
18466 }
18467 }
18468}
18469impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
18470 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
18471 match err {
18472 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
18473 }
18474 }
18475}
18476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
18477where
18478 R: Send + Sync + std::fmt::Debug + 'static,
18479{
18480 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> 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::request_spot_fleet::RequestSpotFleetError> for Error {
18491 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
18492 match err {
18493 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
18494 }
18495 }
18496}
18497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, 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::request_spot_instances::RequestSpotInstancesError, 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::request_spot_instances::RequestSpotInstancesError> for Error {
18512 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
18513 match err {
18514 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18515 }
18516 }
18517}
18518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
18519where
18520 R: Send + Sync + std::fmt::Debug + 'static,
18521{
18522 fn from(
18523 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
18524 ) -> Self {
18525 match err {
18526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18529 source: err.into(),
18530 }),
18531 }
18532 }
18533}
18534impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
18535 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
18536 match err {
18537 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18538 }
18539 }
18540}
18541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
18542 for Error
18543where
18544 R: Send + Sync + std::fmt::Debug + 'static,
18545{
18546 fn from(
18547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
18548 ) -> Self {
18549 match err {
18550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18553 source: err.into(),
18554 }),
18555 }
18556 }
18557}
18558impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
18559 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
18560 match err {
18561 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
18562 }
18563 }
18564}
18565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
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<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
18572 ) -> Self {
18573 match err {
18574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18577 source: err.into(),
18578 }),
18579 }
18580 }
18581}
18582impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
18583 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
18584 match err {
18585 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18586 }
18587 }
18588}
18589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
18590where
18591 R: Send + Sync + std::fmt::Debug + 'static,
18592{
18593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
18594 match err {
18595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18598 source: err.into(),
18599 }),
18600 }
18601 }
18602}
18603impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
18604 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
18605 match err {
18606 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18607 }
18608 }
18609}
18610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
18611where
18612 R: Send + Sync + std::fmt::Debug + 'static,
18613{
18614 fn from(
18615 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
18616 ) -> Self {
18617 match err {
18618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18621 source: err.into(),
18622 }),
18623 }
18624 }
18625}
18626impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
18627 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
18628 match err {
18629 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18630 }
18631 }
18632}
18633impl<R>
18634 From<
18635 ::aws_smithy_runtime_api::client::result::SdkError<
18636 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18637 R,
18638 >,
18639 > for Error
18640where
18641 R: Send + Sync + std::fmt::Debug + 'static,
18642{
18643 fn from(
18644 err: ::aws_smithy_runtime_api::client::result::SdkError<
18645 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18646 R,
18647 >,
18648 ) -> Self {
18649 match err {
18650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18653 source: err.into(),
18654 }),
18655 }
18656 }
18657}
18658impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
18659 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
18660 match err {
18661 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18662 }
18663 }
18664}
18665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
18666where
18667 R: Send + Sync + std::fmt::Debug + 'static,
18668{
18669 fn from(
18670 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
18671 ) -> Self {
18672 match err {
18673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18676 source: err.into(),
18677 }),
18678 }
18679 }
18680}
18681impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
18682 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
18683 match err {
18684 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18685 }
18686 }
18687}
18688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
18689 for Error
18690where
18691 R: Send + Sync + std::fmt::Debug + 'static,
18692{
18693 fn from(
18694 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
18695 ) -> Self {
18696 match err {
18697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18700 source: err.into(),
18701 }),
18702 }
18703 }
18704}
18705impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
18706 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
18707 match err {
18708 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
18709 }
18710 }
18711}
18712impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
18713 for Error
18714where
18715 R: Send + Sync + std::fmt::Debug + 'static,
18716{
18717 fn from(
18718 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
18719 ) -> Self {
18720 match err {
18721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18724 source: err.into(),
18725 }),
18726 }
18727 }
18728}
18729impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
18730 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
18731 match err {
18732 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18733 }
18734 }
18735}
18736impl<R>
18737 From<
18738 ::aws_smithy_runtime_api::client::result::SdkError<
18739 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18740 R,
18741 >,
18742 > for Error
18743where
18744 R: Send + Sync + std::fmt::Debug + 'static,
18745{
18746 fn from(
18747 err: ::aws_smithy_runtime_api::client::result::SdkError<
18748 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18749 R,
18750 >,
18751 ) -> Self {
18752 match err {
18753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18756 source: err.into(),
18757 }),
18758 }
18759 }
18760}
18761impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
18762 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
18763 match err {
18764 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
18765 }
18766 }
18767}
18768impl<R>
18769 From<
18770 ::aws_smithy_runtime_api::client::result::SdkError<
18771 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18772 R,
18773 >,
18774 > for Error
18775where
18776 R: Send + Sync + std::fmt::Debug + 'static,
18777{
18778 fn from(
18779 err: ::aws_smithy_runtime_api::client::result::SdkError<
18780 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18781 R,
18782 >,
18783 ) -> Self {
18784 match err {
18785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18788 source: err.into(),
18789 }),
18790 }
18791 }
18792}
18793impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
18794 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
18795 match err {
18796 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18797 }
18798 }
18799}
18800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
18801where
18802 R: Send + Sync + std::fmt::Debug + 'static,
18803{
18804 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
18805 match err {
18806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18809 source: err.into(),
18810 }),
18811 }
18812 }
18813}
18814impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
18815 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
18816 match err {
18817 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
18818 }
18819 }
18820}
18821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
18822 for Error
18823where
18824 R: Send + Sync + std::fmt::Debug + 'static,
18825{
18826 fn from(
18827 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
18828 ) -> Self {
18829 match err {
18830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18833 source: err.into(),
18834 }),
18835 }
18836 }
18837}
18838impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
18839 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
18840 match err {
18841 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
18842 }
18843 }
18844}
18845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
18846 for Error
18847where
18848 R: Send + Sync + std::fmt::Debug + 'static,
18849{
18850 fn from(
18851 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
18852 ) -> Self {
18853 match err {
18854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18857 source: err.into(),
18858 }),
18859 }
18860 }
18861}
18862impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
18863 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
18864 match err {
18865 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
18866 }
18867 }
18868}
18869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
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<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
18876 ) -> Self {
18877 match err {
18878 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18879 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18880 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18881 source: err.into(),
18882 }),
18883 }
18884 }
18885}
18886impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
18887 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
18888 match err {
18889 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
18890 }
18891 }
18892}
18893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
18894where
18895 R: Send + Sync + std::fmt::Debug + 'static,
18896{
18897 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> Self {
18898 match err {
18899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18902 source: err.into(),
18903 }),
18904 }
18905 }
18906}
18907impl From<crate::operation::run_instances::RunInstancesError> for Error {
18908 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
18909 match err {
18910 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18911 }
18912 }
18913}
18914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
18915where
18916 R: Send + Sync + std::fmt::Debug + 'static,
18917{
18918 fn from(
18919 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
18920 ) -> Self {
18921 match err {
18922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18925 source: err.into(),
18926 }),
18927 }
18928 }
18929}
18930impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
18931 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
18932 match err {
18933 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18934 }
18935 }
18936}
18937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
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<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
18944 ) -> Self {
18945 match err {
18946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18949 source: err.into(),
18950 }),
18951 }
18952 }
18953}
18954impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
18955 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
18956 match err {
18957 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18958 }
18959 }
18960}
18961impl<R>
18962 From<
18963 ::aws_smithy_runtime_api::client::result::SdkError<
18964 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18965 R,
18966 >,
18967 > for Error
18968where
18969 R: Send + Sync + std::fmt::Debug + 'static,
18970{
18971 fn from(
18972 err: ::aws_smithy_runtime_api::client::result::SdkError<
18973 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18974 R,
18975 >,
18976 ) -> Self {
18977 match err {
18978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18981 source: err.into(),
18982 }),
18983 }
18984 }
18985}
18986impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
18987 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
18988 match err {
18989 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
18990 Error::Unhandled(inner)
18991 }
18992 }
18993 }
18994}
18995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
18996 for Error
18997where
18998 R: Send + Sync + std::fmt::Debug + 'static,
18999{
19000 fn from(
19001 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
19002 ) -> Self {
19003 match err {
19004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19007 source: err.into(),
19008 }),
19009 }
19010 }
19011}
19012impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
19013 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
19014 match err {
19015 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
19016 }
19017 }
19018}
19019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
19020 for Error
19021where
19022 R: Send + Sync + std::fmt::Debug + 'static,
19023{
19024 fn from(
19025 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
19026 ) -> Self {
19027 match err {
19028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19031 source: err.into(),
19032 }),
19033 }
19034 }
19035}
19036impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
19037 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
19038 match err {
19039 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
19040 }
19041 }
19042}
19043impl<R>
19044 From<
19045 ::aws_smithy_runtime_api::client::result::SdkError<
19046 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
19047 R,
19048 >,
19049 > for Error
19050where
19051 R: Send + Sync + std::fmt::Debug + 'static,
19052{
19053 fn from(
19054 err: ::aws_smithy_runtime_api::client::result::SdkError<
19055 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
19056 R,
19057 >,
19058 ) -> Self {
19059 match err {
19060 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19061 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19062 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19063 source: err.into(),
19064 }),
19065 }
19066 }
19067}
19068impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
19069 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
19070 match err {
19071 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
19072 }
19073 }
19074}
19075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
19076where
19077 R: Send + Sync + std::fmt::Debug + 'static,
19078{
19079 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
19080 match err {
19081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19084 source: err.into(),
19085 }),
19086 }
19087 }
19088}
19089impl From<crate::operation::start_instances::StartInstancesError> for Error {
19090 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
19091 match err {
19092 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19093 }
19094 }
19095}
19096impl<R>
19097 From<
19098 ::aws_smithy_runtime_api::client::result::SdkError<
19099 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
19100 R,
19101 >,
19102 > for Error
19103where
19104 R: Send + Sync + std::fmt::Debug + 'static,
19105{
19106 fn from(
19107 err: ::aws_smithy_runtime_api::client::result::SdkError<
19108 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
19109 R,
19110 >,
19111 ) -> Self {
19112 match err {
19113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19116 source: err.into(),
19117 }),
19118 }
19119 }
19120}
19121impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
19122 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
19123 match err {
19124 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
19125 Error::Unhandled(inner)
19126 }
19127 }
19128 }
19129}
19130impl<R>
19131 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
19132 for Error
19133where
19134 R: Send + Sync + std::fmt::Debug + 'static,
19135{
19136 fn from(
19137 err: ::aws_smithy_runtime_api::client::result::SdkError<
19138 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
19139 R,
19140 >,
19141 ) -> Self {
19142 match err {
19143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19146 source: err.into(),
19147 }),
19148 }
19149 }
19150}
19151impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
19152 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
19153 match err {
19154 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
19155 }
19156 }
19157}
19158impl<R>
19159 From<
19160 ::aws_smithy_runtime_api::client::result::SdkError<
19161 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
19162 R,
19163 >,
19164 > for Error
19165where
19166 R: Send + Sync + std::fmt::Debug + 'static,
19167{
19168 fn from(
19169 err: ::aws_smithy_runtime_api::client::result::SdkError<
19170 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
19171 R,
19172 >,
19173 ) -> Self {
19174 match err {
19175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19178 source: err.into(),
19179 }),
19180 }
19181 }
19182}
19183impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
19184 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
19185 match err {
19186 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
19187 inner,
19188 ) => Error::Unhandled(inner),
19189 }
19190 }
19191}
19192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
19193where
19194 R: Send + Sync + std::fmt::Debug + 'static,
19195{
19196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
19197 match err {
19198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19201 source: err.into(),
19202 }),
19203 }
19204 }
19205}
19206impl From<crate::operation::stop_instances::StopInstancesError> for Error {
19207 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
19208 match err {
19209 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19210 }
19211 }
19212}
19213impl<R>
19214 From<
19215 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
19216 > for Error
19217where
19218 R: Send + Sync + std::fmt::Debug + 'static,
19219{
19220 fn from(
19221 err: ::aws_smithy_runtime_api::client::result::SdkError<
19222 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
19223 R,
19224 >,
19225 ) -> Self {
19226 match err {
19227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19230 source: err.into(),
19231 }),
19232 }
19233 }
19234}
19235impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
19236 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
19237 match err {
19238 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19239 }
19240 }
19241}
19242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
19243where
19244 R: Send + Sync + std::fmt::Debug + 'static,
19245{
19246 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> Self {
19247 match err {
19248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19251 source: err.into(),
19252 }),
19253 }
19254 }
19255}
19256impl From<crate::operation::terminate_instances::TerminateInstancesError> for Error {
19257 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
19258 match err {
19259 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19260 }
19261 }
19262}
19263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
19264where
19265 R: Send + Sync + std::fmt::Debug + 'static,
19266{
19267 fn from(
19268 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
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::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
19280 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
19281 match err {
19282 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
19283 }
19284 }
19285}
19286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
19287 for Error
19288where
19289 R: Send + Sync + std::fmt::Debug + 'static,
19290{
19291 fn from(
19292 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
19293 ) -> Self {
19294 match err {
19295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19298 source: err.into(),
19299 }),
19300 }
19301 }
19302}
19303impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
19304 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
19305 match err {
19306 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
19307 }
19308 }
19309}
19310impl<R>
19311 From<
19312 ::aws_smithy_runtime_api::client::result::SdkError<
19313 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19314 R,
19315 >,
19316 > for Error
19317where
19318 R: Send + Sync + std::fmt::Debug + 'static,
19319{
19320 fn from(
19321 err: ::aws_smithy_runtime_api::client::result::SdkError<
19322 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19323 R,
19324 >,
19325 ) -> Self {
19326 match err {
19327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19330 source: err.into(),
19331 }),
19332 }
19333 }
19334}
19335impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
19336 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
19337 match err {
19338 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
19339 Error::Unhandled(inner)
19340 }
19341 }
19342 }
19343}
19344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
19345where
19346 R: Send + Sync + std::fmt::Debug + 'static,
19347{
19348 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
19349 match err {
19350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19353 source: err.into(),
19354 }),
19355 }
19356 }
19357}
19358impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
19359 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
19360 match err {
19361 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
19362 }
19363 }
19364}
19365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
19366where
19367 R: Send + Sync + std::fmt::Debug + 'static,
19368{
19369 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
19370 match err {
19371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19374 source: err.into(),
19375 }),
19376 }
19377 }
19378}
19379impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
19380 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
19381 match err {
19382 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19383 }
19384 }
19385}
19386impl<R>
19387 From<
19388 ::aws_smithy_runtime_api::client::result::SdkError<
19389 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19390 R,
19391 >,
19392 > for Error
19393where
19394 R: Send + Sync + std::fmt::Debug + 'static,
19395{
19396 fn from(
19397 err: ::aws_smithy_runtime_api::client::result::SdkError<
19398 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19399 R,
19400 >,
19401 ) -> Self {
19402 match err {
19403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19406 source: err.into(),
19407 }),
19408 }
19409 }
19410}
19411impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
19412 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
19413 match err {
19414 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
19415 Error::Unhandled(inner)
19416 }
19417 }
19418 }
19419}
19420impl<R>
19421 From<
19422 ::aws_smithy_runtime_api::client::result::SdkError<
19423 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19424 R,
19425 >,
19426 > for Error
19427where
19428 R: Send + Sync + std::fmt::Debug + 'static,
19429{
19430 fn from(
19431 err: ::aws_smithy_runtime_api::client::result::SdkError<
19432 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19433 R,
19434 >,
19435 ) -> Self {
19436 match err {
19437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19440 source: err.into(),
19441 }),
19442 }
19443 }
19444}
19445impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
19446 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
19447 match err {
19448 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
19449 Error::Unhandled(inner)
19450 }
19451 }
19452 }
19453}
19454impl<R>
19455 From<
19456 ::aws_smithy_runtime_api::client::result::SdkError<
19457 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19458 R,
19459 >,
19460 > for Error
19461where
19462 R: Send + Sync + std::fmt::Debug + 'static,
19463{
19464 fn from(
19465 err: ::aws_smithy_runtime_api::client::result::SdkError<
19466 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19467 R,
19468 >,
19469 ) -> Self {
19470 match err {
19471 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19472 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19473 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19474 source: err.into(),
19475 }),
19476 }
19477 }
19478}
19479impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
19480 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
19481 match err {
19482 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
19483 Error::Unhandled(inner)
19484 }
19485 }
19486 }
19487}
19488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
19489where
19490 R: Send + Sync + std::fmt::Debug + 'static,
19491{
19492 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
19493 match err {
19494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19497 source: err.into(),
19498 }),
19499 }
19500 }
19501}
19502impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
19503 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
19504 match err {
19505 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
19506 }
19507 }
19508}
19509impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
19510where
19511 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
19512 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
19513{
19514 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
19515 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19516 meta: ::std::default::Default::default(),
19517 source: err.into(),
19518 })
19519 }
19520}
19521impl ::std::error::Error for Error {
19522 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
19523 match self {
19524 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
19525 }
19526 }
19527}
19528impl ::aws_types::request_id::RequestId for Error {
19529 fn request_id(&self) -> Option<&str> {
19530 match self {
19531 Self::Unhandled(e) => e.meta.request_id(),
19532 }
19533 }
19534}