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_resource_discovery::CreateIpamResourceDiscoveryError, 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_resource_discovery::CreateIpamResourceDiscoveryError,
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_resource_discovery::CreateIpamResourceDiscoveryError> for Error {
2323 fn from(err: crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError) -> Self {
2324 match err {
2325 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2326 }
2327 }
2328}
2329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>> for Error
2330where
2331 R: Send + Sync + std::fmt::Debug + 'static,
2332{
2333 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>) -> Self {
2334 match err {
2335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2338 source: err.into(),
2339 }),
2340 }
2341 }
2342}
2343impl From<crate::operation::create_ipam_scope::CreateIpamScopeError> for Error {
2344 fn from(err: crate::operation::create_ipam_scope::CreateIpamScopeError) -> Self {
2345 match err {
2346 crate::operation::create_ipam_scope::CreateIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
2347 }
2348 }
2349}
2350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>> for Error
2351where
2352 R: Send + Sync + std::fmt::Debug + 'static,
2353{
2354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>) -> Self {
2355 match err {
2356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2359 source: err.into(),
2360 }),
2361 }
2362 }
2363}
2364impl From<crate::operation::create_key_pair::CreateKeyPairError> for Error {
2365 fn from(err: crate::operation::create_key_pair::CreateKeyPairError) -> Self {
2366 match err {
2367 crate::operation::create_key_pair::CreateKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
2368 }
2369 }
2370}
2371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>> for Error
2372where
2373 R: Send + Sync + std::fmt::Debug + 'static,
2374{
2375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>) -> Self {
2376 match err {
2377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2380 source: err.into(),
2381 }),
2382 }
2383 }
2384}
2385impl From<crate::operation::create_launch_template::CreateLaunchTemplateError> for Error {
2386 fn from(err: crate::operation::create_launch_template::CreateLaunchTemplateError) -> Self {
2387 match err {
2388 crate::operation::create_launch_template::CreateLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2389 }
2390 }
2391}
2392impl<R>
2393 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError, R>>
2394 for Error
2395where
2396 R: Send + Sync + std::fmt::Debug + 'static,
2397{
2398 fn from(
2399 err: ::aws_smithy_runtime_api::client::result::SdkError<
2400 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
2401 R,
2402 >,
2403 ) -> Self {
2404 match err {
2405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2408 source: err.into(),
2409 }),
2410 }
2411 }
2412}
2413impl From<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError> for Error {
2414 fn from(err: crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError) -> Self {
2415 match err {
2416 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2417 }
2418 }
2419}
2420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>>
2421 for Error
2422where
2423 R: Send + Sync + std::fmt::Debug + 'static,
2424{
2425 fn from(
2426 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>,
2427 ) -> Self {
2428 match err {
2429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2432 source: err.into(),
2433 }),
2434 }
2435 }
2436}
2437impl From<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError> for Error {
2438 fn from(err: crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError) -> Self {
2439 match err {
2440 crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
2441 }
2442 }
2443}
2444impl<R>
2445 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError, R>>
2446 for Error
2447where
2448 R: Send + Sync + std::fmt::Debug + 'static,
2449{
2450 fn from(
2451 err: ::aws_smithy_runtime_api::client::result::SdkError<
2452 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError,
2453 R,
2454 >,
2455 ) -> Self {
2456 match err {
2457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2460 source: err.into(),
2461 }),
2462 }
2463 }
2464}
2465impl From<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError> for Error {
2466 fn from(err: crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError) -> Self {
2467 match err {
2468 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
2469 }
2470 }
2471}
2472impl<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 {
2473 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
2474 match err {
2475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2476 _ => Error::Unhandled(
2477 crate::error::sealed_unhandled::Unhandled {
2478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2479 source: err.into(),
2480 }
2481 ),
2482 }
2483 }
2484}
2485impl From<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
2486 fn from(err: crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
2487 match err {
2488 crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2489 }
2490 }
2491}
2492impl<R>
2493 From<
2494 ::aws_smithy_runtime_api::client::result::SdkError<
2495 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2496 R,
2497 >,
2498 > for Error
2499where
2500 R: Send + Sync + std::fmt::Debug + 'static,
2501{
2502 fn from(
2503 err: ::aws_smithy_runtime_api::client::result::SdkError<
2504 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2505 R,
2506 >,
2507 ) -> Self {
2508 match err {
2509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2512 source: err.into(),
2513 }),
2514 }
2515 }
2516}
2517impl From<crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError> for Error {
2518 fn from(err: crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError) -> Self {
2519 match err {
2520 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
2521 Error::Unhandled(inner)
2522 }
2523 }
2524 }
2525}
2526impl<R>
2527 From<
2528 ::aws_smithy_runtime_api::client::result::SdkError<
2529 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2530 R,
2531 >,
2532 > for Error
2533where
2534 R: Send + Sync + std::fmt::Debug + 'static,
2535{
2536 fn from(
2537 err: ::aws_smithy_runtime_api::client::result::SdkError<
2538 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2539 R,
2540 >,
2541 ) -> Self {
2542 match err {
2543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2546 source: err.into(),
2547 }),
2548 }
2549 }
2550}
2551impl From<crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError> for Error {
2552 fn from(err: crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError) -> Self {
2553 match err {
2554 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
2555 Error::Unhandled(inner)
2556 }
2557 }
2558 }
2559}
2560impl<R>
2561 From<
2562 ::aws_smithy_runtime_api::client::result::SdkError<
2563 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2564 R,
2565 >,
2566 > for Error
2567where
2568 R: Send + Sync + std::fmt::Debug + 'static,
2569{
2570 fn from(
2571 err: ::aws_smithy_runtime_api::client::result::SdkError<
2572 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2573 R,
2574 >,
2575 ) -> Self {
2576 match err {
2577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2580 source: err.into(),
2581 }),
2582 }
2583 }
2584}
2585impl From<crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError> for Error {
2586 fn from(err: crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError) -> Self {
2587 match err {
2588 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
2589 Error::Unhandled(inner)
2590 }
2591 }
2592 }
2593}
2594impl<R>
2595 From<
2596 ::aws_smithy_runtime_api::client::result::SdkError<
2597 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2598 R,
2599 >,
2600 > for Error
2601where
2602 R: Send + Sync + std::fmt::Debug + 'static,
2603{
2604 fn from(
2605 err: ::aws_smithy_runtime_api::client::result::SdkError<
2606 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2607 R,
2608 >,
2609 ) -> Self {
2610 match err {
2611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2614 source: err.into(),
2615 }),
2616 }
2617 }
2618}
2619impl From<crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError>
2620 for Error
2621{
2622 fn from(
2623 err: crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2624 ) -> Self {
2625 match err {
2626 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError::Unhandled(inner) => Error::Unhandled(inner),
2627 }
2628 }
2629}
2630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>>
2631 for Error
2632where
2633 R: Send + Sync + std::fmt::Debug + 'static,
2634{
2635 fn from(
2636 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>,
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_managed_prefix_list::CreateManagedPrefixListError> for Error {
2648 fn from(err: crate::operation::create_managed_prefix_list::CreateManagedPrefixListError) -> Self {
2649 match err {
2650 crate::operation::create_managed_prefix_list::CreateManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
2651 }
2652 }
2653}
2654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>> for Error
2655where
2656 R: Send + Sync + std::fmt::Debug + 'static,
2657{
2658 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>) -> Self {
2659 match err {
2660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2663 source: err.into(),
2664 }),
2665 }
2666 }
2667}
2668impl From<crate::operation::create_nat_gateway::CreateNatGatewayError> for Error {
2669 fn from(err: crate::operation::create_nat_gateway::CreateNatGatewayError) -> Self {
2670 match err {
2671 crate::operation::create_nat_gateway::CreateNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2672 }
2673 }
2674}
2675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>> for Error
2676where
2677 R: Send + Sync + std::fmt::Debug + 'static,
2678{
2679 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>) -> Self {
2680 match err {
2681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2684 source: err.into(),
2685 }),
2686 }
2687 }
2688}
2689impl From<crate::operation::create_network_acl::CreateNetworkAclError> for Error {
2690 fn from(err: crate::operation::create_network_acl::CreateNetworkAclError) -> Self {
2691 match err {
2692 crate::operation::create_network_acl::CreateNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
2693 }
2694 }
2695}
2696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>> for Error
2697where
2698 R: Send + Sync + std::fmt::Debug + 'static,
2699{
2700 fn from(
2701 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>,
2702 ) -> Self {
2703 match err {
2704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2707 source: err.into(),
2708 }),
2709 }
2710 }
2711}
2712impl From<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError> for Error {
2713 fn from(err: crate::operation::create_network_acl_entry::CreateNetworkAclEntryError) -> Self {
2714 match err {
2715 crate::operation::create_network_acl_entry::CreateNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
2716 }
2717 }
2718}
2719impl<R>
2720 From<
2721 ::aws_smithy_runtime_api::client::result::SdkError<
2722 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2723 R,
2724 >,
2725 > for Error
2726where
2727 R: Send + Sync + std::fmt::Debug + 'static,
2728{
2729 fn from(
2730 err: ::aws_smithy_runtime_api::client::result::SdkError<
2731 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2732 R,
2733 >,
2734 ) -> Self {
2735 match err {
2736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2739 source: err.into(),
2740 }),
2741 }
2742 }
2743}
2744impl From<crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError> for Error {
2745 fn from(err: crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError) -> Self {
2746 match err {
2747 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError::Unhandled(inner) => {
2748 Error::Unhandled(inner)
2749 }
2750 }
2751 }
2752}
2753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>>
2754 for Error
2755where
2756 R: Send + Sync + std::fmt::Debug + 'static,
2757{
2758 fn from(
2759 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>,
2760 ) -> Self {
2761 match err {
2762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2765 source: err.into(),
2766 }),
2767 }
2768 }
2769}
2770impl From<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError> for Error {
2771 fn from(err: crate::operation::create_network_insights_path::CreateNetworkInsightsPathError) -> Self {
2772 match err {
2773 crate::operation::create_network_insights_path::CreateNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
2774 }
2775 }
2776}
2777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>> for Error
2778where
2779 R: Send + Sync + std::fmt::Debug + 'static,
2780{
2781 fn from(
2782 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>,
2783 ) -> Self {
2784 match err {
2785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2788 source: err.into(),
2789 }),
2790 }
2791 }
2792}
2793impl From<crate::operation::create_network_interface::CreateNetworkInterfaceError> for Error {
2794 fn from(err: crate::operation::create_network_interface::CreateNetworkInterfaceError) -> Self {
2795 match err {
2796 crate::operation::create_network_interface::CreateNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
2797 }
2798 }
2799}
2800impl<R>
2801 From<
2802 ::aws_smithy_runtime_api::client::result::SdkError<
2803 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2804 R,
2805 >,
2806 > for Error
2807where
2808 R: Send + Sync + std::fmt::Debug + 'static,
2809{
2810 fn from(
2811 err: ::aws_smithy_runtime_api::client::result::SdkError<
2812 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2813 R,
2814 >,
2815 ) -> Self {
2816 match err {
2817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2820 source: err.into(),
2821 }),
2822 }
2823 }
2824}
2825impl From<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError> for Error {
2826 fn from(err: crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError) -> Self {
2827 match err {
2828 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
2829 }
2830 }
2831}
2832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>> for Error
2833where
2834 R: Send + Sync + std::fmt::Debug + 'static,
2835{
2836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>) -> Self {
2837 match err {
2838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2841 source: err.into(),
2842 }),
2843 }
2844 }
2845}
2846impl From<crate::operation::create_placement_group::CreatePlacementGroupError> for Error {
2847 fn from(err: crate::operation::create_placement_group::CreatePlacementGroupError) -> Self {
2848 match err {
2849 crate::operation::create_placement_group::CreatePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
2850 }
2851 }
2852}
2853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>> for Error
2854where
2855 R: Send + Sync + std::fmt::Debug + 'static,
2856{
2857 fn from(
2858 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>,
2859 ) -> Self {
2860 match err {
2861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2864 source: err.into(),
2865 }),
2866 }
2867 }
2868}
2869impl From<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError> for Error {
2870 fn from(err: crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError) -> Self {
2871 match err {
2872 crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
2873 }
2874 }
2875}
2876impl<R>
2877 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError, R>>
2878 for Error
2879where
2880 R: Send + Sync + std::fmt::Debug + 'static,
2881{
2882 fn from(
2883 err: ::aws_smithy_runtime_api::client::result::SdkError<
2884 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError,
2885 R,
2886 >,
2887 ) -> Self {
2888 match err {
2889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2892 source: err.into(),
2893 }),
2894 }
2895 }
2896}
2897impl From<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError> for Error {
2898 fn from(err: crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError) -> Self {
2899 match err {
2900 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError::Unhandled(inner) => Error::Unhandled(inner),
2901 }
2902 }
2903}
2904impl<R>
2905 From<
2906 ::aws_smithy_runtime_api::client::result::SdkError<
2907 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2908 R,
2909 >,
2910 > for Error
2911where
2912 R: Send + Sync + std::fmt::Debug + 'static,
2913{
2914 fn from(
2915 err: ::aws_smithy_runtime_api::client::result::SdkError<
2916 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2917 R,
2918 >,
2919 ) -> Self {
2920 match err {
2921 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2922 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2923 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2924 source: err.into(),
2925 }),
2926 }
2927 }
2928}
2929impl From<crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError> for Error {
2930 fn from(err: crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError) -> Self {
2931 match err {
2932 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
2933 }
2934 }
2935}
2936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>>
2937 for Error
2938where
2939 R: Send + Sync + std::fmt::Debug + 'static,
2940{
2941 fn from(
2942 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>,
2943 ) -> Self {
2944 match err {
2945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2948 source: err.into(),
2949 }),
2950 }
2951 }
2952}
2953impl From<crate::operation::create_restore_image_task::CreateRestoreImageTaskError> for Error {
2954 fn from(err: crate::operation::create_restore_image_task::CreateRestoreImageTaskError) -> Self {
2955 match err {
2956 crate::operation::create_restore_image_task::CreateRestoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
2957 }
2958 }
2959}
2960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
2961where
2962 R: Send + Sync + std::fmt::Debug + 'static,
2963{
2964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
2965 match err {
2966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2969 source: err.into(),
2970 }),
2971 }
2972 }
2973}
2974impl From<crate::operation::create_route::CreateRouteError> for Error {
2975 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
2976 match err {
2977 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
2978 }
2979 }
2980}
2981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>> for Error
2982where
2983 R: Send + Sync + std::fmt::Debug + 'static,
2984{
2985 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>) -> Self {
2986 match err {
2987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2990 source: err.into(),
2991 }),
2992 }
2993 }
2994}
2995impl From<crate::operation::create_route_server::CreateRouteServerError> for Error {
2996 fn from(err: crate::operation::create_route_server::CreateRouteServerError) -> Self {
2997 match err {
2998 crate::operation::create_route_server::CreateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
2999 }
3000 }
3001}
3002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>>
3003 for Error
3004where
3005 R: Send + Sync + std::fmt::Debug + 'static,
3006{
3007 fn from(
3008 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>,
3009 ) -> Self {
3010 match err {
3011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3014 source: err.into(),
3015 }),
3016 }
3017 }
3018}
3019impl From<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError> for Error {
3020 fn from(err: crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError) -> Self {
3021 match err {
3022 crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3023 }
3024 }
3025}
3026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>> for Error
3027where
3028 R: Send + Sync + std::fmt::Debug + 'static,
3029{
3030 fn from(
3031 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>,
3032 ) -> Self {
3033 match err {
3034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3037 source: err.into(),
3038 }),
3039 }
3040 }
3041}
3042impl From<crate::operation::create_route_server_peer::CreateRouteServerPeerError> for Error {
3043 fn from(err: crate::operation::create_route_server_peer::CreateRouteServerPeerError) -> Self {
3044 match err {
3045 crate::operation::create_route_server_peer::CreateRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
3046 }
3047 }
3048}
3049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>> for Error
3050where
3051 R: Send + Sync + std::fmt::Debug + 'static,
3052{
3053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>) -> Self {
3054 match err {
3055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3058 source: err.into(),
3059 }),
3060 }
3061 }
3062}
3063impl From<crate::operation::create_route_table::CreateRouteTableError> for Error {
3064 fn from(err: crate::operation::create_route_table::CreateRouteTableError) -> Self {
3065 match err {
3066 crate::operation::create_route_table::CreateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3067 }
3068 }
3069}
3070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>> for Error
3071where
3072 R: Send + Sync + std::fmt::Debug + 'static,
3073{
3074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>) -> Self {
3075 match err {
3076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3079 source: err.into(),
3080 }),
3081 }
3082 }
3083}
3084impl From<crate::operation::create_security_group::CreateSecurityGroupError> for Error {
3085 fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
3086 match err {
3087 crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
3088 }
3089 }
3090}
3091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
3092where
3093 R: Send + Sync + std::fmt::Debug + 'static,
3094{
3095 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
3096 match err {
3097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3100 source: err.into(),
3101 }),
3102 }
3103 }
3104}
3105impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
3106 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
3107 match err {
3108 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
3109 }
3110 }
3111}
3112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>> for Error
3113where
3114 R: Send + Sync + std::fmt::Debug + 'static,
3115{
3116 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>) -> Self {
3117 match err {
3118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3121 source: err.into(),
3122 }),
3123 }
3124 }
3125}
3126impl From<crate::operation::create_snapshots::CreateSnapshotsError> for Error {
3127 fn from(err: crate::operation::create_snapshots::CreateSnapshotsError) -> Self {
3128 match err {
3129 crate::operation::create_snapshots::CreateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
3130 }
3131 }
3132}
3133impl<R>
3134 From<
3135 ::aws_smithy_runtime_api::client::result::SdkError<
3136 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3137 R,
3138 >,
3139 > for Error
3140where
3141 R: Send + Sync + std::fmt::Debug + 'static,
3142{
3143 fn from(
3144 err: ::aws_smithy_runtime_api::client::result::SdkError<
3145 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3146 R,
3147 >,
3148 ) -> Self {
3149 match err {
3150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3153 source: err.into(),
3154 }),
3155 }
3156 }
3157}
3158impl From<crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError> for Error {
3159 fn from(err: crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError) -> Self {
3160 match err {
3161 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3162 }
3163 }
3164}
3165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>> for Error
3166where
3167 R: Send + Sync + std::fmt::Debug + 'static,
3168{
3169 fn from(
3170 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>,
3171 ) -> Self {
3172 match err {
3173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3176 source: err.into(),
3177 }),
3178 }
3179 }
3180}
3181impl From<crate::operation::create_store_image_task::CreateStoreImageTaskError> for Error {
3182 fn from(err: crate::operation::create_store_image_task::CreateStoreImageTaskError) -> Self {
3183 match err {
3184 crate::operation::create_store_image_task::CreateStoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3185 }
3186 }
3187}
3188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>> for Error
3189where
3190 R: Send + Sync + std::fmt::Debug + 'static,
3191{
3192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>) -> Self {
3193 match err {
3194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3197 source: err.into(),
3198 }),
3199 }
3200 }
3201}
3202impl From<crate::operation::create_subnet::CreateSubnetError> for Error {
3203 fn from(err: crate::operation::create_subnet::CreateSubnetError) -> Self {
3204 match err {
3205 crate::operation::create_subnet::CreateSubnetError::Unhandled(inner) => Error::Unhandled(inner),
3206 }
3207 }
3208}
3209impl<R>
3210 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError, R>>
3211 for Error
3212where
3213 R: Send + Sync + std::fmt::Debug + 'static,
3214{
3215 fn from(
3216 err: ::aws_smithy_runtime_api::client::result::SdkError<
3217 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError,
3218 R,
3219 >,
3220 ) -> Self {
3221 match err {
3222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3225 source: err.into(),
3226 }),
3227 }
3228 }
3229}
3230impl From<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError> for Error {
3231 fn from(err: crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError) -> Self {
3232 match err {
3233 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
3234 }
3235 }
3236}
3237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
3238where
3239 R: Send + Sync + std::fmt::Debug + 'static,
3240{
3241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
3242 match err {
3243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3246 source: err.into(),
3247 }),
3248 }
3249 }
3250}
3251impl From<crate::operation::create_tags::CreateTagsError> for Error {
3252 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
3253 match err {
3254 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
3255 }
3256 }
3257}
3258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>>
3259 for Error
3260where
3261 R: Send + Sync + std::fmt::Debug + 'static,
3262{
3263 fn from(
3264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>,
3265 ) -> Self {
3266 match err {
3267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3270 source: err.into(),
3271 }),
3272 }
3273 }
3274}
3275impl From<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError> for Error {
3276 fn from(err: crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError) -> Self {
3277 match err {
3278 crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
3279 }
3280 }
3281}
3282impl<R>
3283 From<
3284 ::aws_smithy_runtime_api::client::result::SdkError<
3285 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3286 R,
3287 >,
3288 > for Error
3289where
3290 R: Send + Sync + std::fmt::Debug + 'static,
3291{
3292 fn from(
3293 err: ::aws_smithy_runtime_api::client::result::SdkError<
3294 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3295 R,
3296 >,
3297 ) -> Self {
3298 match err {
3299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3302 source: err.into(),
3303 }),
3304 }
3305 }
3306}
3307impl From<crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError> for Error {
3308 fn from(err: crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError) -> Self {
3309 match err {
3310 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
3311 }
3312 }
3313}
3314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>>
3315 for Error
3316where
3317 R: Send + Sync + std::fmt::Debug + 'static,
3318{
3319 fn from(
3320 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>,
3321 ) -> Self {
3322 match err {
3323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3326 source: err.into(),
3327 }),
3328 }
3329 }
3330}
3331impl From<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError> for Error {
3332 fn from(err: crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError) -> Self {
3333 match err {
3334 crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
3335 }
3336 }
3337}
3338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>>
3339 for Error
3340where
3341 R: Send + Sync + std::fmt::Debug + 'static,
3342{
3343 fn from(
3344 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>,
3345 ) -> Self {
3346 match err {
3347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3350 source: err.into(),
3351 }),
3352 }
3353 }
3354}
3355impl From<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError> for Error {
3356 fn from(err: crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError) -> Self {
3357 match err {
3358 crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
3359 }
3360 }
3361}
3362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>> for Error
3363where
3364 R: Send + Sync + std::fmt::Debug + 'static,
3365{
3366 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>) -> Self {
3367 match err {
3368 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3369 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3370 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3371 source: err.into(),
3372 }),
3373 }
3374 }
3375}
3376impl From<crate::operation::create_transit_gateway::CreateTransitGatewayError> for Error {
3377 fn from(err: crate::operation::create_transit_gateway::CreateTransitGatewayError) -> Self {
3378 match err {
3379 crate::operation::create_transit_gateway::CreateTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
3380 }
3381 }
3382}
3383impl<R>
3384 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError, R>>
3385 for Error
3386where
3387 R: Send + Sync + std::fmt::Debug + 'static,
3388{
3389 fn from(
3390 err: ::aws_smithy_runtime_api::client::result::SdkError<
3391 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError,
3392 R,
3393 >,
3394 ) -> Self {
3395 match err {
3396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3399 source: err.into(),
3400 }),
3401 }
3402 }
3403}
3404impl From<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError> for Error {
3405 fn from(err: crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError) -> Self {
3406 match err {
3407 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
3408 }
3409 }
3410}
3411impl<R>
3412 From<
3413 ::aws_smithy_runtime_api::client::result::SdkError<
3414 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3415 R,
3416 >,
3417 > for Error
3418where
3419 R: Send + Sync + std::fmt::Debug + 'static,
3420{
3421 fn from(
3422 err: ::aws_smithy_runtime_api::client::result::SdkError<
3423 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3424 R,
3425 >,
3426 ) -> Self {
3427 match err {
3428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3431 source: err.into(),
3432 }),
3433 }
3434 }
3435}
3436impl From<crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError> for Error {
3437 fn from(err: crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError) -> Self {
3438 match err {
3439 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
3440 }
3441 }
3442}
3443impl<R>
3444 From<
3445 ::aws_smithy_runtime_api::client::result::SdkError<
3446 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3447 R,
3448 >,
3449 > for Error
3450where
3451 R: Send + Sync + std::fmt::Debug + 'static,
3452{
3453 fn from(
3454 err: ::aws_smithy_runtime_api::client::result::SdkError<
3455 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3456 R,
3457 >,
3458 ) -> Self {
3459 match err {
3460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3463 source: err.into(),
3464 }),
3465 }
3466 }
3467}
3468impl From<crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError> for Error {
3469 fn from(err: crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError) -> Self {
3470 match err {
3471 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError::Unhandled(inner) => {
3472 Error::Unhandled(inner)
3473 }
3474 }
3475 }
3476}
3477impl<R>
3478 From<
3479 ::aws_smithy_runtime_api::client::result::SdkError<
3480 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3481 R,
3482 >,
3483 > for Error
3484where
3485 R: Send + Sync + std::fmt::Debug + 'static,
3486{
3487 fn from(
3488 err: ::aws_smithy_runtime_api::client::result::SdkError<
3489 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3490 R,
3491 >,
3492 ) -> Self {
3493 match err {
3494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3497 source: err.into(),
3498 }),
3499 }
3500 }
3501}
3502impl From<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError> for Error {
3503 fn from(err: crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError) -> Self {
3504 match err {
3505 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
3506 Error::Unhandled(inner)
3507 }
3508 }
3509 }
3510}
3511impl<R>
3512 From<
3513 ::aws_smithy_runtime_api::client::result::SdkError<
3514 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3515 R,
3516 >,
3517 > for Error
3518where
3519 R: Send + Sync + std::fmt::Debug + 'static,
3520{
3521 fn from(
3522 err: ::aws_smithy_runtime_api::client::result::SdkError<
3523 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3524 R,
3525 >,
3526 ) -> Self {
3527 match err {
3528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3531 source: err.into(),
3532 }),
3533 }
3534 }
3535}
3536impl From<crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError> for Error {
3537 fn from(err: crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError) -> Self {
3538 match err {
3539 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
3540 }
3541 }
3542}
3543impl<R>
3544 From<
3545 ::aws_smithy_runtime_api::client::result::SdkError<
3546 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3547 R,
3548 >,
3549 > for Error
3550where
3551 R: Send + Sync + std::fmt::Debug + 'static,
3552{
3553 fn from(
3554 err: ::aws_smithy_runtime_api::client::result::SdkError<
3555 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3556 R,
3557 >,
3558 ) -> Self {
3559 match err {
3560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3563 source: err.into(),
3564 }),
3565 }
3566 }
3567}
3568impl From<crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError> for Error {
3569 fn from(err: crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError) -> Self {
3570 match err {
3571 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
3572 Error::Unhandled(inner)
3573 }
3574 }
3575 }
3576}
3577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>>
3578 for Error
3579where
3580 R: Send + Sync + std::fmt::Debug + 'static,
3581{
3582 fn from(
3583 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>,
3584 ) -> Self {
3585 match err {
3586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3589 source: err.into(),
3590 }),
3591 }
3592 }
3593}
3594impl From<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError> for Error {
3595 fn from(err: crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError) -> Self {
3596 match err {
3597 crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
3598 }
3599 }
3600}
3601impl<R>
3602 From<
3603 ::aws_smithy_runtime_api::client::result::SdkError<
3604 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3605 R,
3606 >,
3607 > for Error
3608where
3609 R: Send + Sync + std::fmt::Debug + 'static,
3610{
3611 fn from(
3612 err: ::aws_smithy_runtime_api::client::result::SdkError<
3613 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3614 R,
3615 >,
3616 ) -> Self {
3617 match err {
3618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3621 source: err.into(),
3622 }),
3623 }
3624 }
3625}
3626impl From<crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError> for Error {
3627 fn from(err: crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError) -> Self {
3628 match err {
3629 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3630 }
3631 }
3632}
3633impl<R>
3634 From<
3635 ::aws_smithy_runtime_api::client::result::SdkError<
3636 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3637 R,
3638 >,
3639 > for Error
3640where
3641 R: Send + Sync + std::fmt::Debug + 'static,
3642{
3643 fn from(
3644 err: ::aws_smithy_runtime_api::client::result::SdkError<
3645 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3646 R,
3647 >,
3648 ) -> Self {
3649 match err {
3650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3653 source: err.into(),
3654 }),
3655 }
3656 }
3657}
3658impl From<crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError> for Error {
3659 fn from(err: crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError) -> Self {
3660 match err {
3661 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
3662 Error::Unhandled(inner)
3663 }
3664 }
3665 }
3666}
3667impl<R>
3668 From<
3669 ::aws_smithy_runtime_api::client::result::SdkError<
3670 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3671 R,
3672 >,
3673 > for Error
3674where
3675 R: Send + Sync + std::fmt::Debug + 'static,
3676{
3677 fn from(
3678 err: ::aws_smithy_runtime_api::client::result::SdkError<
3679 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3680 R,
3681 >,
3682 ) -> Self {
3683 match err {
3684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3687 source: err.into(),
3688 }),
3689 }
3690 }
3691}
3692impl From<crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError> for Error {
3693 fn from(err: crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError) -> Self {
3694 match err {
3695 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError::Unhandled(inner) => {
3696 Error::Unhandled(inner)
3697 }
3698 }
3699 }
3700}
3701impl<R>
3702 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError, R>>
3703 for Error
3704where
3705 R: Send + Sync + std::fmt::Debug + 'static,
3706{
3707 fn from(
3708 err: ::aws_smithy_runtime_api::client::result::SdkError<
3709 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError,
3710 R,
3711 >,
3712 ) -> Self {
3713 match err {
3714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3717 source: err.into(),
3718 }),
3719 }
3720 }
3721}
3722impl From<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError> for Error {
3723 fn from(err: crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError) -> Self {
3724 match err {
3725 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3726 }
3727 }
3728}
3729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>>
3730 for Error
3731where
3732 R: Send + Sync + std::fmt::Debug + 'static,
3733{
3734 fn from(
3735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>,
3736 ) -> Self {
3737 match err {
3738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3741 source: err.into(),
3742 }),
3743 }
3744 }
3745}
3746impl From<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError> for Error {
3747 fn from(err: crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError) -> Self {
3748 match err {
3749 crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
3750 }
3751 }
3752}
3753impl<R>
3754 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError, R>>
3755 for Error
3756where
3757 R: Send + Sync + std::fmt::Debug + 'static,
3758{
3759 fn from(
3760 err: ::aws_smithy_runtime_api::client::result::SdkError<
3761 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError,
3762 R,
3763 >,
3764 ) -> Self {
3765 match err {
3766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3769 source: err.into(),
3770 }),
3771 }
3772 }
3773}
3774impl From<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError> for Error {
3775 fn from(err: crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError) -> Self {
3776 match err {
3777 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3778 }
3779 }
3780}
3781impl<R>
3782 From<
3783 ::aws_smithy_runtime_api::client::result::SdkError<
3784 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3785 R,
3786 >,
3787 > for Error
3788where
3789 R: Send + Sync + std::fmt::Debug + 'static,
3790{
3791 fn from(
3792 err: ::aws_smithy_runtime_api::client::result::SdkError<
3793 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3794 R,
3795 >,
3796 ) -> Self {
3797 match err {
3798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3801 source: err.into(),
3802 }),
3803 }
3804 }
3805}
3806impl From<crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError> for Error {
3807 fn from(err: crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError) -> Self {
3808 match err {
3809 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError::Unhandled(inner) => {
3810 Error::Unhandled(inner)
3811 }
3812 }
3813 }
3814}
3815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
3816where
3817 R: Send + Sync + std::fmt::Debug + 'static,
3818{
3819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
3820 match err {
3821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3824 source: err.into(),
3825 }),
3826 }
3827 }
3828}
3829impl From<crate::operation::create_volume::CreateVolumeError> for Error {
3830 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
3831 match err {
3832 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
3833 }
3834 }
3835}
3836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>> for Error
3837where
3838 R: Send + Sync + std::fmt::Debug + 'static,
3839{
3840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>) -> Self {
3841 match err {
3842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3845 source: err.into(),
3846 }),
3847 }
3848 }
3849}
3850impl From<crate::operation::create_vpc::CreateVpcError> for Error {
3851 fn from(err: crate::operation::create_vpc::CreateVpcError) -> Self {
3852 match err {
3853 crate::operation::create_vpc::CreateVpcError::Unhandled(inner) => Error::Unhandled(inner),
3854 }
3855 }
3856}
3857impl<R>
3858 From<
3859 ::aws_smithy_runtime_api::client::result::SdkError<
3860 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3861 R,
3862 >,
3863 > for Error
3864where
3865 R: Send + Sync + std::fmt::Debug + 'static,
3866{
3867 fn from(
3868 err: ::aws_smithy_runtime_api::client::result::SdkError<
3869 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3870 R,
3871 >,
3872 ) -> Self {
3873 match err {
3874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3877 source: err.into(),
3878 }),
3879 }
3880 }
3881}
3882impl From<crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError> for Error {
3883 fn from(err: crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError) -> Self {
3884 match err {
3885 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
3886 Error::Unhandled(inner)
3887 }
3888 }
3889 }
3890}
3891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
3892where
3893 R: Send + Sync + std::fmt::Debug + 'static,
3894{
3895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
3896 match err {
3897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3900 source: err.into(),
3901 }),
3902 }
3903 }
3904}
3905impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
3906 fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
3907 match err {
3908 crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3909 }
3910 }
3911}
3912impl<R>
3913 From<
3914 ::aws_smithy_runtime_api::client::result::SdkError<
3915 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3916 R,
3917 >,
3918 > for Error
3919where
3920 R: Send + Sync + std::fmt::Debug + 'static,
3921{
3922 fn from(
3923 err: ::aws_smithy_runtime_api::client::result::SdkError<
3924 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3925 R,
3926 >,
3927 ) -> Self {
3928 match err {
3929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3932 source: err.into(),
3933 }),
3934 }
3935 }
3936}
3937impl From<crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError> for Error {
3938 fn from(err: crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError) -> Self {
3939 match err {
3940 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError::Unhandled(inner) => {
3941 Error::Unhandled(inner)
3942 }
3943 }
3944 }
3945}
3946impl<R>
3947 From<
3948 ::aws_smithy_runtime_api::client::result::SdkError<
3949 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
3950 R,
3951 >,
3952 > for Error
3953where
3954 R: Send + Sync + std::fmt::Debug + 'static,
3955{
3956 fn from(
3957 err: ::aws_smithy_runtime_api::client::result::SdkError<
3958 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
3959 R,
3960 >,
3961 ) -> Self {
3962 match err {
3963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3966 source: err.into(),
3967 }),
3968 }
3969 }
3970}
3971impl From<crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError> for Error {
3972 fn from(err: crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError) -> Self {
3973 match err {
3974 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError::Unhandled(inner) => {
3975 Error::Unhandled(inner)
3976 }
3977 }
3978 }
3979}
3980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>>
3981 for Error
3982where
3983 R: Send + Sync + std::fmt::Debug + 'static,
3984{
3985 fn from(
3986 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>,
3987 ) -> Self {
3988 match err {
3989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3992 source: err.into(),
3993 }),
3994 }
3995 }
3996}
3997impl From<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError> for Error {
3998 fn from(err: crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError) -> Self {
3999 match err {
4000 crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4001 }
4002 }
4003}
4004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>> for Error
4005where
4006 R: Send + Sync + std::fmt::Debug + 'static,
4007{
4008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>) -> Self {
4009 match err {
4010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4013 source: err.into(),
4014 }),
4015 }
4016 }
4017}
4018impl From<crate::operation::create_vpn_connection::CreateVpnConnectionError> for Error {
4019 fn from(err: crate::operation::create_vpn_connection::CreateVpnConnectionError) -> Self {
4020 match err {
4021 crate::operation::create_vpn_connection::CreateVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4022 }
4023 }
4024}
4025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>>
4026 for Error
4027where
4028 R: Send + Sync + std::fmt::Debug + 'static,
4029{
4030 fn from(
4031 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>,
4032 ) -> Self {
4033 match err {
4034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4037 source: err.into(),
4038 }),
4039 }
4040 }
4041}
4042impl From<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError> for Error {
4043 fn from(err: crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError) -> Self {
4044 match err {
4045 crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
4046 }
4047 }
4048}
4049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>> for Error
4050where
4051 R: Send + Sync + std::fmt::Debug + 'static,
4052{
4053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>) -> Self {
4054 match err {
4055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4058 source: err.into(),
4059 }),
4060 }
4061 }
4062}
4063impl From<crate::operation::create_vpn_gateway::CreateVpnGatewayError> for Error {
4064 fn from(err: crate::operation::create_vpn_gateway::CreateVpnGatewayError) -> Self {
4065 match err {
4066 crate::operation::create_vpn_gateway::CreateVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4067 }
4068 }
4069}
4070impl<R>
4071 From<
4072 ::aws_smithy_runtime_api::client::result::SdkError<
4073 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4074 R,
4075 >,
4076 > for Error
4077where
4078 R: Send + Sync + std::fmt::Debug + 'static,
4079{
4080 fn from(
4081 err: ::aws_smithy_runtime_api::client::result::SdkError<
4082 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4083 R,
4084 >,
4085 ) -> Self {
4086 match err {
4087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4090 source: err.into(),
4091 }),
4092 }
4093 }
4094}
4095impl From<crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError> for Error {
4096 fn from(err: crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError) -> Self {
4097 match err {
4098 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
4099 }
4100 }
4101}
4102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>> for Error
4103where
4104 R: Send + Sync + std::fmt::Debug + 'static,
4105{
4106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>) -> Self {
4107 match err {
4108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4111 source: err.into(),
4112 }),
4113 }
4114 }
4115}
4116impl From<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError> for Error {
4117 fn from(err: crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError) -> Self {
4118 match err {
4119 crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4120 }
4121 }
4122}
4123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>>
4124 for Error
4125where
4126 R: Send + Sync + std::fmt::Debug + 'static,
4127{
4128 fn from(
4129 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>,
4130 ) -> Self {
4131 match err {
4132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4135 source: err.into(),
4136 }),
4137 }
4138 }
4139}
4140impl From<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError> for Error {
4141 fn from(err: crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError) -> Self {
4142 match err {
4143 crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4144 }
4145 }
4146}
4147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>> for Error
4148where
4149 R: Send + Sync + std::fmt::Debug + 'static,
4150{
4151 fn from(
4152 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>,
4153 ) -> Self {
4154 match err {
4155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4158 source: err.into(),
4159 }),
4160 }
4161 }
4162}
4163impl From<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError> for Error {
4164 fn from(err: crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError) -> Self {
4165 match err {
4166 crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
4167 }
4168 }
4169}
4170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>> for Error
4171where
4172 R: Send + Sync + std::fmt::Debug + 'static,
4173{
4174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>) -> Self {
4175 match err {
4176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4179 source: err.into(),
4180 }),
4181 }
4182 }
4183}
4184impl From<crate::operation::delete_coip_cidr::DeleteCoipCidrError> for Error {
4185 fn from(err: crate::operation::delete_coip_cidr::DeleteCoipCidrError) -> Self {
4186 match err {
4187 crate::operation::delete_coip_cidr::DeleteCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
4188 }
4189 }
4190}
4191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>> for Error
4192where
4193 R: Send + Sync + std::fmt::Debug + 'static,
4194{
4195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>) -> Self {
4196 match err {
4197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4200 source: err.into(),
4201 }),
4202 }
4203 }
4204}
4205impl From<crate::operation::delete_coip_pool::DeleteCoipPoolError> for Error {
4206 fn from(err: crate::operation::delete_coip_pool::DeleteCoipPoolError) -> Self {
4207 match err {
4208 crate::operation::delete_coip_pool::DeleteCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
4209 }
4210 }
4211}
4212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>> for Error
4213where
4214 R: Send + Sync + std::fmt::Debug + 'static,
4215{
4216 fn from(
4217 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>,
4218 ) -> Self {
4219 match err {
4220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4223 source: err.into(),
4224 }),
4225 }
4226 }
4227}
4228impl From<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError> for Error {
4229 fn from(err: crate::operation::delete_customer_gateway::DeleteCustomerGatewayError) -> Self {
4230 match err {
4231 crate::operation::delete_customer_gateway::DeleteCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4232 }
4233 }
4234}
4235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>> for Error
4236where
4237 R: Send + Sync + std::fmt::Debug + 'static,
4238{
4239 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>) -> Self {
4240 match err {
4241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4244 source: err.into(),
4245 }),
4246 }
4247 }
4248}
4249impl From<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError> for Error {
4250 fn from(err: crate::operation::delete_dhcp_options::DeleteDhcpOptionsError) -> Self {
4251 match err {
4252 crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4253 }
4254 }
4255}
4256impl<R>
4257 From<
4258 ::aws_smithy_runtime_api::client::result::SdkError<
4259 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4260 R,
4261 >,
4262 > for Error
4263where
4264 R: Send + Sync + std::fmt::Debug + 'static,
4265{
4266 fn from(
4267 err: ::aws_smithy_runtime_api::client::result::SdkError<
4268 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4269 R,
4270 >,
4271 ) -> Self {
4272 match err {
4273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4276 source: err.into(),
4277 }),
4278 }
4279 }
4280}
4281impl From<crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError> for Error {
4282 fn from(err: crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError) -> Self {
4283 match err {
4284 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4285 }
4286 }
4287}
4288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>> for Error
4289where
4290 R: Send + Sync + std::fmt::Debug + 'static,
4291{
4292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>) -> Self {
4293 match err {
4294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4297 source: err.into(),
4298 }),
4299 }
4300 }
4301}
4302impl From<crate::operation::delete_fleets::DeleteFleetsError> for Error {
4303 fn from(err: crate::operation::delete_fleets::DeleteFleetsError) -> Self {
4304 match err {
4305 crate::operation::delete_fleets::DeleteFleetsError::Unhandled(inner) => Error::Unhandled(inner),
4306 }
4307 }
4308}
4309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>> for Error
4310where
4311 R: Send + Sync + std::fmt::Debug + 'static,
4312{
4313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>) -> Self {
4314 match err {
4315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4318 source: err.into(),
4319 }),
4320 }
4321 }
4322}
4323impl From<crate::operation::delete_flow_logs::DeleteFlowLogsError> for Error {
4324 fn from(err: crate::operation::delete_flow_logs::DeleteFlowLogsError) -> Self {
4325 match err {
4326 crate::operation::delete_flow_logs::DeleteFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
4327 }
4328 }
4329}
4330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>> for Error
4331where
4332 R: Send + Sync + std::fmt::Debug + 'static,
4333{
4334 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>) -> Self {
4335 match err {
4336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4339 source: err.into(),
4340 }),
4341 }
4342 }
4343}
4344impl From<crate::operation::delete_fpga_image::DeleteFpgaImageError> for Error {
4345 fn from(err: crate::operation::delete_fpga_image::DeleteFpgaImageError) -> Self {
4346 match err {
4347 crate::operation::delete_fpga_image::DeleteFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
4348 }
4349 }
4350}
4351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>>
4352 for Error
4353where
4354 R: Send + Sync + std::fmt::Debug + 'static,
4355{
4356 fn from(
4357 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>,
4358 ) -> Self {
4359 match err {
4360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4363 source: err.into(),
4364 }),
4365 }
4366 }
4367}
4368impl From<crate::operation::delete_image_usage_report::DeleteImageUsageReportError> for Error {
4369 fn from(err: crate::operation::delete_image_usage_report::DeleteImageUsageReportError) -> Self {
4370 match err {
4371 crate::operation::delete_image_usage_report::DeleteImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
4372 }
4373 }
4374}
4375impl<R>
4376 From<
4377 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError, R>,
4378 > for Error
4379where
4380 R: Send + Sync + std::fmt::Debug + 'static,
4381{
4382 fn from(
4383 err: ::aws_smithy_runtime_api::client::result::SdkError<
4384 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError,
4385 R,
4386 >,
4387 ) -> Self {
4388 match err {
4389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4392 source: err.into(),
4393 }),
4394 }
4395 }
4396}
4397impl From<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError> for Error {
4398 fn from(err: crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError) -> Self {
4399 match err {
4400 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4401 }
4402 }
4403}
4404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>>
4405 for Error
4406where
4407 R: Send + Sync + std::fmt::Debug + 'static,
4408{
4409 fn from(
4410 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>,
4411 ) -> Self {
4412 match err {
4413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4416 source: err.into(),
4417 }),
4418 }
4419 }
4420}
4421impl From<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError> for Error {
4422 fn from(err: crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError) -> Self {
4423 match err {
4424 crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
4425 }
4426 }
4427}
4428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>> for Error
4429where
4430 R: Send + Sync + std::fmt::Debug + 'static,
4431{
4432 fn from(
4433 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>,
4434 ) -> Self {
4435 match err {
4436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4439 source: err.into(),
4440 }),
4441 }
4442 }
4443}
4444impl From<crate::operation::delete_internet_gateway::DeleteInternetGatewayError> for Error {
4445 fn from(err: crate::operation::delete_internet_gateway::DeleteInternetGatewayError) -> Self {
4446 match err {
4447 crate::operation::delete_internet_gateway::DeleteInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4448 }
4449 }
4450}
4451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>> for Error
4452where
4453 R: Send + Sync + std::fmt::Debug + 'static,
4454{
4455 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>) -> Self {
4456 match err {
4457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4460 source: err.into(),
4461 }),
4462 }
4463 }
4464}
4465impl From<crate::operation::delete_ipam::DeleteIpamError> for Error {
4466 fn from(err: crate::operation::delete_ipam::DeleteIpamError) -> Self {
4467 match err {
4468 crate::operation::delete_ipam::DeleteIpamError::Unhandled(inner) => Error::Unhandled(inner),
4469 }
4470 }
4471}
4472impl<R>
4473 From<
4474 ::aws_smithy_runtime_api::client::result::SdkError<
4475 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4476 R,
4477 >,
4478 > for Error
4479where
4480 R: Send + Sync + std::fmt::Debug + 'static,
4481{
4482 fn from(
4483 err: ::aws_smithy_runtime_api::client::result::SdkError<
4484 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4485 R,
4486 >,
4487 ) -> Self {
4488 match err {
4489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4492 source: err.into(),
4493 }),
4494 }
4495 }
4496}
4497impl From<crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError> for Error {
4498 fn from(err: crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError) -> Self {
4499 match err {
4500 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError::Unhandled(
4501 inner,
4502 ) => Error::Unhandled(inner),
4503 }
4504 }
4505}
4506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>> for Error
4507where
4508 R: Send + Sync + std::fmt::Debug + 'static,
4509{
4510 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>) -> Self {
4511 match err {
4512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4515 source: err.into(),
4516 }),
4517 }
4518 }
4519}
4520impl From<crate::operation::delete_ipam_pool::DeleteIpamPoolError> for Error {
4521 fn from(err: crate::operation::delete_ipam_pool::DeleteIpamPoolError) -> Self {
4522 match err {
4523 crate::operation::delete_ipam_pool::DeleteIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
4524 }
4525 }
4526}
4527impl<R>
4528 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError, R>>
4529 for Error
4530where
4531 R: Send + Sync + std::fmt::Debug + 'static,
4532{
4533 fn from(
4534 err: ::aws_smithy_runtime_api::client::result::SdkError<
4535 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError,
4536 R,
4537 >,
4538 ) -> Self {
4539 match err {
4540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4543 source: err.into(),
4544 }),
4545 }
4546 }
4547}
4548impl From<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError> for Error {
4549 fn from(err: crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError) -> Self {
4550 match err {
4551 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
4552 }
4553 }
4554}
4555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>> for Error
4556where
4557 R: Send + Sync + std::fmt::Debug + 'static,
4558{
4559 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>) -> Self {
4560 match err {
4561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4564 source: err.into(),
4565 }),
4566 }
4567 }
4568}
4569impl From<crate::operation::delete_ipam_scope::DeleteIpamScopeError> for Error {
4570 fn from(err: crate::operation::delete_ipam_scope::DeleteIpamScopeError) -> Self {
4571 match err {
4572 crate::operation::delete_ipam_scope::DeleteIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
4573 }
4574 }
4575}
4576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>> for Error
4577where
4578 R: Send + Sync + std::fmt::Debug + 'static,
4579{
4580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>) -> Self {
4581 match err {
4582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4585 source: err.into(),
4586 }),
4587 }
4588 }
4589}
4590impl From<crate::operation::delete_key_pair::DeleteKeyPairError> for Error {
4591 fn from(err: crate::operation::delete_key_pair::DeleteKeyPairError) -> Self {
4592 match err {
4593 crate::operation::delete_key_pair::DeleteKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
4594 }
4595 }
4596}
4597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>> for Error
4598where
4599 R: Send + Sync + std::fmt::Debug + 'static,
4600{
4601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>) -> Self {
4602 match err {
4603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4606 source: err.into(),
4607 }),
4608 }
4609 }
4610}
4611impl From<crate::operation::delete_launch_template::DeleteLaunchTemplateError> for Error {
4612 fn from(err: crate::operation::delete_launch_template::DeleteLaunchTemplateError) -> Self {
4613 match err {
4614 crate::operation::delete_launch_template::DeleteLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4615 }
4616 }
4617}
4618impl<R>
4619 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError, R>>
4620 for Error
4621where
4622 R: Send + Sync + std::fmt::Debug + 'static,
4623{
4624 fn from(
4625 err: ::aws_smithy_runtime_api::client::result::SdkError<
4626 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError,
4627 R,
4628 >,
4629 ) -> Self {
4630 match err {
4631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4634 source: err.into(),
4635 }),
4636 }
4637 }
4638}
4639impl From<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError> for Error {
4640 fn from(err: crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError) -> Self {
4641 match err {
4642 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
4643 }
4644 }
4645}
4646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>>
4647 for Error
4648where
4649 R: Send + Sync + std::fmt::Debug + 'static,
4650{
4651 fn from(
4652 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>,
4653 ) -> Self {
4654 match err {
4655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4658 source: err.into(),
4659 }),
4660 }
4661 }
4662}
4663impl From<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError> for Error {
4664 fn from(err: crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError) -> Self {
4665 match err {
4666 crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
4667 }
4668 }
4669}
4670impl<R>
4671 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError, R>>
4672 for Error
4673where
4674 R: Send + Sync + std::fmt::Debug + 'static,
4675{
4676 fn from(
4677 err: ::aws_smithy_runtime_api::client::result::SdkError<
4678 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError,
4679 R,
4680 >,
4681 ) -> Self {
4682 match err {
4683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4686 source: err.into(),
4687 }),
4688 }
4689 }
4690}
4691impl From<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError> for Error {
4692 fn from(err: crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError) -> Self {
4693 match err {
4694 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
4695 }
4696 }
4697}
4698impl<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 {
4699 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
4700 match err {
4701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4702 _ => Error::Unhandled(
4703 crate::error::sealed_unhandled::Unhandled {
4704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4705 source: err.into(),
4706 }
4707 ),
4708 }
4709 }
4710}
4711impl From<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
4712 fn from(err: crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
4713 match err {
4714 crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
4715 }
4716 }
4717}
4718impl<R>
4719 From<
4720 ::aws_smithy_runtime_api::client::result::SdkError<
4721 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4722 R,
4723 >,
4724 > for Error
4725where
4726 R: Send + Sync + std::fmt::Debug + 'static,
4727{
4728 fn from(
4729 err: ::aws_smithy_runtime_api::client::result::SdkError<
4730 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4731 R,
4732 >,
4733 ) -> Self {
4734 match err {
4735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4738 source: err.into(),
4739 }),
4740 }
4741 }
4742}
4743impl From<crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError> for Error {
4744 fn from(err: crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError) -> Self {
4745 match err {
4746 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
4747 Error::Unhandled(inner)
4748 }
4749 }
4750 }
4751}
4752impl<R>
4753 From<
4754 ::aws_smithy_runtime_api::client::result::SdkError<
4755 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4756 R,
4757 >,
4758 > for Error
4759where
4760 R: Send + Sync + std::fmt::Debug + 'static,
4761{
4762 fn from(
4763 err: ::aws_smithy_runtime_api::client::result::SdkError<
4764 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4765 R,
4766 >,
4767 ) -> Self {
4768 match err {
4769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4772 source: err.into(),
4773 }),
4774 }
4775 }
4776}
4777impl From<crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError> for Error {
4778 fn from(err: crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError) -> Self {
4779 match err {
4780 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
4781 Error::Unhandled(inner)
4782 }
4783 }
4784 }
4785}
4786impl<R>
4787 From<
4788 ::aws_smithy_runtime_api::client::result::SdkError<
4789 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4790 R,
4791 >,
4792 > for Error
4793where
4794 R: Send + Sync + std::fmt::Debug + 'static,
4795{
4796 fn from(
4797 err: ::aws_smithy_runtime_api::client::result::SdkError<
4798 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4799 R,
4800 >,
4801 ) -> Self {
4802 match err {
4803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4806 source: err.into(),
4807 }),
4808 }
4809 }
4810}
4811impl From<crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError> for Error {
4812 fn from(err: crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError) -> Self {
4813 match err {
4814 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
4815 Error::Unhandled(inner)
4816 }
4817 }
4818 }
4819}
4820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>>
4821 for Error
4822where
4823 R: Send + Sync + std::fmt::Debug + 'static,
4824{
4825 fn from(
4826 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>,
4827 ) -> Self {
4828 match err {
4829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4832 source: err.into(),
4833 }),
4834 }
4835 }
4836}
4837impl From<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError> for Error {
4838 fn from(err: crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError) -> Self {
4839 match err {
4840 crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
4841 }
4842 }
4843}
4844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>> for Error
4845where
4846 R: Send + Sync + std::fmt::Debug + 'static,
4847{
4848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>) -> Self {
4849 match err {
4850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4853 source: err.into(),
4854 }),
4855 }
4856 }
4857}
4858impl From<crate::operation::delete_nat_gateway::DeleteNatGatewayError> for Error {
4859 fn from(err: crate::operation::delete_nat_gateway::DeleteNatGatewayError) -> Self {
4860 match err {
4861 crate::operation::delete_nat_gateway::DeleteNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4862 }
4863 }
4864}
4865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>> for Error
4866where
4867 R: Send + Sync + std::fmt::Debug + 'static,
4868{
4869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>) -> Self {
4870 match err {
4871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4874 source: err.into(),
4875 }),
4876 }
4877 }
4878}
4879impl From<crate::operation::delete_network_acl::DeleteNetworkAclError> for Error {
4880 fn from(err: crate::operation::delete_network_acl::DeleteNetworkAclError) -> Self {
4881 match err {
4882 crate::operation::delete_network_acl::DeleteNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
4883 }
4884 }
4885}
4886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>> for Error
4887where
4888 R: Send + Sync + std::fmt::Debug + 'static,
4889{
4890 fn from(
4891 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>,
4892 ) -> Self {
4893 match err {
4894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4897 source: err.into(),
4898 }),
4899 }
4900 }
4901}
4902impl From<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError> for Error {
4903 fn from(err: crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError) -> Self {
4904 match err {
4905 crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
4906 }
4907 }
4908}
4909impl<R>
4910 From<
4911 ::aws_smithy_runtime_api::client::result::SdkError<
4912 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
4913 R,
4914 >,
4915 > for Error
4916where
4917 R: Send + Sync + std::fmt::Debug + 'static,
4918{
4919 fn from(
4920 err: ::aws_smithy_runtime_api::client::result::SdkError<
4921 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
4922 R,
4923 >,
4924 ) -> Self {
4925 match err {
4926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4929 source: err.into(),
4930 }),
4931 }
4932 }
4933}
4934impl From<crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError> for Error {
4935 fn from(err: crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError) -> Self {
4936 match err {
4937 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError::Unhandled(inner) => {
4938 Error::Unhandled(inner)
4939 }
4940 }
4941 }
4942}
4943impl<R>
4944 From<
4945 ::aws_smithy_runtime_api::client::result::SdkError<
4946 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
4947 R,
4948 >,
4949 > for Error
4950where
4951 R: Send + Sync + std::fmt::Debug + 'static,
4952{
4953 fn from(
4954 err: ::aws_smithy_runtime_api::client::result::SdkError<
4955 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
4956 R,
4957 >,
4958 ) -> Self {
4959 match err {
4960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4963 source: err.into(),
4964 }),
4965 }
4966 }
4967}
4968impl From<crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError> for Error {
4969 fn from(err: crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError) -> Self {
4970 match err {
4971 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
4972 Error::Unhandled(inner)
4973 }
4974 }
4975 }
4976}
4977impl<R>
4978 From<
4979 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError, R>,
4980 > for Error
4981where
4982 R: Send + Sync + std::fmt::Debug + 'static,
4983{
4984 fn from(
4985 err: ::aws_smithy_runtime_api::client::result::SdkError<
4986 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError,
4987 R,
4988 >,
4989 ) -> Self {
4990 match err {
4991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4994 source: err.into(),
4995 }),
4996 }
4997 }
4998}
4999impl From<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError> for Error {
5000 fn from(err: crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError) -> Self {
5001 match err {
5002 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
5003 }
5004 }
5005}
5006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>>
5007 for Error
5008where
5009 R: Send + Sync + std::fmt::Debug + 'static,
5010{
5011 fn from(
5012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>,
5013 ) -> Self {
5014 match err {
5015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5018 source: err.into(),
5019 }),
5020 }
5021 }
5022}
5023impl From<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError> for Error {
5024 fn from(err: crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError) -> Self {
5025 match err {
5026 crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
5027 }
5028 }
5029}
5030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>> for Error
5031where
5032 R: Send + Sync + std::fmt::Debug + 'static,
5033{
5034 fn from(
5035 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>,
5036 ) -> Self {
5037 match err {
5038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5041 source: err.into(),
5042 }),
5043 }
5044 }
5045}
5046impl From<crate::operation::delete_network_interface::DeleteNetworkInterfaceError> for Error {
5047 fn from(err: crate::operation::delete_network_interface::DeleteNetworkInterfaceError) -> Self {
5048 match err {
5049 crate::operation::delete_network_interface::DeleteNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
5050 }
5051 }
5052}
5053impl<R>
5054 From<
5055 ::aws_smithy_runtime_api::client::result::SdkError<
5056 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5057 R,
5058 >,
5059 > for Error
5060where
5061 R: Send + Sync + std::fmt::Debug + 'static,
5062{
5063 fn from(
5064 err: ::aws_smithy_runtime_api::client::result::SdkError<
5065 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5066 R,
5067 >,
5068 ) -> Self {
5069 match err {
5070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5073 source: err.into(),
5074 }),
5075 }
5076 }
5077}
5078impl From<crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError> for Error {
5079 fn from(err: crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError) -> Self {
5080 match err {
5081 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
5082 }
5083 }
5084}
5085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>> for Error
5086where
5087 R: Send + Sync + std::fmt::Debug + 'static,
5088{
5089 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>) -> Self {
5090 match err {
5091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5094 source: err.into(),
5095 }),
5096 }
5097 }
5098}
5099impl From<crate::operation::delete_placement_group::DeletePlacementGroupError> for Error {
5100 fn from(err: crate::operation::delete_placement_group::DeletePlacementGroupError) -> Self {
5101 match err {
5102 crate::operation::delete_placement_group::DeletePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
5103 }
5104 }
5105}
5106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>> for Error
5107where
5108 R: Send + Sync + std::fmt::Debug + 'static,
5109{
5110 fn from(
5111 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>,
5112 ) -> Self {
5113 match err {
5114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5117 source: err.into(),
5118 }),
5119 }
5120 }
5121}
5122impl From<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError> for Error {
5123 fn from(err: crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError) -> Self {
5124 match err {
5125 crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
5126 }
5127 }
5128}
5129impl<R>
5130 From<
5131 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError, R>,
5132 > for Error
5133where
5134 R: Send + Sync + std::fmt::Debug + 'static,
5135{
5136 fn from(
5137 err: ::aws_smithy_runtime_api::client::result::SdkError<
5138 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
5139 R,
5140 >,
5141 ) -> Self {
5142 match err {
5143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5146 source: err.into(),
5147 }),
5148 }
5149 }
5150}
5151impl From<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError> for Error {
5152 fn from(err: crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError) -> Self {
5153 match err {
5154 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
5155 }
5156 }
5157}
5158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
5159where
5160 R: Send + Sync + std::fmt::Debug + 'static,
5161{
5162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
5163 match err {
5164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5167 source: err.into(),
5168 }),
5169 }
5170 }
5171}
5172impl From<crate::operation::delete_route::DeleteRouteError> for Error {
5173 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
5174 match err {
5175 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
5176 }
5177 }
5178}
5179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>> for Error
5180where
5181 R: Send + Sync + std::fmt::Debug + 'static,
5182{
5183 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>) -> 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_route_server::DeleteRouteServerError> for Error {
5194 fn from(err: crate::operation::delete_route_server::DeleteRouteServerError) -> Self {
5195 match err {
5196 crate::operation::delete_route_server::DeleteRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
5197 }
5198 }
5199}
5200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>>
5201 for Error
5202where
5203 R: Send + Sync + std::fmt::Debug + 'static,
5204{
5205 fn from(
5206 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>,
5207 ) -> Self {
5208 match err {
5209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5212 source: err.into(),
5213 }),
5214 }
5215 }
5216}
5217impl From<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError> for Error {
5218 fn from(err: crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError) -> Self {
5219 match err {
5220 crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5221 }
5222 }
5223}
5224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>> for Error
5225where
5226 R: Send + Sync + std::fmt::Debug + 'static,
5227{
5228 fn from(
5229 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>,
5230 ) -> Self {
5231 match err {
5232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5235 source: err.into(),
5236 }),
5237 }
5238 }
5239}
5240impl From<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError> for Error {
5241 fn from(err: crate::operation::delete_route_server_peer::DeleteRouteServerPeerError) -> Self {
5242 match err {
5243 crate::operation::delete_route_server_peer::DeleteRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
5244 }
5245 }
5246}
5247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>> for Error
5248where
5249 R: Send + Sync + std::fmt::Debug + 'static,
5250{
5251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>) -> Self {
5252 match err {
5253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5256 source: err.into(),
5257 }),
5258 }
5259 }
5260}
5261impl From<crate::operation::delete_route_table::DeleteRouteTableError> for Error {
5262 fn from(err: crate::operation::delete_route_table::DeleteRouteTableError) -> Self {
5263 match err {
5264 crate::operation::delete_route_table::DeleteRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5265 }
5266 }
5267}
5268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
5269where
5270 R: Send + Sync + std::fmt::Debug + 'static,
5271{
5272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
5273 match err {
5274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5277 source: err.into(),
5278 }),
5279 }
5280 }
5281}
5282impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
5283 fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
5284 match err {
5285 crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
5286 }
5287 }
5288}
5289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
5290where
5291 R: Send + Sync + std::fmt::Debug + 'static,
5292{
5293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
5294 match err {
5295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5298 source: err.into(),
5299 }),
5300 }
5301 }
5302}
5303impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
5304 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
5305 match err {
5306 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5307 }
5308 }
5309}
5310impl<R>
5311 From<
5312 ::aws_smithy_runtime_api::client::result::SdkError<
5313 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5314 R,
5315 >,
5316 > for Error
5317where
5318 R: Send + Sync + std::fmt::Debug + 'static,
5319{
5320 fn from(
5321 err: ::aws_smithy_runtime_api::client::result::SdkError<
5322 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5323 R,
5324 >,
5325 ) -> Self {
5326 match err {
5327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5330 source: err.into(),
5331 }),
5332 }
5333 }
5334}
5335impl From<crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError> for Error {
5336 fn from(err: crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError) -> Self {
5337 match err {
5338 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5339 }
5340 }
5341}
5342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>> for Error
5343where
5344 R: Send + Sync + std::fmt::Debug + 'static,
5345{
5346 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>) -> Self {
5347 match err {
5348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5351 source: err.into(),
5352 }),
5353 }
5354 }
5355}
5356impl From<crate::operation::delete_subnet::DeleteSubnetError> for Error {
5357 fn from(err: crate::operation::delete_subnet::DeleteSubnetError) -> Self {
5358 match err {
5359 crate::operation::delete_subnet::DeleteSubnetError::Unhandled(inner) => Error::Unhandled(inner),
5360 }
5361 }
5362}
5363impl<R>
5364 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError, R>>
5365 for Error
5366where
5367 R: Send + Sync + std::fmt::Debug + 'static,
5368{
5369 fn from(
5370 err: ::aws_smithy_runtime_api::client::result::SdkError<
5371 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError,
5372 R,
5373 >,
5374 ) -> Self {
5375 match err {
5376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5379 source: err.into(),
5380 }),
5381 }
5382 }
5383}
5384impl From<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError> for Error {
5385 fn from(err: crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError) -> Self {
5386 match err {
5387 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
5388 }
5389 }
5390}
5391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
5392where
5393 R: Send + Sync + std::fmt::Debug + 'static,
5394{
5395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
5396 match err {
5397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5400 source: err.into(),
5401 }),
5402 }
5403 }
5404}
5405impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
5406 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
5407 match err {
5408 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
5409 }
5410 }
5411}
5412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>>
5413 for Error
5414where
5415 R: Send + Sync + std::fmt::Debug + 'static,
5416{
5417 fn from(
5418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>,
5419 ) -> 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_traffic_mirror_filter::DeleteTrafficMirrorFilterError> for Error {
5430 fn from(err: crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError) -> Self {
5431 match err {
5432 crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
5433 }
5434 }
5435}
5436impl<R>
5437 From<
5438 ::aws_smithy_runtime_api::client::result::SdkError<
5439 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5440 R,
5441 >,
5442 > for Error
5443where
5444 R: Send + Sync + std::fmt::Debug + 'static,
5445{
5446 fn from(
5447 err: ::aws_smithy_runtime_api::client::result::SdkError<
5448 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5449 R,
5450 >,
5451 ) -> Self {
5452 match err {
5453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5456 source: err.into(),
5457 }),
5458 }
5459 }
5460}
5461impl From<crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError> for Error {
5462 fn from(err: crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError) -> Self {
5463 match err {
5464 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
5465 }
5466 }
5467}
5468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>>
5469 for Error
5470where
5471 R: Send + Sync + std::fmt::Debug + 'static,
5472{
5473 fn from(
5474 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>,
5475 ) -> Self {
5476 match err {
5477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5480 source: err.into(),
5481 }),
5482 }
5483 }
5484}
5485impl From<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError> for Error {
5486 fn from(err: crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError) -> Self {
5487 match err {
5488 crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
5489 }
5490 }
5491}
5492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>>
5493 for Error
5494where
5495 R: Send + Sync + std::fmt::Debug + 'static,
5496{
5497 fn from(
5498 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>,
5499 ) -> Self {
5500 match err {
5501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5504 source: err.into(),
5505 }),
5506 }
5507 }
5508}
5509impl From<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError> for Error {
5510 fn from(err: crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError) -> Self {
5511 match err {
5512 crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
5513 }
5514 }
5515}
5516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>> for Error
5517where
5518 R: Send + Sync + std::fmt::Debug + 'static,
5519{
5520 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>) -> Self {
5521 match err {
5522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5525 source: err.into(),
5526 }),
5527 }
5528 }
5529}
5530impl From<crate::operation::delete_transit_gateway::DeleteTransitGatewayError> for Error {
5531 fn from(err: crate::operation::delete_transit_gateway::DeleteTransitGatewayError) -> Self {
5532 match err {
5533 crate::operation::delete_transit_gateway::DeleteTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5534 }
5535 }
5536}
5537impl<R>
5538 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError, R>>
5539 for Error
5540where
5541 R: Send + Sync + std::fmt::Debug + 'static,
5542{
5543 fn from(
5544 err: ::aws_smithy_runtime_api::client::result::SdkError<
5545 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError,
5546 R,
5547 >,
5548 ) -> Self {
5549 match err {
5550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5553 source: err.into(),
5554 }),
5555 }
5556 }
5557}
5558impl From<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError> for Error {
5559 fn from(err: crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError) -> Self {
5560 match err {
5561 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
5562 }
5563 }
5564}
5565impl<R>
5566 From<
5567 ::aws_smithy_runtime_api::client::result::SdkError<
5568 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5569 R,
5570 >,
5571 > for Error
5572where
5573 R: Send + Sync + std::fmt::Debug + 'static,
5574{
5575 fn from(
5576 err: ::aws_smithy_runtime_api::client::result::SdkError<
5577 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5578 R,
5579 >,
5580 ) -> Self {
5581 match err {
5582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5585 source: err.into(),
5586 }),
5587 }
5588 }
5589}
5590impl From<crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError> for Error {
5591 fn from(err: crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError) -> Self {
5592 match err {
5593 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
5594 }
5595 }
5596}
5597impl<R>
5598 From<
5599 ::aws_smithy_runtime_api::client::result::SdkError<
5600 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5601 R,
5602 >,
5603 > for Error
5604where
5605 R: Send + Sync + std::fmt::Debug + 'static,
5606{
5607 fn from(
5608 err: ::aws_smithy_runtime_api::client::result::SdkError<
5609 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5610 R,
5611 >,
5612 ) -> Self {
5613 match err {
5614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5617 source: err.into(),
5618 }),
5619 }
5620 }
5621}
5622impl From<crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError> for Error {
5623 fn from(err: crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError) -> Self {
5624 match err {
5625 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError::Unhandled(inner) => {
5626 Error::Unhandled(inner)
5627 }
5628 }
5629 }
5630}
5631impl<R>
5632 From<
5633 ::aws_smithy_runtime_api::client::result::SdkError<
5634 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5635 R,
5636 >,
5637 > for Error
5638where
5639 R: Send + Sync + std::fmt::Debug + 'static,
5640{
5641 fn from(
5642 err: ::aws_smithy_runtime_api::client::result::SdkError<
5643 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5644 R,
5645 >,
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_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError> for Error {
5657 fn from(err: crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError) -> Self {
5658 match err {
5659 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
5660 Error::Unhandled(inner)
5661 }
5662 }
5663 }
5664}
5665impl<R>
5666 From<
5667 ::aws_smithy_runtime_api::client::result::SdkError<
5668 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5669 R,
5670 >,
5671 > for Error
5672where
5673 R: Send + Sync + std::fmt::Debug + 'static,
5674{
5675 fn from(
5676 err: ::aws_smithy_runtime_api::client::result::SdkError<
5677 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5678 R,
5679 >,
5680 ) -> Self {
5681 match err {
5682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5685 source: err.into(),
5686 }),
5687 }
5688 }
5689}
5690impl From<crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError> for Error {
5691 fn from(err: crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError) -> Self {
5692 match err {
5693 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
5694 }
5695 }
5696}
5697impl<R>
5698 From<
5699 ::aws_smithy_runtime_api::client::result::SdkError<
5700 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5701 R,
5702 >,
5703 > for Error
5704where
5705 R: Send + Sync + std::fmt::Debug + 'static,
5706{
5707 fn from(
5708 err: ::aws_smithy_runtime_api::client::result::SdkError<
5709 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5710 R,
5711 >,
5712 ) -> Self {
5713 match err {
5714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5717 source: err.into(),
5718 }),
5719 }
5720 }
5721}
5722impl From<crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError> for Error {
5723 fn from(err: crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError) -> Self {
5724 match err {
5725 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
5726 Error::Unhandled(inner)
5727 }
5728 }
5729 }
5730}
5731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>>
5732 for Error
5733where
5734 R: Send + Sync + std::fmt::Debug + 'static,
5735{
5736 fn from(
5737 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>,
5738 ) -> Self {
5739 match err {
5740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5743 source: err.into(),
5744 }),
5745 }
5746 }
5747}
5748impl From<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError> for Error {
5749 fn from(err: crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError) -> Self {
5750 match err {
5751 crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
5752 }
5753 }
5754}
5755impl<R>
5756 From<
5757 ::aws_smithy_runtime_api::client::result::SdkError<
5758 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5759 R,
5760 >,
5761 > for Error
5762where
5763 R: Send + Sync + std::fmt::Debug + 'static,
5764{
5765 fn from(
5766 err: ::aws_smithy_runtime_api::client::result::SdkError<
5767 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5768 R,
5769 >,
5770 ) -> Self {
5771 match err {
5772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5775 source: err.into(),
5776 }),
5777 }
5778 }
5779}
5780impl From<crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError> for Error {
5781 fn from(err: crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError) -> Self {
5782 match err {
5783 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5784 }
5785 }
5786}
5787impl<R>
5788 From<
5789 ::aws_smithy_runtime_api::client::result::SdkError<
5790 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5791 R,
5792 >,
5793 > for Error
5794where
5795 R: Send + Sync + std::fmt::Debug + 'static,
5796{
5797 fn from(
5798 err: ::aws_smithy_runtime_api::client::result::SdkError<
5799 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5800 R,
5801 >,
5802 ) -> Self {
5803 match err {
5804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5807 source: err.into(),
5808 }),
5809 }
5810 }
5811}
5812impl From<crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError> for Error {
5813 fn from(err: crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError) -> Self {
5814 match err {
5815 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
5816 Error::Unhandled(inner)
5817 }
5818 }
5819 }
5820}
5821impl<R>
5822 From<
5823 ::aws_smithy_runtime_api::client::result::SdkError<
5824 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5825 R,
5826 >,
5827 > for Error
5828where
5829 R: Send + Sync + std::fmt::Debug + 'static,
5830{
5831 fn from(
5832 err: ::aws_smithy_runtime_api::client::result::SdkError<
5833 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5834 R,
5835 >,
5836 ) -> Self {
5837 match err {
5838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5841 source: err.into(),
5842 }),
5843 }
5844 }
5845}
5846impl From<crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError> for Error {
5847 fn from(err: crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError) -> Self {
5848 match err {
5849 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError::Unhandled(inner) => {
5850 Error::Unhandled(inner)
5851 }
5852 }
5853 }
5854}
5855impl<R>
5856 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError, R>>
5857 for Error
5858where
5859 R: Send + Sync + std::fmt::Debug + 'static,
5860{
5861 fn from(
5862 err: ::aws_smithy_runtime_api::client::result::SdkError<
5863 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError,
5864 R,
5865 >,
5866 ) -> Self {
5867 match err {
5868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5871 source: err.into(),
5872 }),
5873 }
5874 }
5875}
5876impl From<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError> for Error {
5877 fn from(err: crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError) -> Self {
5878 match err {
5879 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5880 }
5881 }
5882}
5883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>>
5884 for Error
5885where
5886 R: Send + Sync + std::fmt::Debug + 'static,
5887{
5888 fn from(
5889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>,
5890 ) -> Self {
5891 match err {
5892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5895 source: err.into(),
5896 }),
5897 }
5898 }
5899}
5900impl From<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError> for Error {
5901 fn from(err: crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError) -> Self {
5902 match err {
5903 crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
5904 }
5905 }
5906}
5907impl<R>
5908 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError, R>>
5909 for Error
5910where
5911 R: Send + Sync + std::fmt::Debug + 'static,
5912{
5913 fn from(
5914 err: ::aws_smithy_runtime_api::client::result::SdkError<
5915 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError,
5916 R,
5917 >,
5918 ) -> Self {
5919 match err {
5920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5923 source: err.into(),
5924 }),
5925 }
5926 }
5927}
5928impl From<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError> for Error {
5929 fn from(err: crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError) -> Self {
5930 match err {
5931 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
5932 }
5933 }
5934}
5935impl<R>
5936 From<
5937 ::aws_smithy_runtime_api::client::result::SdkError<
5938 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
5939 R,
5940 >,
5941 > for Error
5942where
5943 R: Send + Sync + std::fmt::Debug + 'static,
5944{
5945 fn from(
5946 err: ::aws_smithy_runtime_api::client::result::SdkError<
5947 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
5948 R,
5949 >,
5950 ) -> Self {
5951 match err {
5952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5955 source: err.into(),
5956 }),
5957 }
5958 }
5959}
5960impl From<crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError> for Error {
5961 fn from(err: crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError) -> Self {
5962 match err {
5963 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError::Unhandled(inner) => {
5964 Error::Unhandled(inner)
5965 }
5966 }
5967 }
5968}
5969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
5970where
5971 R: Send + Sync + std::fmt::Debug + 'static,
5972{
5973 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
5974 match err {
5975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5978 source: err.into(),
5979 }),
5980 }
5981 }
5982}
5983impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
5984 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
5985 match err {
5986 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
5987 }
5988 }
5989}
5990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>> for Error
5991where
5992 R: Send + Sync + std::fmt::Debug + 'static,
5993{
5994 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>) -> Self {
5995 match err {
5996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5999 source: err.into(),
6000 }),
6001 }
6002 }
6003}
6004impl From<crate::operation::delete_vpc::DeleteVpcError> for Error {
6005 fn from(err: crate::operation::delete_vpc::DeleteVpcError) -> Self {
6006 match err {
6007 crate::operation::delete_vpc::DeleteVpcError::Unhandled(inner) => Error::Unhandled(inner),
6008 }
6009 }
6010}
6011impl<R>
6012 From<
6013 ::aws_smithy_runtime_api::client::result::SdkError<
6014 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6015 R,
6016 >,
6017 > for Error
6018where
6019 R: Send + Sync + std::fmt::Debug + 'static,
6020{
6021 fn from(
6022 err: ::aws_smithy_runtime_api::client::result::SdkError<
6023 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6024 R,
6025 >,
6026 ) -> Self {
6027 match err {
6028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6031 source: err.into(),
6032 }),
6033 }
6034 }
6035}
6036impl From<crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError> for Error {
6037 fn from(err: crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError) -> Self {
6038 match err {
6039 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
6040 Error::Unhandled(inner)
6041 }
6042 }
6043 }
6044}
6045impl<R>
6046 From<
6047 ::aws_smithy_runtime_api::client::result::SdkError<
6048 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6049 R,
6050 >,
6051 > for Error
6052where
6053 R: Send + Sync + std::fmt::Debug + 'static,
6054{
6055 fn from(
6056 err: ::aws_smithy_runtime_api::client::result::SdkError<
6057 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6058 R,
6059 >,
6060 ) -> Self {
6061 match err {
6062 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6063 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6064 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6065 source: err.into(),
6066 }),
6067 }
6068 }
6069}
6070impl From<crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError> for Error {
6071 fn from(err: crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError) -> Self {
6072 match err {
6073 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
6074 Error::Unhandled(inner)
6075 }
6076 }
6077 }
6078}
6079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>> for Error
6080where
6081 R: Send + Sync + std::fmt::Debug + 'static,
6082{
6083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>) -> Self {
6084 match err {
6085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6088 source: err.into(),
6089 }),
6090 }
6091 }
6092}
6093impl From<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError> for Error {
6094 fn from(err: crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError) -> Self {
6095 match err {
6096 crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6097 }
6098 }
6099}
6100impl<R>
6101 From<
6102 ::aws_smithy_runtime_api::client::result::SdkError<
6103 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6104 R,
6105 >,
6106 > for Error
6107where
6108 R: Send + Sync + std::fmt::Debug + 'static,
6109{
6110 fn from(
6111 err: ::aws_smithy_runtime_api::client::result::SdkError<
6112 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6113 R,
6114 >,
6115 ) -> Self {
6116 match err {
6117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6120 source: err.into(),
6121 }),
6122 }
6123 }
6124}
6125impl From<crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError> for Error {
6126 fn from(err: crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError) -> Self {
6127 match err {
6128 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
6129 Error::Unhandled(inner)
6130 }
6131 }
6132 }
6133}
6134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>>
6135 for Error
6136where
6137 R: Send + Sync + std::fmt::Debug + 'static,
6138{
6139 fn from(
6140 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>,
6141 ) -> 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_peering_connection::DeleteVpcPeeringConnectionError> for Error {
6152 fn from(err: crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError) -> Self {
6153 match err {
6154 crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6155 }
6156 }
6157}
6158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>> for Error
6159where
6160 R: Send + Sync + std::fmt::Debug + 'static,
6161{
6162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>) -> Self {
6163 match err {
6164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6167 source: err.into(),
6168 }),
6169 }
6170 }
6171}
6172impl From<crate::operation::delete_vpn_connection::DeleteVpnConnectionError> for Error {
6173 fn from(err: crate::operation::delete_vpn_connection::DeleteVpnConnectionError) -> Self {
6174 match err {
6175 crate::operation::delete_vpn_connection::DeleteVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6176 }
6177 }
6178}
6179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>>
6180 for Error
6181where
6182 R: Send + Sync + std::fmt::Debug + 'static,
6183{
6184 fn from(
6185 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>,
6186 ) -> Self {
6187 match err {
6188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6191 source: err.into(),
6192 }),
6193 }
6194 }
6195}
6196impl From<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError> for Error {
6197 fn from(err: crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError) -> Self {
6198 match err {
6199 crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
6200 }
6201 }
6202}
6203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>> for Error
6204where
6205 R: Send + Sync + std::fmt::Debug + 'static,
6206{
6207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>) -> 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_vpn_gateway::DeleteVpnGatewayError> for Error {
6218 fn from(err: crate::operation::delete_vpn_gateway::DeleteVpnGatewayError) -> Self {
6219 match err {
6220 crate::operation::delete_vpn_gateway::DeleteVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
6221 }
6222 }
6223}
6224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
6225where
6226 R: Send + Sync + std::fmt::Debug + 'static,
6227{
6228 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
6229 match err {
6230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6233 source: err.into(),
6234 }),
6235 }
6236 }
6237}
6238impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
6239 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
6240 match err {
6241 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
6242 }
6243 }
6244}
6245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>> for Error
6246where
6247 R: Send + Sync + std::fmt::Debug + 'static,
6248{
6249 fn from(
6250 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>,
6251 ) -> Self {
6252 match err {
6253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6256 source: err.into(),
6257 }),
6258 }
6259 }
6260}
6261impl From<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError> for Error {
6262 fn from(err: crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError) -> Self {
6263 match err {
6264 crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
6265 }
6266 }
6267}
6268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>>
6269 for Error
6270where
6271 R: Send + Sync + std::fmt::Debug + 'static,
6272{
6273 fn from(
6274 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>,
6275 ) -> Self {
6276 match err {
6277 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6278 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6279 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6280 source: err.into(),
6281 }),
6282 }
6283 }
6284}
6285impl From<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError> for Error {
6286 fn from(err: crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError) -> Self {
6287 match err {
6288 crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6289 }
6290 }
6291}
6292impl<R>
6293 From<
6294 ::aws_smithy_runtime_api::client::result::SdkError<
6295 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6296 R,
6297 >,
6298 > for Error
6299where
6300 R: Send + Sync + std::fmt::Debug + 'static,
6301{
6302 fn from(
6303 err: ::aws_smithy_runtime_api::client::result::SdkError<
6304 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6305 R,
6306 >,
6307 ) -> Self {
6308 match err {
6309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6312 source: err.into(),
6313 }),
6314 }
6315 }
6316}
6317impl From<crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError> for Error {
6318 fn from(err: crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError) -> Self {
6319 match err {
6320 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6321 }
6322 }
6323}
6324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>> for Error
6325where
6326 R: Send + Sync + std::fmt::Debug + 'static,
6327{
6328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>) -> Self {
6329 match err {
6330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6333 source: err.into(),
6334 }),
6335 }
6336 }
6337}
6338impl From<crate::operation::deregister_image::DeregisterImageError> for Error {
6339 fn from(err: crate::operation::deregister_image::DeregisterImageError) -> Self {
6340 match err {
6341 crate::operation::deregister_image::DeregisterImageError::Unhandled(inner) => Error::Unhandled(inner),
6342 }
6343 }
6344}
6345impl<R>
6346 From<
6347 ::aws_smithy_runtime_api::client::result::SdkError<
6348 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6349 R,
6350 >,
6351 > for Error
6352where
6353 R: Send + Sync + std::fmt::Debug + 'static,
6354{
6355 fn from(
6356 err: ::aws_smithy_runtime_api::client::result::SdkError<
6357 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6358 R,
6359 >,
6360 ) -> Self {
6361 match err {
6362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6365 source: err.into(),
6366 }),
6367 }
6368 }
6369}
6370impl From<crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError> for Error {
6371 fn from(err: crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError) -> Self {
6372 match err {
6373 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError::Unhandled(
6374 inner,
6375 ) => Error::Unhandled(inner),
6376 }
6377 }
6378}
6379impl<R>
6380 From<
6381 ::aws_smithy_runtime_api::client::result::SdkError<
6382 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6383 R,
6384 >,
6385 > for Error
6386where
6387 R: Send + Sync + std::fmt::Debug + 'static,
6388{
6389 fn from(
6390 err: ::aws_smithy_runtime_api::client::result::SdkError<
6391 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6392 R,
6393 >,
6394 ) -> Self {
6395 match err {
6396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6399 source: err.into(),
6400 }),
6401 }
6402 }
6403}
6404impl From<crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError> for Error {
6405 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError) -> Self {
6406 match err {
6407 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError::Unhandled(
6408 inner,
6409 ) => Error::Unhandled(inner),
6410 }
6411 }
6412}
6413impl<R>
6414 From<
6415 ::aws_smithy_runtime_api::client::result::SdkError<
6416 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6417 R,
6418 >,
6419 > for Error
6420where
6421 R: Send + Sync + std::fmt::Debug + 'static,
6422{
6423 fn from(
6424 err: ::aws_smithy_runtime_api::client::result::SdkError<
6425 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6426 R,
6427 >,
6428 ) -> Self {
6429 match err {
6430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6433 source: err.into(),
6434 }),
6435 }
6436 }
6437}
6438impl From<crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError> for Error {
6439 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError) -> Self {
6440 match err {
6441 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError::Unhandled(
6442 inner,
6443 ) => Error::Unhandled(inner),
6444 }
6445 }
6446}
6447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
6448 for Error
6449where
6450 R: Send + Sync + std::fmt::Debug + 'static,
6451{
6452 fn from(
6453 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
6454 ) -> Self {
6455 match err {
6456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6459 source: err.into(),
6460 }),
6461 }
6462 }
6463}
6464impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
6465 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
6466 match err {
6467 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
6468 }
6469 }
6470}
6471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>> for Error
6472where
6473 R: Send + Sync + std::fmt::Debug + 'static,
6474{
6475 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>) -> Self {
6476 match err {
6477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6480 source: err.into(),
6481 }),
6482 }
6483 }
6484}
6485impl From<crate::operation::describe_addresses::DescribeAddressesError> for Error {
6486 fn from(err: crate::operation::describe_addresses::DescribeAddressesError) -> Self {
6487 match err {
6488 crate::operation::describe_addresses::DescribeAddressesError::Unhandled(inner) => Error::Unhandled(inner),
6489 }
6490 }
6491}
6492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>>
6493 for Error
6494where
6495 R: Send + Sync + std::fmt::Debug + 'static,
6496{
6497 fn from(
6498 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>,
6499 ) -> Self {
6500 match err {
6501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6504 source: err.into(),
6505 }),
6506 }
6507 }
6508}
6509impl From<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError> for Error {
6510 fn from(err: crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError) -> Self {
6511 match err {
6512 crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError::Unhandled(inner) => Error::Unhandled(inner),
6513 }
6514 }
6515}
6516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>>
6517 for Error
6518where
6519 R: Send + Sync + std::fmt::Debug + 'static,
6520{
6521 fn from(
6522 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>,
6523 ) -> Self {
6524 match err {
6525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6528 source: err.into(),
6529 }),
6530 }
6531 }
6532}
6533impl From<crate::operation::describe_address_transfers::DescribeAddressTransfersError> for Error {
6534 fn from(err: crate::operation::describe_address_transfers::DescribeAddressTransfersError) -> Self {
6535 match err {
6536 crate::operation::describe_address_transfers::DescribeAddressTransfersError::Unhandled(inner) => Error::Unhandled(inner),
6537 }
6538 }
6539}
6540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>>
6541 for Error
6542where
6543 R: Send + Sync + std::fmt::Debug + 'static,
6544{
6545 fn from(
6546 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>,
6547 ) -> Self {
6548 match err {
6549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6552 source: err.into(),
6553 }),
6554 }
6555 }
6556}
6557impl From<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError> for Error {
6558 fn from(err: crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError) -> Self {
6559 match err {
6560 crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
6561 }
6562 }
6563}
6564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>>
6565 for Error
6566where
6567 R: Send + Sync + std::fmt::Debug + 'static,
6568{
6569 fn from(
6570 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>,
6571 ) -> Self {
6572 match err {
6573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6576 source: err.into(),
6577 }),
6578 }
6579 }
6580}
6581impl From<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError> for Error {
6582 fn from(err: crate::operation::describe_availability_zones::DescribeAvailabilityZonesError) -> Self {
6583 match err {
6584 crate::operation::describe_availability_zones::DescribeAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
6585 }
6586 }
6587}
6588impl<R>
6589 From<
6590 ::aws_smithy_runtime_api::client::result::SdkError<
6591 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6592 R,
6593 >,
6594 > for Error
6595where
6596 R: Send + Sync + std::fmt::Debug + 'static,
6597{
6598 fn from(
6599 err: ::aws_smithy_runtime_api::client::result::SdkError<
6600 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6601 R,
6602 >,
6603 ) -> Self {
6604 match err {
6605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6608 source: err.into(),
6609 }),
6610 }
6611 }
6612}
6613impl From<crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError> for Error {
6614 fn from(
6615 err: crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6616 ) -> Self {
6617 match err {
6618 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
6619 }
6620 }
6621}
6622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>> for Error
6623where
6624 R: Send + Sync + std::fmt::Debug + 'static,
6625{
6626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>) -> Self {
6627 match err {
6628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6631 source: err.into(),
6632 }),
6633 }
6634 }
6635}
6636impl From<crate::operation::describe_bundle_tasks::DescribeBundleTasksError> for Error {
6637 fn from(err: crate::operation::describe_bundle_tasks::DescribeBundleTasksError) -> Self {
6638 match err {
6639 crate::operation::describe_bundle_tasks::DescribeBundleTasksError::Unhandled(inner) => Error::Unhandled(inner),
6640 }
6641 }
6642}
6643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>> for Error
6644where
6645 R: Send + Sync + std::fmt::Debug + 'static,
6646{
6647 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>) -> Self {
6648 match err {
6649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6652 source: err.into(),
6653 }),
6654 }
6655 }
6656}
6657impl From<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError> for Error {
6658 fn from(err: crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError) -> Self {
6659 match err {
6660 crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
6661 }
6662 }
6663}
6664impl<R>
6665 From<
6666 ::aws_smithy_runtime_api::client::result::SdkError<
6667 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6668 R,
6669 >,
6670 > for Error
6671where
6672 R: Send + Sync + std::fmt::Debug + 'static,
6673{
6674 fn from(
6675 err: ::aws_smithy_runtime_api::client::result::SdkError<
6676 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6677 R,
6678 >,
6679 ) -> Self {
6680 match err {
6681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6684 source: err.into(),
6685 }),
6686 }
6687 }
6688}
6689impl From<crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError> for Error {
6690 fn from(err: crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError) -> Self {
6691 match err {
6692 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError::Unhandled(inner) => {
6693 Error::Unhandled(inner)
6694 }
6695 }
6696 }
6697}
6698impl<R>
6699 From<
6700 ::aws_smithy_runtime_api::client::result::SdkError<
6701 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6702 R,
6703 >,
6704 > for Error
6705where
6706 R: Send + Sync + std::fmt::Debug + 'static,
6707{
6708 fn from(
6709 err: ::aws_smithy_runtime_api::client::result::SdkError<
6710 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6711 R,
6712 >,
6713 ) -> Self {
6714 match err {
6715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6718 source: err.into(),
6719 }),
6720 }
6721 }
6722}
6723impl From<crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError> for Error {
6724 fn from(err: crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError) -> Self {
6725 match err {
6726 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError::Unhandled(inner) => {
6727 Error::Unhandled(inner)
6728 }
6729 }
6730 }
6731}
6732impl<R>
6733 From<
6734 ::aws_smithy_runtime_api::client::result::SdkError<
6735 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6736 R,
6737 >,
6738 > for Error
6739where
6740 R: Send + Sync + std::fmt::Debug + 'static,
6741{
6742 fn from(
6743 err: ::aws_smithy_runtime_api::client::result::SdkError<
6744 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6745 R,
6746 >,
6747 ) -> Self {
6748 match err {
6749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6752 source: err.into(),
6753 }),
6754 }
6755 }
6756}
6757impl From<crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError> for Error {
6758 fn from(err: crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError) -> Self {
6759 match err {
6760 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
6761 }
6762 }
6763}
6764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>> for Error
6765where
6766 R: Send + Sync + std::fmt::Debug + 'static,
6767{
6768 fn from(
6769 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>,
6770 ) -> Self {
6771 match err {
6772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6775 source: err.into(),
6776 }),
6777 }
6778 }
6779}
6780impl From<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError> for Error {
6781 fn from(err: crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError) -> Self {
6782 match err {
6783 crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError::Unhandled(inner) => Error::Unhandled(inner),
6784 }
6785 }
6786}
6787impl<R>
6788 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError, R>>
6789 for Error
6790where
6791 R: Send + Sync + std::fmt::Debug + 'static,
6792{
6793 fn from(
6794 err: ::aws_smithy_runtime_api::client::result::SdkError<
6795 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError,
6796 R,
6797 >,
6798 ) -> Self {
6799 match err {
6800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6803 source: err.into(),
6804 }),
6805 }
6806 }
6807}
6808impl From<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError> for Error {
6809 fn from(err: crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError) -> Self {
6810 match err {
6811 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError::Unhandled(inner) => Error::Unhandled(inner),
6812 }
6813 }
6814}
6815impl<R>
6816 From<
6817 ::aws_smithy_runtime_api::client::result::SdkError<
6818 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6819 R,
6820 >,
6821 > for Error
6822where
6823 R: Send + Sync + std::fmt::Debug + 'static,
6824{
6825 fn from(
6826 err: ::aws_smithy_runtime_api::client::result::SdkError<
6827 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6828 R,
6829 >,
6830 ) -> Self {
6831 match err {
6832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6835 source: err.into(),
6836 }),
6837 }
6838 }
6839}
6840impl From<crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError> for Error {
6841 fn from(err: crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError) -> Self {
6842 match err {
6843 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError::Unhandled(inner) => {
6844 Error::Unhandled(inner)
6845 }
6846 }
6847 }
6848}
6849impl<R>
6850 From<
6851 ::aws_smithy_runtime_api::client::result::SdkError<
6852 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
6853 R,
6854 >,
6855 > for Error
6856where
6857 R: Send + Sync + std::fmt::Debug + 'static,
6858{
6859 fn from(
6860 err: ::aws_smithy_runtime_api::client::result::SdkError<
6861 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
6862 R,
6863 >,
6864 ) -> Self {
6865 match err {
6866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6869 source: err.into(),
6870 }),
6871 }
6872 }
6873}
6874impl From<crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError> for Error {
6875 fn from(err: crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError) -> Self {
6876 match err {
6877 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError::Unhandled(inner) => {
6878 Error::Unhandled(inner)
6879 }
6880 }
6881 }
6882}
6883impl<R>
6884 From<
6885 ::aws_smithy_runtime_api::client::result::SdkError<
6886 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
6887 R,
6888 >,
6889 > for Error
6890where
6891 R: Send + Sync + std::fmt::Debug + 'static,
6892{
6893 fn from(
6894 err: ::aws_smithy_runtime_api::client::result::SdkError<
6895 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
6896 R,
6897 >,
6898 ) -> Self {
6899 match err {
6900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6903 source: err.into(),
6904 }),
6905 }
6906 }
6907}
6908impl From<crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError> for Error {
6909 fn from(err: crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError) -> Self {
6910 match err {
6911 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError::Unhandled(inner) => {
6912 Error::Unhandled(inner)
6913 }
6914 }
6915 }
6916}
6917impl<R>
6918 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError, R>>
6919 for Error
6920where
6921 R: Send + Sync + std::fmt::Debug + 'static,
6922{
6923 fn from(
6924 err: ::aws_smithy_runtime_api::client::result::SdkError<
6925 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError,
6926 R,
6927 >,
6928 ) -> Self {
6929 match err {
6930 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6931 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6932 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6933 source: err.into(),
6934 }),
6935 }
6936 }
6937}
6938impl From<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError> for Error {
6939 fn from(err: crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError) -> Self {
6940 match err {
6941 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError::Unhandled(inner) => Error::Unhandled(inner),
6942 }
6943 }
6944}
6945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>>
6946 for Error
6947where
6948 R: Send + Sync + std::fmt::Debug + 'static,
6949{
6950 fn from(
6951 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>,
6952 ) -> Self {
6953 match err {
6954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6957 source: err.into(),
6958 }),
6959 }
6960 }
6961}
6962impl From<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError> for Error {
6963 fn from(err: crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError) -> Self {
6964 match err {
6965 crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
6966 }
6967 }
6968}
6969impl<R>
6970 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError, R>>
6971 for Error
6972where
6973 R: Send + Sync + std::fmt::Debug + 'static,
6974{
6975 fn from(
6976 err: ::aws_smithy_runtime_api::client::result::SdkError<
6977 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError,
6978 R,
6979 >,
6980 ) -> Self {
6981 match err {
6982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6985 source: err.into(),
6986 }),
6987 }
6988 }
6989}
6990impl From<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError> for Error {
6991 fn from(err: crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError) -> Self {
6992 match err {
6993 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError::Unhandled(inner) => Error::Unhandled(inner),
6994 }
6995 }
6996}
6997impl<R>
6998 From<
6999 ::aws_smithy_runtime_api::client::result::SdkError<
7000 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7001 R,
7002 >,
7003 > for Error
7004where
7005 R: Send + Sync + std::fmt::Debug + 'static,
7006{
7007 fn from(
7008 err: ::aws_smithy_runtime_api::client::result::SdkError<
7009 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7010 R,
7011 >,
7012 ) -> Self {
7013 match err {
7014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7017 source: err.into(),
7018 }),
7019 }
7020 }
7021}
7022impl From<crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError> for Error {
7023 fn from(err: crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError) -> Self {
7024 match err {
7025 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError::Unhandled(inner) => {
7026 Error::Unhandled(inner)
7027 }
7028 }
7029 }
7030}
7031impl<R>
7032 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError, R>>
7033 for Error
7034where
7035 R: Send + Sync + std::fmt::Debug + 'static,
7036{
7037 fn from(
7038 err: ::aws_smithy_runtime_api::client::result::SdkError<
7039 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError,
7040 R,
7041 >,
7042 ) -> Self {
7043 match err {
7044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7047 source: err.into(),
7048 }),
7049 }
7050 }
7051}
7052impl From<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError> for Error {
7053 fn from(err: crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError) -> Self {
7054 match err {
7055 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
7056 }
7057 }
7058}
7059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>>
7060 for Error
7061where
7062 R: Send + Sync + std::fmt::Debug + 'static,
7063{
7064 fn from(
7065 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>,
7066 ) -> Self {
7067 match err {
7068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7071 source: err.into(),
7072 }),
7073 }
7074 }
7075}
7076impl From<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError> for Error {
7077 fn from(err: crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError) -> Self {
7078 match err {
7079 crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7080 }
7081 }
7082}
7083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>>
7084 for Error
7085where
7086 R: Send + Sync + std::fmt::Debug + 'static,
7087{
7088 fn from(
7089 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>,
7090 ) -> Self {
7091 match err {
7092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7095 source: err.into(),
7096 }),
7097 }
7098 }
7099}
7100impl From<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError> for Error {
7101 fn from(err: crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError) -> Self {
7102 match err {
7103 crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError::Unhandled(inner) => Error::Unhandled(inner),
7104 }
7105 }
7106}
7107impl<R>
7108 From<
7109 ::aws_smithy_runtime_api::client::result::SdkError<
7110 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7111 R,
7112 >,
7113 > for Error
7114where
7115 R: Send + Sync + std::fmt::Debug + 'static,
7116{
7117 fn from(
7118 err: ::aws_smithy_runtime_api::client::result::SdkError<
7119 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7120 R,
7121 >,
7122 ) -> Self {
7123 match err {
7124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7127 source: err.into(),
7128 }),
7129 }
7130 }
7131}
7132impl From<crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError> for Error {
7133 fn from(err: crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError) -> Self {
7134 match err {
7135 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError::Unhandled(inner) => Error::Unhandled(inner),
7136 }
7137 }
7138}
7139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>> for Error
7140where
7141 R: Send + Sync + std::fmt::Debug + 'static,
7142{
7143 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>) -> Self {
7144 match err {
7145 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7146 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7147 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7148 source: err.into(),
7149 }),
7150 }
7151 }
7152}
7153impl From<crate::operation::describe_coip_pools::DescribeCoipPoolsError> for Error {
7154 fn from(err: crate::operation::describe_coip_pools::DescribeCoipPoolsError) -> Self {
7155 match err {
7156 crate::operation::describe_coip_pools::DescribeCoipPoolsError::Unhandled(inner) => Error::Unhandled(inner),
7157 }
7158 }
7159}
7160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>>
7161 for Error
7162where
7163 R: Send + Sync + std::fmt::Debug + 'static,
7164{
7165 fn from(
7166 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>,
7167 ) -> Self {
7168 match err {
7169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7172 source: err.into(),
7173 }),
7174 }
7175 }
7176}
7177impl From<crate::operation::describe_conversion_tasks::DescribeConversionTasksError> for Error {
7178 fn from(err: crate::operation::describe_conversion_tasks::DescribeConversionTasksError) -> Self {
7179 match err {
7180 crate::operation::describe_conversion_tasks::DescribeConversionTasksError::Unhandled(inner) => Error::Unhandled(inner),
7181 }
7182 }
7183}
7184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>>
7185 for Error
7186where
7187 R: Send + Sync + std::fmt::Debug + 'static,
7188{
7189 fn from(
7190 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>,
7191 ) -> Self {
7192 match err {
7193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7196 source: err.into(),
7197 }),
7198 }
7199 }
7200}
7201impl From<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError> for Error {
7202 fn from(err: crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError) -> Self {
7203 match err {
7204 crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7205 }
7206 }
7207}
7208impl<R>
7209 From<
7210 ::aws_smithy_runtime_api::client::result::SdkError<
7211 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7212 R,
7213 >,
7214 > for Error
7215where
7216 R: Send + Sync + std::fmt::Debug + 'static,
7217{
7218 fn from(
7219 err: ::aws_smithy_runtime_api::client::result::SdkError<
7220 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7221 R,
7222 >,
7223 ) -> Self {
7224 match err {
7225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7228 source: err.into(),
7229 }),
7230 }
7231 }
7232}
7233impl From<crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError> for Error {
7234 fn from(err: crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError) -> Self {
7235 match err {
7236 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError::Unhandled(inner) => {
7237 Error::Unhandled(inner)
7238 }
7239 }
7240 }
7241}
7242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>> for Error
7243where
7244 R: Send + Sync + std::fmt::Debug + 'static,
7245{
7246 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>) -> 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_dhcp_options::DescribeDhcpOptionsError> for Error {
7257 fn from(err: crate::operation::describe_dhcp_options::DescribeDhcpOptionsError) -> Self {
7258 match err {
7259 crate::operation::describe_dhcp_options::DescribeDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7260 }
7261 }
7262}
7263impl<R>
7264 From<
7265 ::aws_smithy_runtime_api::client::result::SdkError<
7266 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7267 R,
7268 >,
7269 > for Error
7270where
7271 R: Send + Sync + std::fmt::Debug + 'static,
7272{
7273 fn from(
7274 err: ::aws_smithy_runtime_api::client::result::SdkError<
7275 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7276 R,
7277 >,
7278 ) -> Self {
7279 match err {
7280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7283 source: err.into(),
7284 }),
7285 }
7286 }
7287}
7288impl From<crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError> for Error {
7289 fn from(err: crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError) -> Self {
7290 match err {
7291 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError::Unhandled(inner) => {
7292 Error::Unhandled(inner)
7293 }
7294 }
7295 }
7296}
7297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>> for Error
7298where
7299 R: Send + Sync + std::fmt::Debug + 'static,
7300{
7301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>) -> Self {
7302 match err {
7303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7306 source: err.into(),
7307 }),
7308 }
7309 }
7310}
7311impl From<crate::operation::describe_elastic_gpus::DescribeElasticGpusError> for Error {
7312 fn from(err: crate::operation::describe_elastic_gpus::DescribeElasticGpusError) -> Self {
7313 match err {
7314 crate::operation::describe_elastic_gpus::DescribeElasticGpusError::Unhandled(inner) => Error::Unhandled(inner),
7315 }
7316 }
7317}
7318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>>
7319 for Error
7320where
7321 R: Send + Sync + std::fmt::Debug + 'static,
7322{
7323 fn from(
7324 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>,
7325 ) -> Self {
7326 match err {
7327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7330 source: err.into(),
7331 }),
7332 }
7333 }
7334}
7335impl From<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError> for Error {
7336 fn from(err: crate::operation::describe_export_image_tasks::DescribeExportImageTasksError) -> Self {
7337 match err {
7338 crate::operation::describe_export_image_tasks::DescribeExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7339 }
7340 }
7341}
7342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
7343where
7344 R: Send + Sync + std::fmt::Debug + 'static,
7345{
7346 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
7347 match err {
7348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7351 source: err.into(),
7352 }),
7353 }
7354 }
7355}
7356impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
7357 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
7358 match err {
7359 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
7360 }
7361 }
7362}
7363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>>
7364 for Error
7365where
7366 R: Send + Sync + std::fmt::Debug + 'static,
7367{
7368 fn from(
7369 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>,
7370 ) -> Self {
7371 match err {
7372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7375 source: err.into(),
7376 }),
7377 }
7378 }
7379}
7380impl From<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError> for Error {
7381 fn from(err: crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError) -> Self {
7382 match err {
7383 crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError::Unhandled(inner) => Error::Unhandled(inner),
7384 }
7385 }
7386}
7387impl<R>
7388 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError, 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<
7395 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError,
7396 R,
7397 >,
7398 ) -> Self {
7399 match err {
7400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7403 source: err.into(),
7404 }),
7405 }
7406 }
7407}
7408impl From<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError> for Error {
7409 fn from(err: crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError) -> Self {
7410 match err {
7411 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
7412 }
7413 }
7414}
7415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>> for Error
7416where
7417 R: Send + Sync + std::fmt::Debug + 'static,
7418{
7419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>) -> Self {
7420 match err {
7421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7424 source: err.into(),
7425 }),
7426 }
7427 }
7428}
7429impl From<crate::operation::describe_fleet_history::DescribeFleetHistoryError> for Error {
7430 fn from(err: crate::operation::describe_fleet_history::DescribeFleetHistoryError) -> Self {
7431 match err {
7432 crate::operation::describe_fleet_history::DescribeFleetHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7433 }
7434 }
7435}
7436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>> for Error
7437where
7438 R: Send + Sync + std::fmt::Debug + 'static,
7439{
7440 fn from(
7441 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>,
7442 ) -> Self {
7443 match err {
7444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7447 source: err.into(),
7448 }),
7449 }
7450 }
7451}
7452impl From<crate::operation::describe_fleet_instances::DescribeFleetInstancesError> for Error {
7453 fn from(err: crate::operation::describe_fleet_instances::DescribeFleetInstancesError) -> Self {
7454 match err {
7455 crate::operation::describe_fleet_instances::DescribeFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7456 }
7457 }
7458}
7459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
7460where
7461 R: Send + Sync + std::fmt::Debug + 'static,
7462{
7463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
7464 match err {
7465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7468 source: err.into(),
7469 }),
7470 }
7471 }
7472}
7473impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
7474 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
7475 match err {
7476 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
7477 }
7478 }
7479}
7480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>> for Error
7481where
7482 R: Send + Sync + std::fmt::Debug + 'static,
7483{
7484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>) -> Self {
7485 match err {
7486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7489 source: err.into(),
7490 }),
7491 }
7492 }
7493}
7494impl From<crate::operation::describe_flow_logs::DescribeFlowLogsError> for Error {
7495 fn from(err: crate::operation::describe_flow_logs::DescribeFlowLogsError) -> Self {
7496 match err {
7497 crate::operation::describe_flow_logs::DescribeFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
7498 }
7499 }
7500}
7501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>>
7502 for Error
7503where
7504 R: Send + Sync + std::fmt::Debug + 'static,
7505{
7506 fn from(
7507 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>,
7508 ) -> Self {
7509 match err {
7510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7513 source: err.into(),
7514 }),
7515 }
7516 }
7517}
7518impl From<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError> for Error {
7519 fn from(err: crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError) -> Self {
7520 match err {
7521 crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7522 }
7523 }
7524}
7525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>> for Error
7526where
7527 R: Send + Sync + std::fmt::Debug + 'static,
7528{
7529 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>) -> 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_fpga_images::DescribeFpgaImagesError> for Error {
7540 fn from(err: crate::operation::describe_fpga_images::DescribeFpgaImagesError) -> Self {
7541 match err {
7542 crate::operation::describe_fpga_images::DescribeFpgaImagesError::Unhandled(inner) => Error::Unhandled(inner),
7543 }
7544 }
7545}
7546impl<R>
7547 From<
7548 ::aws_smithy_runtime_api::client::result::SdkError<
7549 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7550 R,
7551 >,
7552 > for Error
7553where
7554 R: Send + Sync + std::fmt::Debug + 'static,
7555{
7556 fn from(
7557 err: ::aws_smithy_runtime_api::client::result::SdkError<
7558 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7559 R,
7560 >,
7561 ) -> Self {
7562 match err {
7563 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7564 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7565 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7566 source: err.into(),
7567 }),
7568 }
7569 }
7570}
7571impl From<crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError> for Error {
7572 fn from(err: crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError) -> Self {
7573 match err {
7574 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7575 }
7576 }
7577}
7578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>>
7579 for Error
7580where
7581 R: Send + Sync + std::fmt::Debug + 'static,
7582{
7583 fn from(
7584 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>,
7585 ) -> Self {
7586 match err {
7587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7590 source: err.into(),
7591 }),
7592 }
7593 }
7594}
7595impl From<crate::operation::describe_host_reservations::DescribeHostReservationsError> for Error {
7596 fn from(err: crate::operation::describe_host_reservations::DescribeHostReservationsError) -> Self {
7597 match err {
7598 crate::operation::describe_host_reservations::DescribeHostReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7599 }
7600 }
7601}
7602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>> for Error
7603where
7604 R: Send + Sync + std::fmt::Debug + 'static,
7605{
7606 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>) -> Self {
7607 match err {
7608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7611 source: err.into(),
7612 }),
7613 }
7614 }
7615}
7616impl From<crate::operation::describe_hosts::DescribeHostsError> for Error {
7617 fn from(err: crate::operation::describe_hosts::DescribeHostsError) -> Self {
7618 match err {
7619 crate::operation::describe_hosts::DescribeHostsError::Unhandled(inner) => Error::Unhandled(inner),
7620 }
7621 }
7622}
7623impl<R>
7624 From<
7625 ::aws_smithy_runtime_api::client::result::SdkError<
7626 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7627 R,
7628 >,
7629 > for Error
7630where
7631 R: Send + Sync + std::fmt::Debug + 'static,
7632{
7633 fn from(
7634 err: ::aws_smithy_runtime_api::client::result::SdkError<
7635 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7636 R,
7637 >,
7638 ) -> Self {
7639 match err {
7640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7643 source: err.into(),
7644 }),
7645 }
7646 }
7647}
7648impl From<crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError> for Error {
7649 fn from(err: crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError) -> Self {
7650 match err {
7651 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError::Unhandled(inner) => {
7652 Error::Unhandled(inner)
7653 }
7654 }
7655 }
7656}
7657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>>
7658 for Error
7659where
7660 R: Send + Sync + std::fmt::Debug + 'static,
7661{
7662 fn from(
7663 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>,
7664 ) -> Self {
7665 match err {
7666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7669 source: err.into(),
7670 }),
7671 }
7672 }
7673}
7674impl From<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError> for Error {
7675 fn from(err: crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError) -> Self {
7676 match err {
7677 crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7678 }
7679 }
7680}
7681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>> for Error
7682where
7683 R: Send + Sync + std::fmt::Debug + 'static,
7684{
7685 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>) -> Self {
7686 match err {
7687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7690 source: err.into(),
7691 }),
7692 }
7693 }
7694}
7695impl From<crate::operation::describe_id_format::DescribeIdFormatError> for Error {
7696 fn from(err: crate::operation::describe_id_format::DescribeIdFormatError) -> Self {
7697 match err {
7698 crate::operation::describe_id_format::DescribeIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7699 }
7700 }
7701}
7702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>> for Error
7703where
7704 R: Send + Sync + std::fmt::Debug + 'static,
7705{
7706 fn from(
7707 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>,
7708 ) -> Self {
7709 match err {
7710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7713 source: err.into(),
7714 }),
7715 }
7716 }
7717}
7718impl From<crate::operation::describe_image_attribute::DescribeImageAttributeError> for Error {
7719 fn from(err: crate::operation::describe_image_attribute::DescribeImageAttributeError) -> Self {
7720 match err {
7721 crate::operation::describe_image_attribute::DescribeImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7722 }
7723 }
7724}
7725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>>
7726 for Error
7727where
7728 R: Send + Sync + std::fmt::Debug + 'static,
7729{
7730 fn from(
7731 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>,
7732 ) -> Self {
7733 match err {
7734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7737 source: err.into(),
7738 }),
7739 }
7740 }
7741}
7742impl From<crate::operation::describe_image_references::DescribeImageReferencesError> for Error {
7743 fn from(err: crate::operation::describe_image_references::DescribeImageReferencesError) -> Self {
7744 match err {
7745 crate::operation::describe_image_references::DescribeImageReferencesError::Unhandled(inner) => Error::Unhandled(inner),
7746 }
7747 }
7748}
7749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
7750where
7751 R: Send + Sync + std::fmt::Debug + 'static,
7752{
7753 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
7754 match err {
7755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7758 source: err.into(),
7759 }),
7760 }
7761 }
7762}
7763impl From<crate::operation::describe_images::DescribeImagesError> for Error {
7764 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
7765 match err {
7766 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
7767 }
7768 }
7769}
7770impl<R>
7771 From<
7772 ::aws_smithy_runtime_api::client::result::SdkError<
7773 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7774 R,
7775 >,
7776 > for Error
7777where
7778 R: Send + Sync + std::fmt::Debug + 'static,
7779{
7780 fn from(
7781 err: ::aws_smithy_runtime_api::client::result::SdkError<
7782 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7783 R,
7784 >,
7785 ) -> Self {
7786 match err {
7787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7790 source: err.into(),
7791 }),
7792 }
7793 }
7794}
7795impl From<crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError> for Error {
7796 fn from(err: crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError) -> Self {
7797 match err {
7798 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError::Unhandled(inner) => Error::Unhandled(inner),
7799 }
7800 }
7801}
7802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>>
7803 for Error
7804where
7805 R: Send + Sync + std::fmt::Debug + 'static,
7806{
7807 fn from(
7808 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>,
7809 ) -> Self {
7810 match err {
7811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7814 source: err.into(),
7815 }),
7816 }
7817 }
7818}
7819impl From<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError> for Error {
7820 fn from(err: crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError) -> Self {
7821 match err {
7822 crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError::Unhandled(inner) => Error::Unhandled(inner),
7823 }
7824 }
7825}
7826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>>
7827 for Error
7828where
7829 R: Send + Sync + std::fmt::Debug + 'static,
7830{
7831 fn from(
7832 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>,
7833 ) -> Self {
7834 match err {
7835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7838 source: err.into(),
7839 }),
7840 }
7841 }
7842}
7843impl From<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError> for Error {
7844 fn from(err: crate::operation::describe_import_image_tasks::DescribeImportImageTasksError) -> Self {
7845 match err {
7846 crate::operation::describe_import_image_tasks::DescribeImportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7847 }
7848 }
7849}
7850impl<R>
7851 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError, R>>
7852 for Error
7853where
7854 R: Send + Sync + std::fmt::Debug + 'static,
7855{
7856 fn from(
7857 err: ::aws_smithy_runtime_api::client::result::SdkError<
7858 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError,
7859 R,
7860 >,
7861 ) -> Self {
7862 match err {
7863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7866 source: err.into(),
7867 }),
7868 }
7869 }
7870}
7871impl From<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError> for Error {
7872 fn from(err: crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError) -> Self {
7873 match err {
7874 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError::Unhandled(inner) => Error::Unhandled(inner),
7875 }
7876 }
7877}
7878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
7879 for Error
7880where
7881 R: Send + Sync + std::fmt::Debug + 'static,
7882{
7883 fn from(
7884 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
7885 ) -> Self {
7886 match err {
7887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7890 source: err.into(),
7891 }),
7892 }
7893 }
7894}
7895impl From<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError> for Error {
7896 fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
7897 match err {
7898 crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7899 }
7900 }
7901}
7902impl<R>
7903 From<
7904 ::aws_smithy_runtime_api::client::result::SdkError<
7905 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
7906 R,
7907 >,
7908 > for Error
7909where
7910 R: Send + Sync + std::fmt::Debug + 'static,
7911{
7912 fn from(
7913 err: ::aws_smithy_runtime_api::client::result::SdkError<
7914 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
7915 R,
7916 >,
7917 ) -> Self {
7918 match err {
7919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7922 source: err.into(),
7923 }),
7924 }
7925 }
7926}
7927impl From<crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError> for Error {
7928 fn from(err: crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError) -> Self {
7929 match err {
7930 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7931 }
7932 }
7933}
7934impl<R>
7935 From<
7936 ::aws_smithy_runtime_api::client::result::SdkError<
7937 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
7938 R,
7939 >,
7940 > for Error
7941where
7942 R: Send + Sync + std::fmt::Debug + 'static,
7943{
7944 fn from(
7945 err: ::aws_smithy_runtime_api::client::result::SdkError<
7946 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
7947 R,
7948 >,
7949 ) -> Self {
7950 match err {
7951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7954 source: err.into(),
7955 }),
7956 }
7957 }
7958}
7959impl From<crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError> for Error {
7960 fn from(err: crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError) -> Self {
7961 match err {
7962 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError::Unhandled(inner) => {
7963 Error::Unhandled(inner)
7964 }
7965 }
7966 }
7967}
7968impl<R>
7969 From<
7970 ::aws_smithy_runtime_api::client::result::SdkError<
7971 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
7972 R,
7973 >,
7974 > for Error
7975where
7976 R: Send + Sync + std::fmt::Debug + 'static,
7977{
7978 fn from(
7979 err: ::aws_smithy_runtime_api::client::result::SdkError<
7980 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
7981 R,
7982 >,
7983 ) -> Self {
7984 match err {
7985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7988 source: err.into(),
7989 }),
7990 }
7991 }
7992}
7993impl From<crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError> for Error {
7994 fn from(err: crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError) -> Self {
7995 match err {
7996 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError::Unhandled(inner) => {
7997 Error::Unhandled(inner)
7998 }
7999 }
8000 }
8001}
8002impl<R>
8003 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError, R>>
8004 for Error
8005where
8006 R: Send + Sync + std::fmt::Debug + 'static,
8007{
8008 fn from(
8009 err: ::aws_smithy_runtime_api::client::result::SdkError<
8010 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError,
8011 R,
8012 >,
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_instance_event_windows::DescribeInstanceEventWindowsError> for Error {
8024 fn from(err: crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError) -> Self {
8025 match err {
8026 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError::Unhandled(inner) => Error::Unhandled(inner),
8027 }
8028 }
8029}
8030impl<R>
8031 From<
8032 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError, R>,
8033 > for Error
8034where
8035 R: Send + Sync + std::fmt::Debug + 'static,
8036{
8037 fn from(
8038 err: ::aws_smithy_runtime_api::client::result::SdkError<
8039 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError,
8040 R,
8041 >,
8042 ) -> Self {
8043 match err {
8044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8047 source: err.into(),
8048 }),
8049 }
8050 }
8051}
8052impl From<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError> for Error {
8053 fn from(err: crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError) -> Self {
8054 match err {
8055 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8056 }
8057 }
8058}
8059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>> for Error
8060where
8061 R: Send + Sync + std::fmt::Debug + 'static,
8062{
8063 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>) -> Self {
8064 match err {
8065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8068 source: err.into(),
8069 }),
8070 }
8071 }
8072}
8073impl From<crate::operation::describe_instances::DescribeInstancesError> for Error {
8074 fn from(err: crate::operation::describe_instances::DescribeInstancesError) -> Self {
8075 match err {
8076 crate::operation::describe_instances::DescribeInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8077 }
8078 }
8079}
8080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>> for Error
8081where
8082 R: Send + Sync + std::fmt::Debug + 'static,
8083{
8084 fn from(
8085 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>,
8086 ) -> Self {
8087 match err {
8088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8091 source: err.into(),
8092 }),
8093 }
8094 }
8095}
8096impl From<crate::operation::describe_instance_status::DescribeInstanceStatusError> for Error {
8097 fn from(err: crate::operation::describe_instance_status::DescribeInstanceStatusError) -> Self {
8098 match err {
8099 crate::operation::describe_instance_status::DescribeInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
8100 }
8101 }
8102}
8103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>>
8104 for Error
8105where
8106 R: Send + Sync + std::fmt::Debug + 'static,
8107{
8108 fn from(
8109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>,
8110 ) -> Self {
8111 match err {
8112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8115 source: err.into(),
8116 }),
8117 }
8118 }
8119}
8120impl From<crate::operation::describe_instance_topology::DescribeInstanceTopologyError> for Error {
8121 fn from(err: crate::operation::describe_instance_topology::DescribeInstanceTopologyError) -> Self {
8122 match err {
8123 crate::operation::describe_instance_topology::DescribeInstanceTopologyError::Unhandled(inner) => Error::Unhandled(inner),
8124 }
8125 }
8126}
8127impl<R>
8128 From<
8129 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError, R>,
8130 > for Error
8131where
8132 R: Send + Sync + std::fmt::Debug + 'static,
8133{
8134 fn from(
8135 err: ::aws_smithy_runtime_api::client::result::SdkError<
8136 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError,
8137 R,
8138 >,
8139 ) -> Self {
8140 match err {
8141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8144 source: err.into(),
8145 }),
8146 }
8147 }
8148}
8149impl From<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError> for Error {
8150 fn from(err: crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError) -> Self {
8151 match err {
8152 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8153 }
8154 }
8155}
8156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>> for Error
8157where
8158 R: Send + Sync + std::fmt::Debug + 'static,
8159{
8160 fn from(
8161 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>,
8162 ) -> Self {
8163 match err {
8164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8167 source: err.into(),
8168 }),
8169 }
8170 }
8171}
8172impl From<crate::operation::describe_instance_types::DescribeInstanceTypesError> for Error {
8173 fn from(err: crate::operation::describe_instance_types::DescribeInstanceTypesError) -> Self {
8174 match err {
8175 crate::operation::describe_instance_types::DescribeInstanceTypesError::Unhandled(inner) => Error::Unhandled(inner),
8176 }
8177 }
8178}
8179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>>
8180 for Error
8181where
8182 R: Send + Sync + std::fmt::Debug + 'static,
8183{
8184 fn from(
8185 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>,
8186 ) -> Self {
8187 match err {
8188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8191 source: err.into(),
8192 }),
8193 }
8194 }
8195}
8196impl From<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError> for Error {
8197 fn from(err: crate::operation::describe_internet_gateways::DescribeInternetGatewaysError) -> Self {
8198 match err {
8199 crate::operation::describe_internet_gateways::DescribeInternetGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8200 }
8201 }
8202}
8203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>> for Error
8204where
8205 R: Send + Sync + std::fmt::Debug + 'static,
8206{
8207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>) -> Self {
8208 match err {
8209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8212 source: err.into(),
8213 }),
8214 }
8215 }
8216}
8217impl From<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError> for Error {
8218 fn from(err: crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError) -> Self {
8219 match err {
8220 crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
8221 }
8222 }
8223}
8224impl<R>
8225 From<
8226 ::aws_smithy_runtime_api::client::result::SdkError<
8227 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8228 R,
8229 >,
8230 > for Error
8231where
8232 R: Send + Sync + std::fmt::Debug + 'static,
8233{
8234 fn from(
8235 err: ::aws_smithy_runtime_api::client::result::SdkError<
8236 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8237 R,
8238 >,
8239 ) -> Self {
8240 match err {
8241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8244 source: err.into(),
8245 }),
8246 }
8247 }
8248}
8249impl From<crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError> for Error {
8250 fn from(err: crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError) -> Self {
8251 match err {
8252 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError::Unhandled(
8253 inner,
8254 ) => Error::Unhandled(inner),
8255 }
8256 }
8257}
8258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8259where
8260 R: Send + Sync + std::fmt::Debug + 'static,
8261{
8262 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8263 match err {
8264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8267 source: err.into(),
8268 }),
8269 }
8270 }
8271}
8272impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
8273 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
8274 match err {
8275 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
8276 }
8277 }
8278}
8279impl<R>
8280 From<
8281 ::aws_smithy_runtime_api::client::result::SdkError<
8282 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8283 R,
8284 >,
8285 > for Error
8286where
8287 R: Send + Sync + std::fmt::Debug + 'static,
8288{
8289 fn from(
8290 err: ::aws_smithy_runtime_api::client::result::SdkError<
8291 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8292 R,
8293 >,
8294 ) -> Self {
8295 match err {
8296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8299 source: err.into(),
8300 }),
8301 }
8302 }
8303}
8304impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
8305 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
8306 match err {
8307 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
8308 }
8309 }
8310}
8311impl<R>
8312 From<
8313 ::aws_smithy_runtime_api::client::result::SdkError<
8314 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8315 R,
8316 >,
8317 > for Error
8318where
8319 R: Send + Sync + std::fmt::Debug + 'static,
8320{
8321 fn from(
8322 err: ::aws_smithy_runtime_api::client::result::SdkError<
8323 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8324 R,
8325 >,
8326 ) -> Self {
8327 match err {
8328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8331 source: err.into(),
8332 }),
8333 }
8334 }
8335}
8336impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
8337 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
8338 match err {
8339 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
8340 Error::Unhandled(inner)
8341 }
8342 }
8343 }
8344}
8345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
8346where
8347 R: Send + Sync + std::fmt::Debug + 'static,
8348{
8349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
8350 match err {
8351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8354 source: err.into(),
8355 }),
8356 }
8357 }
8358}
8359impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
8360 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
8361 match err {
8362 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
8363 }
8364 }
8365}
8366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
8367where
8368 R: Send + Sync + std::fmt::Debug + 'static,
8369{
8370 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
8371 match err {
8372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8375 source: err.into(),
8376 }),
8377 }
8378 }
8379}
8380impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
8381 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
8382 match err {
8383 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
8384 }
8385 }
8386}
8387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
8388where
8389 R: Send + Sync + std::fmt::Debug + 'static,
8390{
8391 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
8392 match err {
8393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8396 source: err.into(),
8397 }),
8398 }
8399 }
8400}
8401impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
8402 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
8403 match err {
8404 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
8405 }
8406 }
8407}
8408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
8409where
8410 R: Send + Sync + std::fmt::Debug + 'static,
8411{
8412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> Self {
8413 match err {
8414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8417 source: err.into(),
8418 }),
8419 }
8420 }
8421}
8422impl From<crate::operation::describe_key_pairs::DescribeKeyPairsError> for Error {
8423 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
8424 match err {
8425 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
8426 }
8427 }
8428}
8429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
8430 for Error
8431where
8432 R: Send + Sync + std::fmt::Debug + 'static,
8433{
8434 fn from(
8435 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
8436 ) -> Self {
8437 match err {
8438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8441 source: err.into(),
8442 }),
8443 }
8444 }
8445}
8446impl From<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError> for Error {
8447 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
8448 match err {
8449 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
8450 }
8451 }
8452}
8453impl<R>
8454 From<
8455 ::aws_smithy_runtime_api::client::result::SdkError<
8456 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8457 R,
8458 >,
8459 > for Error
8460where
8461 R: Send + Sync + std::fmt::Debug + 'static,
8462{
8463 fn from(
8464 err: ::aws_smithy_runtime_api::client::result::SdkError<
8465 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8466 R,
8467 >,
8468 ) -> Self {
8469 match err {
8470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8473 source: err.into(),
8474 }),
8475 }
8476 }
8477}
8478impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
8479 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
8480 match err {
8481 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
8482 }
8483 }
8484}
8485impl<R>
8486 From<
8487 ::aws_smithy_runtime_api::client::result::SdkError<
8488 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8489 R,
8490 >,
8491 > for Error
8492where
8493 R: Send + Sync + std::fmt::Debug + 'static,
8494{
8495 fn from(
8496 err: ::aws_smithy_runtime_api::client::result::SdkError<
8497 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8498 R,
8499 >,
8500 ) -> Self {
8501 match err {
8502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8505 source: err.into(),
8506 }),
8507 }
8508 }
8509}
8510impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
8511 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
8512 match err {
8513 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
8514 }
8515 }
8516}
8517impl<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 {
8518 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
8519 match err {
8520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8521 _ => Error::Unhandled(
8522 crate::error::sealed_unhandled::Unhandled {
8523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8524 source: err.into(),
8525 }
8526 ),
8527 }
8528 }
8529}
8530impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
8531 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
8532 match err {
8533 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
8534 }
8535 }
8536}
8537impl<R>
8538 From<
8539 ::aws_smithy_runtime_api::client::result::SdkError<
8540 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8541 R,
8542 >,
8543 > for Error
8544where
8545 R: Send + Sync + std::fmt::Debug + 'static,
8546{
8547 fn from(
8548 err: ::aws_smithy_runtime_api::client::result::SdkError<
8549 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8550 R,
8551 >,
8552 ) -> Self {
8553 match err {
8554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8557 source: err.into(),
8558 }),
8559 }
8560 }
8561}
8562impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
8563 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
8564 match err {
8565 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
8566 inner,
8567 ) => Error::Unhandled(inner),
8568 }
8569 }
8570}
8571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
8572where
8573 R: Send + Sync + std::fmt::Debug + 'static,
8574{
8575 fn from(
8576 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
8577 ) -> Self {
8578 match err {
8579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8582 source: err.into(),
8583 }),
8584 }
8585 }
8586}
8587impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
8588 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
8589 match err {
8590 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8591 }
8592 }
8593}
8594impl<R>
8595 From<
8596 ::aws_smithy_runtime_api::client::result::SdkError<
8597 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8598 R,
8599 >,
8600 > for Error
8601where
8602 R: Send + Sync + std::fmt::Debug + 'static,
8603{
8604 fn from(
8605 err: ::aws_smithy_runtime_api::client::result::SdkError<
8606 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8607 R,
8608 >,
8609 ) -> Self {
8610 match err {
8611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8614 source: err.into(),
8615 }),
8616 }
8617 }
8618}
8619impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
8620 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
8621 match err {
8622 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
8623 Error::Unhandled(inner)
8624 }
8625 }
8626 }
8627}
8628impl<R>
8629 From<
8630 ::aws_smithy_runtime_api::client::result::SdkError<
8631 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8632 R,
8633 >,
8634 > for Error
8635where
8636 R: Send + Sync + std::fmt::Debug + 'static,
8637{
8638 fn from(
8639 err: ::aws_smithy_runtime_api::client::result::SdkError<
8640 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8641 R,
8642 >,
8643 ) -> Self {
8644 match err {
8645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8648 source: err.into(),
8649 }),
8650 }
8651 }
8652}
8653impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
8654 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
8655 match err {
8656 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
8657 Error::Unhandled(inner)
8658 }
8659 }
8660 }
8661}
8662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
8663 for Error
8664where
8665 R: Send + Sync + std::fmt::Debug + 'static,
8666{
8667 fn from(
8668 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
8669 ) -> Self {
8670 match err {
8671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8674 source: err.into(),
8675 }),
8676 }
8677 }
8678}
8679impl From<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError> for Error {
8680 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
8681 match err {
8682 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
8683 }
8684 }
8685}
8686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
8687where
8688 R: Send + Sync + std::fmt::Debug + 'static,
8689{
8690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
8691 match err {
8692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8695 source: err.into(),
8696 }),
8697 }
8698 }
8699}
8700impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
8701 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
8702 match err {
8703 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
8704 }
8705 }
8706}
8707impl<R>
8708 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
8709 for Error
8710where
8711 R: Send + Sync + std::fmt::Debug + 'static,
8712{
8713 fn from(
8714 err: ::aws_smithy_runtime_api::client::result::SdkError<
8715 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
8716 R,
8717 >,
8718 ) -> Self {
8719 match err {
8720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8723 source: err.into(),
8724 }),
8725 }
8726 }
8727}
8728impl From<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError> for Error {
8729 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
8730 match err {
8731 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
8732 }
8733 }
8734}
8735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
8736 for Error
8737where
8738 R: Send + Sync + std::fmt::Debug + 'static,
8739{
8740 fn from(
8741 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
8742 ) -> Self {
8743 match err {
8744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8747 source: err.into(),
8748 }),
8749 }
8750 }
8751}
8752impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
8753 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
8754 match err {
8755 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
8756 }
8757 }
8758}
8759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
8760 for Error
8761where
8762 R: Send + Sync + std::fmt::Debug + 'static,
8763{
8764 fn from(
8765 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
8766 ) -> Self {
8767 match err {
8768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8771 source: err.into(),
8772 }),
8773 }
8774 }
8775}
8776impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
8777 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
8778 match err {
8779 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
8780 }
8781 }
8782}
8783impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
8784where
8785 R: Send + Sync + std::fmt::Debug + 'static,
8786{
8787 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
8788 match err {
8789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8792 source: err.into(),
8793 }),
8794 }
8795 }
8796}
8797impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
8798 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
8799 match err {
8800 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8801 }
8802 }
8803}
8804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
8805where
8806 R: Send + Sync + std::fmt::Debug + 'static,
8807{
8808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
8809 match err {
8810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8813 source: err.into(),
8814 }),
8815 }
8816 }
8817}
8818impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
8819 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
8820 match err {
8821 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
8822 }
8823 }
8824}
8825impl<R>
8826 From<
8827 ::aws_smithy_runtime_api::client::result::SdkError<
8828 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
8829 R,
8830 >,
8831 > for Error
8832where
8833 R: Send + Sync + std::fmt::Debug + 'static,
8834{
8835 fn from(
8836 err: ::aws_smithy_runtime_api::client::result::SdkError<
8837 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
8838 R,
8839 >,
8840 ) -> Self {
8841 match err {
8842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8845 source: err.into(),
8846 }),
8847 }
8848 }
8849}
8850impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
8851 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
8852 match err {
8853 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
8854 Error::Unhandled(inner)
8855 }
8856 }
8857 }
8858}
8859impl<R>
8860 From<
8861 ::aws_smithy_runtime_api::client::result::SdkError<
8862 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
8863 R,
8864 >,
8865 > for Error
8866where
8867 R: Send + Sync + std::fmt::Debug + 'static,
8868{
8869 fn from(
8870 err: ::aws_smithy_runtime_api::client::result::SdkError<
8871 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
8872 R,
8873 >,
8874 ) -> Self {
8875 match err {
8876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8879 source: err.into(),
8880 }),
8881 }
8882 }
8883}
8884impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
8885 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
8886 match err {
8887 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
8888 Error::Unhandled(inner)
8889 }
8890 }
8891 }
8892}
8893impl<R>
8894 From<
8895 ::aws_smithy_runtime_api::client::result::SdkError<
8896 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
8897 R,
8898 >,
8899 > for Error
8900where
8901 R: Send + Sync + std::fmt::Debug + 'static,
8902{
8903 fn from(
8904 err: ::aws_smithy_runtime_api::client::result::SdkError<
8905 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
8906 R,
8907 >,
8908 ) -> Self {
8909 match err {
8910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8913 source: err.into(),
8914 }),
8915 }
8916 }
8917}
8918impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
8919 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
8920 match err {
8921 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
8922 }
8923 }
8924}
8925impl<R>
8926 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
8927 for Error
8928where
8929 R: Send + Sync + std::fmt::Debug + 'static,
8930{
8931 fn from(
8932 err: ::aws_smithy_runtime_api::client::result::SdkError<
8933 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError,
8934 R,
8935 >,
8936 ) -> Self {
8937 match err {
8938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8941 source: err.into(),
8942 }),
8943 }
8944 }
8945}
8946impl From<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError> for Error {
8947 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
8948 match err {
8949 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
8950 }
8951 }
8952}
8953impl<R>
8954 From<
8955 ::aws_smithy_runtime_api::client::result::SdkError<
8956 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
8957 R,
8958 >,
8959 > for Error
8960where
8961 R: Send + Sync + std::fmt::Debug + 'static,
8962{
8963 fn from(
8964 err: ::aws_smithy_runtime_api::client::result::SdkError<
8965 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
8966 R,
8967 >,
8968 ) -> Self {
8969 match err {
8970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8973 source: err.into(),
8974 }),
8975 }
8976 }
8977}
8978impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
8979 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
8980 match err {
8981 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
8982 Error::Unhandled(inner)
8983 }
8984 }
8985 }
8986}
8987impl<R>
8988 From<
8989 ::aws_smithy_runtime_api::client::result::SdkError<
8990 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
8991 R,
8992 >,
8993 > for Error
8994where
8995 R: Send + Sync + std::fmt::Debug + 'static,
8996{
8997 fn from(
8998 err: ::aws_smithy_runtime_api::client::result::SdkError<
8999 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9000 R,
9001 >,
9002 ) -> Self {
9003 match err {
9004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9007 source: err.into(),
9008 }),
9009 }
9010 }
9011}
9012impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9013 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9014 match err {
9015 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9016 Error::Unhandled(inner)
9017 }
9018 }
9019 }
9020}
9021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9022 for Error
9023where
9024 R: Send + Sync + std::fmt::Debug + 'static,
9025{
9026 fn from(
9027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9028 ) -> Self {
9029 match err {
9030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9033 source: err.into(),
9034 }),
9035 }
9036 }
9037}
9038impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9039 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9040 match err {
9041 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9042 }
9043 }
9044}
9045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9046where
9047 R: Send + Sync + std::fmt::Debug + 'static,
9048{
9049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9050 match err {
9051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9054 source: err.into(),
9055 }),
9056 }
9057 }
9058}
9059impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9060 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9061 match err {
9062 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9063 }
9064 }
9065}
9066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9067 for Error
9068where
9069 R: Send + Sync + std::fmt::Debug + 'static,
9070{
9071 fn from(
9072 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9073 ) -> Self {
9074 match err {
9075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9078 source: err.into(),
9079 }),
9080 }
9081 }
9082}
9083impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9084 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9085 match err {
9086 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9087 }
9088 }
9089}
9090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9091where
9092 R: Send + Sync + std::fmt::Debug + 'static,
9093{
9094 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9095 match err {
9096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9099 source: err.into(),
9100 }),
9101 }
9102 }
9103}
9104impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9105 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9106 match err {
9107 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9108 }
9109 }
9110}
9111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9112 for Error
9113where
9114 R: Send + Sync + std::fmt::Debug + 'static,
9115{
9116 fn from(
9117 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9118 ) -> Self {
9119 match err {
9120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9123 source: err.into(),
9124 }),
9125 }
9126 }
9127}
9128impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9129 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9130 match err {
9131 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9132 }
9133 }
9134}
9135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9136 for Error
9137where
9138 R: Send + Sync + std::fmt::Debug + 'static,
9139{
9140 fn from(
9141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9142 ) -> Self {
9143 match err {
9144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9147 source: err.into(),
9148 }),
9149 }
9150 }
9151}
9152impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9153 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9154 match err {
9155 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9156 }
9157 }
9158}
9159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9160where
9161 R: Send + Sync + std::fmt::Debug + 'static,
9162{
9163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9164 match err {
9165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9168 source: err.into(),
9169 }),
9170 }
9171 }
9172}
9173impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9174 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9175 match err {
9176 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9177 }
9178 }
9179}
9180impl<R>
9181 From<
9182 ::aws_smithy_runtime_api::client::result::SdkError<
9183 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9184 R,
9185 >,
9186 > for Error
9187where
9188 R: Send + Sync + std::fmt::Debug + 'static,
9189{
9190 fn from(
9191 err: ::aws_smithy_runtime_api::client::result::SdkError<
9192 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9193 R,
9194 >,
9195 ) -> Self {
9196 match err {
9197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9200 source: err.into(),
9201 }),
9202 }
9203 }
9204}
9205impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
9206 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
9207 match err {
9208 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
9209 }
9210 }
9211}
9212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
9213 for Error
9214where
9215 R: Send + Sync + std::fmt::Debug + 'static,
9216{
9217 fn from(
9218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
9219 ) -> Self {
9220 match err {
9221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9224 source: err.into(),
9225 }),
9226 }
9227 }
9228}
9229impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
9230 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
9231 match err {
9232 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9233 }
9234 }
9235}
9236impl<R>
9237 From<
9238 ::aws_smithy_runtime_api::client::result::SdkError<
9239 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9240 R,
9241 >,
9242 > for Error
9243where
9244 R: Send + Sync + std::fmt::Debug + 'static,
9245{
9246 fn from(
9247 err: ::aws_smithy_runtime_api::client::result::SdkError<
9248 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9249 R,
9250 >,
9251 ) -> Self {
9252 match err {
9253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9256 source: err.into(),
9257 }),
9258 }
9259 }
9260}
9261impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
9262 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
9263 match err {
9264 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
9265 Error::Unhandled(inner)
9266 }
9267 }
9268 }
9269}
9270impl<R>
9271 From<
9272 ::aws_smithy_runtime_api::client::result::SdkError<
9273 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9274 R,
9275 >,
9276 > for Error
9277where
9278 R: Send + Sync + std::fmt::Debug + 'static,
9279{
9280 fn from(
9281 err: ::aws_smithy_runtime_api::client::result::SdkError<
9282 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9283 R,
9284 >,
9285 ) -> Self {
9286 match err {
9287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9290 source: err.into(),
9291 }),
9292 }
9293 }
9294}
9295impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
9296 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
9297 match err {
9298 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
9299 Error::Unhandled(inner)
9300 }
9301 }
9302 }
9303}
9304impl<R>
9305 From<
9306 ::aws_smithy_runtime_api::client::result::SdkError<
9307 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9308 R,
9309 >,
9310 > for Error
9311where
9312 R: Send + Sync + std::fmt::Debug + 'static,
9313{
9314 fn from(
9315 err: ::aws_smithy_runtime_api::client::result::SdkError<
9316 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9317 R,
9318 >,
9319 ) -> Self {
9320 match err {
9321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9324 source: err.into(),
9325 }),
9326 }
9327 }
9328}
9329impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
9330 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
9331 match err {
9332 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
9333 Error::Unhandled(inner)
9334 }
9335 }
9336 }
9337}
9338impl<R>
9339 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
9340 for Error
9341where
9342 R: Send + Sync + std::fmt::Debug + 'static,
9343{
9344 fn from(
9345 err: ::aws_smithy_runtime_api::client::result::SdkError<
9346 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError,
9347 R,
9348 >,
9349 ) -> Self {
9350 match err {
9351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9354 source: err.into(),
9355 }),
9356 }
9357 }
9358}
9359impl From<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
9360 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
9361 match err {
9362 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
9363 }
9364 }
9365}
9366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
9367 for Error
9368where
9369 R: Send + Sync + std::fmt::Debug + 'static,
9370{
9371 fn from(
9372 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
9373 ) -> Self {
9374 match err {
9375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9378 source: err.into(),
9379 }),
9380 }
9381 }
9382}
9383impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
9384 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
9385 match err {
9386 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
9387 }
9388 }
9389}
9390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
9391where
9392 R: Send + Sync + std::fmt::Debug + 'static,
9393{
9394 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
9395 match err {
9396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9399 source: err.into(),
9400 }),
9401 }
9402 }
9403}
9404impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
9405 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
9406 match err {
9407 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
9408 }
9409 }
9410}
9411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
9412where
9413 R: Send + Sync + std::fmt::Debug + 'static,
9414{
9415 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
9416 match err {
9417 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9418 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9419 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9420 source: err.into(),
9421 }),
9422 }
9423 }
9424}
9425impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
9426 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
9427 match err {
9428 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9429 }
9430 }
9431}
9432impl<R>
9433 From<
9434 ::aws_smithy_runtime_api::client::result::SdkError<
9435 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9436 R,
9437 >,
9438 > for Error
9439where
9440 R: Send + Sync + std::fmt::Debug + 'static,
9441{
9442 fn from(
9443 err: ::aws_smithy_runtime_api::client::result::SdkError<
9444 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9445 R,
9446 >,
9447 ) -> Self {
9448 match err {
9449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9452 source: err.into(),
9453 }),
9454 }
9455 }
9456}
9457impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
9458 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
9459 match err {
9460 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
9461 Error::Unhandled(inner)
9462 }
9463 }
9464 }
9465}
9466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
9467 for Error
9468where
9469 R: Send + Sync + std::fmt::Debug + 'static,
9470{
9471 fn from(
9472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
9473 ) -> Self {
9474 match err {
9475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9478 source: err.into(),
9479 }),
9480 }
9481 }
9482}
9483impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
9484 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
9485 match err {
9486 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9487 }
9488 }
9489}
9490impl<R>
9491 From<
9492 ::aws_smithy_runtime_api::client::result::SdkError<
9493 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9494 R,
9495 >,
9496 > for Error
9497where
9498 R: Send + Sync + std::fmt::Debug + 'static,
9499{
9500 fn from(
9501 err: ::aws_smithy_runtime_api::client::result::SdkError<
9502 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9503 R,
9504 >,
9505 ) -> Self {
9506 match err {
9507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9510 source: err.into(),
9511 }),
9512 }
9513 }
9514}
9515impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
9516 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
9517 match err {
9518 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
9519 }
9520 }
9521}
9522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
9523 for Error
9524where
9525 R: Send + Sync + std::fmt::Debug + 'static,
9526{
9527 fn from(
9528 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
9529 ) -> Self {
9530 match err {
9531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9534 source: err.into(),
9535 }),
9536 }
9537 }
9538}
9539impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
9540 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
9541 match err {
9542 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
9543 }
9544 }
9545}
9546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
9547where
9548 R: Send + Sync + std::fmt::Debug + 'static,
9549{
9550 fn from(
9551 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
9552 ) -> Self {
9553 match err {
9554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9557 source: err.into(),
9558 }),
9559 }
9560 }
9561}
9562impl From<crate::operation::describe_security_groups::DescribeSecurityGroupsError> for Error {
9563 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
9564 match err {
9565 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9566 }
9567 }
9568}
9569impl<R>
9570 From<
9571 ::aws_smithy_runtime_api::client::result::SdkError<
9572 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
9573 R,
9574 >,
9575 > for Error
9576where
9577 R: Send + Sync + std::fmt::Debug + 'static,
9578{
9579 fn from(
9580 err: ::aws_smithy_runtime_api::client::result::SdkError<
9581 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
9582 R,
9583 >,
9584 ) -> Self {
9585 match err {
9586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9589 source: err.into(),
9590 }),
9591 }
9592 }
9593}
9594impl From<crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
9595 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
9596 match err {
9597 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
9598 Error::Unhandled(inner)
9599 }
9600 }
9601 }
9602}
9603impl<R>
9604 From<
9605 ::aws_smithy_runtime_api::client::result::SdkError<
9606 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9607 R,
9608 >,
9609 > for Error
9610where
9611 R: Send + Sync + std::fmt::Debug + 'static,
9612{
9613 fn from(
9614 err: ::aws_smithy_runtime_api::client::result::SdkError<
9615 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9616 R,
9617 >,
9618 ) -> Self {
9619 match err {
9620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9623 source: err.into(),
9624 }),
9625 }
9626 }
9627}
9628impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
9629 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
9630 match err {
9631 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
9632 Error::Unhandled(inner)
9633 }
9634 }
9635 }
9636}
9637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
9638 for Error
9639where
9640 R: Send + Sync + std::fmt::Debug + 'static,
9641{
9642 fn from(
9643 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
9644 ) -> Self {
9645 match err {
9646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9649 source: err.into(),
9650 }),
9651 }
9652 }
9653}
9654impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
9655 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
9656 match err {
9657 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
9658 }
9659 }
9660}
9661impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
9662where
9663 R: Send + Sync + std::fmt::Debug + 'static,
9664{
9665 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
9666 match err {
9667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9670 source: err.into(),
9671 }),
9672 }
9673 }
9674}
9675impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
9676 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
9677 match err {
9678 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9679 }
9680 }
9681}
9682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
9683 for Error
9684where
9685 R: Send + Sync + std::fmt::Debug + 'static,
9686{
9687 fn from(
9688 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
9689 ) -> Self {
9690 match err {
9691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9694 source: err.into(),
9695 }),
9696 }
9697 }
9698}
9699impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
9700 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
9701 match err {
9702 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
9703 }
9704 }
9705}
9706impl<R>
9707 From<
9708 ::aws_smithy_runtime_api::client::result::SdkError<
9709 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
9710 R,
9711 >,
9712 > for Error
9713where
9714 R: Send + Sync + std::fmt::Debug + 'static,
9715{
9716 fn from(
9717 err: ::aws_smithy_runtime_api::client::result::SdkError<
9718 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
9719 R,
9720 >,
9721 ) -> Self {
9722 match err {
9723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9726 source: err.into(),
9727 }),
9728 }
9729 }
9730}
9731impl From<crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
9732 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
9733 match err {
9734 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
9735 }
9736 }
9737}
9738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
9739 for Error
9740where
9741 R: Send + Sync + std::fmt::Debug + 'static,
9742{
9743 fn from(
9744 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
9745 ) -> Self {
9746 match err {
9747 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9748 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9749 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9750 source: err.into(),
9751 }),
9752 }
9753 }
9754}
9755impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
9756 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
9757 match err {
9758 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9759 }
9760 }
9761}
9762impl<R>
9763 From<
9764 ::aws_smithy_runtime_api::client::result::SdkError<
9765 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
9766 R,
9767 >,
9768 > for Error
9769where
9770 R: Send + Sync + std::fmt::Debug + 'static,
9771{
9772 fn from(
9773 err: ::aws_smithy_runtime_api::client::result::SdkError<
9774 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
9775 R,
9776 >,
9777 ) -> Self {
9778 match err {
9779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9782 source: err.into(),
9783 }),
9784 }
9785 }
9786}
9787impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
9788 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
9789 match err {
9790 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
9791 }
9792 }
9793}
9794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
9795 for Error
9796where
9797 R: Send + Sync + std::fmt::Debug + 'static,
9798{
9799 fn from(
9800 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
9801 ) -> Self {
9802 match err {
9803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9806 source: err.into(),
9807 }),
9808 }
9809 }
9810}
9811impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
9812 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
9813 match err {
9814 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
9815 }
9816 }
9817}
9818impl<R>
9819 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
9820 for Error
9821where
9822 R: Send + Sync + std::fmt::Debug + 'static,
9823{
9824 fn from(
9825 err: ::aws_smithy_runtime_api::client::result::SdkError<
9826 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
9827 R,
9828 >,
9829 ) -> Self {
9830 match err {
9831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9834 source: err.into(),
9835 }),
9836 }
9837 }
9838}
9839impl From<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError> for Error {
9840 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
9841 match err {
9842 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
9843 }
9844 }
9845}
9846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
9847 for Error
9848where
9849 R: Send + Sync + std::fmt::Debug + 'static,
9850{
9851 fn from(
9852 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
9853 ) -> Self {
9854 match err {
9855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9858 source: err.into(),
9859 }),
9860 }
9861 }
9862}
9863impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
9864 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
9865 match err {
9866 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
9867 }
9868 }
9869}
9870impl<R>
9871 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
9872 for Error
9873where
9874 R: Send + Sync + std::fmt::Debug + 'static,
9875{
9876 fn from(
9877 err: ::aws_smithy_runtime_api::client::result::SdkError<
9878 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
9879 R,
9880 >,
9881 ) -> Self {
9882 match err {
9883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9886 source: err.into(),
9887 }),
9888 }
9889 }
9890}
9891impl From<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
9892 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
9893 match err {
9894 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9895 }
9896 }
9897}
9898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
9899 for Error
9900where
9901 R: Send + Sync + std::fmt::Debug + 'static,
9902{
9903 fn from(
9904 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
9905 ) -> Self {
9906 match err {
9907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9910 source: err.into(),
9911 }),
9912 }
9913 }
9914}
9915impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
9916 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
9917 match err {
9918 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
9919 }
9920 }
9921}
9922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
9923where
9924 R: Send + Sync + std::fmt::Debug + 'static,
9925{
9926 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
9927 match err {
9928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9931 source: err.into(),
9932 }),
9933 }
9934 }
9935}
9936impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
9937 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
9938 match err {
9939 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
9940 }
9941 }
9942}
9943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
9944where
9945 R: Send + Sync + std::fmt::Debug + 'static,
9946{
9947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
9948 match err {
9949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9952 source: err.into(),
9953 }),
9954 }
9955 }
9956}
9957impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
9958 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
9959 match err {
9960 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
9961 }
9962 }
9963}
9964impl<R>
9965 From<
9966 ::aws_smithy_runtime_api::client::result::SdkError<
9967 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
9968 R,
9969 >,
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<
9976 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
9977 R,
9978 >,
9979 ) -> Self {
9980 match err {
9981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9984 source: err.into(),
9985 }),
9986 }
9987 }
9988}
9989impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
9990 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
9991 match err {
9992 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
9993 Error::Unhandled(inner)
9994 }
9995 }
9996 }
9997}
9998impl<R>
9999 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10000 for Error
10001where
10002 R: Send + Sync + std::fmt::Debug + 'static,
10003{
10004 fn from(
10005 err: ::aws_smithy_runtime_api::client::result::SdkError<
10006 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10007 R,
10008 >,
10009 ) -> Self {
10010 match err {
10011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10014 source: err.into(),
10015 }),
10016 }
10017 }
10018}
10019impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10020 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10021 match err {
10022 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10023 }
10024 }
10025}
10026impl<R>
10027 From<
10028 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10029 > for Error
10030where
10031 R: Send + Sync + std::fmt::Debug + 'static,
10032{
10033 fn from(
10034 err: ::aws_smithy_runtime_api::client::result::SdkError<
10035 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10036 R,
10037 >,
10038 ) -> Self {
10039 match err {
10040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10043 source: err.into(),
10044 }),
10045 }
10046 }
10047}
10048impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10049 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10050 match err {
10051 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10052 }
10053 }
10054}
10055impl<R>
10056 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, R>>
10057 for Error
10058where
10059 R: Send + Sync + std::fmt::Debug + 'static,
10060{
10061 fn from(
10062 err: ::aws_smithy_runtime_api::client::result::SdkError<
10063 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError,
10064 R,
10065 >,
10066 ) -> Self {
10067 match err {
10068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10071 source: err.into(),
10072 }),
10073 }
10074 }
10075}
10076impl From<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError> for Error {
10077 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10078 match err {
10079 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10080 }
10081 }
10082}
10083impl<R>
10084 From<
10085 ::aws_smithy_runtime_api::client::result::SdkError<
10086 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10087 R,
10088 >,
10089 > for Error
10090where
10091 R: Send + Sync + std::fmt::Debug + 'static,
10092{
10093 fn from(
10094 err: ::aws_smithy_runtime_api::client::result::SdkError<
10095 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10096 R,
10097 >,
10098 ) -> Self {
10099 match err {
10100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10103 source: err.into(),
10104 }),
10105 }
10106 }
10107}
10108impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10109 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10110 match err {
10111 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10112 Error::Unhandled(inner)
10113 }
10114 }
10115 }
10116}
10117impl<R>
10118 From<
10119 ::aws_smithy_runtime_api::client::result::SdkError<
10120 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10121 R,
10122 >,
10123 > for Error
10124where
10125 R: Send + Sync + std::fmt::Debug + 'static,
10126{
10127 fn from(
10128 err: ::aws_smithy_runtime_api::client::result::SdkError<
10129 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10130 R,
10131 >,
10132 ) -> Self {
10133 match err {
10134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10137 source: err.into(),
10138 }),
10139 }
10140 }
10141}
10142impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
10143 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
10144 match err {
10145 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
10146 Error::Unhandled(inner)
10147 }
10148 }
10149 }
10150}
10151impl<R>
10152 From<
10153 ::aws_smithy_runtime_api::client::result::SdkError<
10154 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10155 R,
10156 >,
10157 > for Error
10158where
10159 R: Send + Sync + std::fmt::Debug + 'static,
10160{
10161 fn from(
10162 err: ::aws_smithy_runtime_api::client::result::SdkError<
10163 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10164 R,
10165 >,
10166 ) -> Self {
10167 match err {
10168 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10169 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10170 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10171 source: err.into(),
10172 }),
10173 }
10174 }
10175}
10176impl From<crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
10177 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
10178 match err {
10179 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
10180 }
10181 }
10182}
10183impl<R>
10184 From<
10185 ::aws_smithy_runtime_api::client::result::SdkError<
10186 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10187 R,
10188 >,
10189 > for Error
10190where
10191 R: Send + Sync + std::fmt::Debug + 'static,
10192{
10193 fn from(
10194 err: ::aws_smithy_runtime_api::client::result::SdkError<
10195 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10196 R,
10197 >,
10198 ) -> Self {
10199 match err {
10200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10203 source: err.into(),
10204 }),
10205 }
10206 }
10207}
10208impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
10209 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
10210 match err {
10211 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
10212 Error::Unhandled(inner)
10213 }
10214 }
10215 }
10216}
10217impl<R>
10218 From<
10219 ::aws_smithy_runtime_api::client::result::SdkError<
10220 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10221 R,
10222 >,
10223 > for Error
10224where
10225 R: Send + Sync + std::fmt::Debug + 'static,
10226{
10227 fn from(
10228 err: ::aws_smithy_runtime_api::client::result::SdkError<
10229 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10230 R,
10231 >,
10232 ) -> Self {
10233 match err {
10234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10237 source: err.into(),
10238 }),
10239 }
10240 }
10241}
10242impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
10243 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
10244 match err {
10245 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
10246 Error::Unhandled(inner)
10247 }
10248 }
10249 }
10250}
10251impl<R>
10252 From<
10253 ::aws_smithy_runtime_api::client::result::SdkError<
10254 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10255 R,
10256 >,
10257 > for Error
10258where
10259 R: Send + Sync + std::fmt::Debug + 'static,
10260{
10261 fn from(
10262 err: ::aws_smithy_runtime_api::client::result::SdkError<
10263 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10264 R,
10265 >,
10266 ) -> Self {
10267 match err {
10268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10271 source: err.into(),
10272 }),
10273 }
10274 }
10275}
10276impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
10277 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
10278 match err {
10279 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
10280 Error::Unhandled(inner)
10281 }
10282 }
10283 }
10284}
10285impl<R>
10286 From<
10287 ::aws_smithy_runtime_api::client::result::SdkError<
10288 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10289 R,
10290 >,
10291 > for Error
10292where
10293 R: Send + Sync + std::fmt::Debug + 'static,
10294{
10295 fn from(
10296 err: ::aws_smithy_runtime_api::client::result::SdkError<
10297 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10298 R,
10299 >,
10300 ) -> Self {
10301 match err {
10302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10305 source: err.into(),
10306 }),
10307 }
10308 }
10309}
10310impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
10311 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
10312 match err {
10313 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
10314 inner,
10315 ) => Error::Unhandled(inner),
10316 }
10317 }
10318}
10319impl<R>
10320 From<
10321 ::aws_smithy_runtime_api::client::result::SdkError<
10322 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10323 R,
10324 >,
10325 > for Error
10326where
10327 R: Send + Sync + std::fmt::Debug + 'static,
10328{
10329 fn from(
10330 err: ::aws_smithy_runtime_api::client::result::SdkError<
10331 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10332 R,
10333 >,
10334 ) -> Self {
10335 match err {
10336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10339 source: err.into(),
10340 }),
10341 }
10342 }
10343}
10344impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
10345 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
10346 match err {
10347 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
10348 Error::Unhandled(inner)
10349 }
10350 }
10351 }
10352}
10353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
10354 for Error
10355where
10356 R: Send + Sync + std::fmt::Debug + 'static,
10357{
10358 fn from(
10359 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
10360 ) -> Self {
10361 match err {
10362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10365 source: err.into(),
10366 }),
10367 }
10368 }
10369}
10370impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
10371 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
10372 match err {
10373 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
10374 }
10375 }
10376}
10377impl<R>
10378 From<
10379 ::aws_smithy_runtime_api::client::result::SdkError<
10380 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10381 R,
10382 >,
10383 > for Error
10384where
10385 R: Send + Sync + std::fmt::Debug + 'static,
10386{
10387 fn from(
10388 err: ::aws_smithy_runtime_api::client::result::SdkError<
10389 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10390 R,
10391 >,
10392 ) -> Self {
10393 match err {
10394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10397 source: err.into(),
10398 }),
10399 }
10400 }
10401}
10402impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
10403 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
10404 match err {
10405 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
10406 Error::Unhandled(inner)
10407 }
10408 }
10409 }
10410}
10411impl<R>
10412 From<
10413 ::aws_smithy_runtime_api::client::result::SdkError<
10414 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10415 R,
10416 >,
10417 > for Error
10418where
10419 R: Send + Sync + std::fmt::Debug + 'static,
10420{
10421 fn from(
10422 err: ::aws_smithy_runtime_api::client::result::SdkError<
10423 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10424 R,
10425 >,
10426 ) -> Self {
10427 match err {
10428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10431 source: err.into(),
10432 }),
10433 }
10434 }
10435}
10436impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
10437 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
10438 match err {
10439 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
10440 Error::Unhandled(inner)
10441 }
10442 }
10443 }
10444}
10445impl<R>
10446 From<
10447 ::aws_smithy_runtime_api::client::result::SdkError<
10448 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10449 R,
10450 >,
10451 > for Error
10452where
10453 R: Send + Sync + std::fmt::Debug + 'static,
10454{
10455 fn from(
10456 err: ::aws_smithy_runtime_api::client::result::SdkError<
10457 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10458 R,
10459 >,
10460 ) -> Self {
10461 match err {
10462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10465 source: err.into(),
10466 }),
10467 }
10468 }
10469}
10470impl From<crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
10471 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
10472 match err {
10473 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10474 }
10475 }
10476}
10477impl<R>
10478 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
10479 for Error
10480where
10481 R: Send + Sync + std::fmt::Debug + 'static,
10482{
10483 fn from(
10484 err: ::aws_smithy_runtime_api::client::result::SdkError<
10485 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
10486 R,
10487 >,
10488 ) -> Self {
10489 match err {
10490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10493 source: err.into(),
10494 }),
10495 }
10496 }
10497}
10498impl From<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError> for Error {
10499 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
10500 match err {
10501 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10502 }
10503 }
10504}
10505impl<R>
10506 From<
10507 ::aws_smithy_runtime_api::client::result::SdkError<
10508 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10509 R,
10510 >,
10511 > for Error
10512where
10513 R: Send + Sync + std::fmt::Debug + 'static,
10514{
10515 fn from(
10516 err: ::aws_smithy_runtime_api::client::result::SdkError<
10517 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10518 R,
10519 >,
10520 ) -> Self {
10521 match err {
10522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10525 source: err.into(),
10526 }),
10527 }
10528 }
10529}
10530impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
10531 for Error
10532{
10533 fn from(
10534 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10535 ) -> Self {
10536 match err {
10537 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
10538 }
10539 }
10540}
10541impl<R>
10542 From<
10543 ::aws_smithy_runtime_api::client::result::SdkError<
10544 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10545 R,
10546 >,
10547 > for Error
10548where
10549 R: Send + Sync + std::fmt::Debug + 'static,
10550{
10551 fn from(
10552 err: ::aws_smithy_runtime_api::client::result::SdkError<
10553 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10554 R,
10555 >,
10556 ) -> Self {
10557 match err {
10558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10561 source: err.into(),
10562 }),
10563 }
10564 }
10565}
10566impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
10567 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
10568 match err {
10569 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10570 }
10571 }
10572}
10573impl<R>
10574 From<
10575 ::aws_smithy_runtime_api::client::result::SdkError<
10576 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10577 R,
10578 >,
10579 > for Error
10580where
10581 R: Send + Sync + std::fmt::Debug + 'static,
10582{
10583 fn from(
10584 err: ::aws_smithy_runtime_api::client::result::SdkError<
10585 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10586 R,
10587 >,
10588 ) -> Self {
10589 match err {
10590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10593 source: err.into(),
10594 }),
10595 }
10596 }
10597}
10598impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
10599 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
10600 match err {
10601 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
10602 Error::Unhandled(inner)
10603 }
10604 }
10605 }
10606}
10607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
10608 for Error
10609where
10610 R: Send + Sync + std::fmt::Debug + 'static,
10611{
10612 fn from(
10613 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
10614 ) -> Self {
10615 match err {
10616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10619 source: err.into(),
10620 }),
10621 }
10622 }
10623}
10624impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
10625 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
10626 match err {
10627 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10628 }
10629 }
10630}
10631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
10632where
10633 R: Send + Sync + std::fmt::Debug + 'static,
10634{
10635 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
10636 match err {
10637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10640 source: err.into(),
10641 }),
10642 }
10643 }
10644}
10645impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
10646 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
10647 match err {
10648 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
10649 }
10650 }
10651}
10652impl<R>
10653 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
10654 for Error
10655where
10656 R: Send + Sync + std::fmt::Debug + 'static,
10657{
10658 fn from(
10659 err: ::aws_smithy_runtime_api::client::result::SdkError<
10660 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
10661 R,
10662 >,
10663 ) -> Self {
10664 match err {
10665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10668 source: err.into(),
10669 }),
10670 }
10671 }
10672}
10673impl From<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError> for Error {
10674 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
10675 match err {
10676 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
10677 }
10678 }
10679}
10680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
10681where
10682 R: Send + Sync + std::fmt::Debug + 'static,
10683{
10684 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
10685 match err {
10686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10689 source: err.into(),
10690 }),
10691 }
10692 }
10693}
10694impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
10695 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
10696 match err {
10697 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
10698 }
10699 }
10700}
10701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
10702where
10703 R: Send + Sync + std::fmt::Debug + 'static,
10704{
10705 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
10706 match err {
10707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10710 source: err.into(),
10711 }),
10712 }
10713 }
10714}
10715impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
10716 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
10717 match err {
10718 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10719 }
10720 }
10721}
10722impl<R>
10723 From<
10724 ::aws_smithy_runtime_api::client::result::SdkError<
10725 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
10726 R,
10727 >,
10728 > for Error
10729where
10730 R: Send + Sync + std::fmt::Debug + 'static,
10731{
10732 fn from(
10733 err: ::aws_smithy_runtime_api::client::result::SdkError<
10734 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
10735 R,
10736 >,
10737 ) -> Self {
10738 match err {
10739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10742 source: err.into(),
10743 }),
10744 }
10745 }
10746}
10747impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
10748 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
10749 match err {
10750 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
10751 Error::Unhandled(inner)
10752 }
10753 }
10754 }
10755}
10756impl<R>
10757 From<
10758 ::aws_smithy_runtime_api::client::result::SdkError<
10759 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
10760 R,
10761 >,
10762 > for Error
10763where
10764 R: Send + Sync + std::fmt::Debug + 'static,
10765{
10766 fn from(
10767 err: ::aws_smithy_runtime_api::client::result::SdkError<
10768 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
10769 R,
10770 >,
10771 ) -> Self {
10772 match err {
10773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10776 source: err.into(),
10777 }),
10778 }
10779 }
10780}
10781impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
10782 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
10783 match err {
10784 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
10785 Error::Unhandled(inner)
10786 }
10787 }
10788 }
10789}
10790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
10791 for Error
10792where
10793 R: Send + Sync + std::fmt::Debug + 'static,
10794{
10795 fn from(
10796 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
10797 ) -> Self {
10798 match err {
10799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10802 source: err.into(),
10803 }),
10804 }
10805 }
10806}
10807impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
10808 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
10809 match err {
10810 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
10811 }
10812 }
10813}
10814impl<R>
10815 From<
10816 ::aws_smithy_runtime_api::client::result::SdkError<
10817 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
10818 R,
10819 >,
10820 > for Error
10821where
10822 R: Send + Sync + std::fmt::Debug + 'static,
10823{
10824 fn from(
10825 err: ::aws_smithy_runtime_api::client::result::SdkError<
10826 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
10827 R,
10828 >,
10829 ) -> Self {
10830 match err {
10831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10834 source: err.into(),
10835 }),
10836 }
10837 }
10838}
10839impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
10840 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
10841 match err {
10842 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
10843 Error::Unhandled(inner)
10844 }
10845 }
10846 }
10847}
10848impl<R>
10849 From<
10850 ::aws_smithy_runtime_api::client::result::SdkError<
10851 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
10852 R,
10853 >,
10854 > for Error
10855where
10856 R: Send + Sync + std::fmt::Debug + 'static,
10857{
10858 fn from(
10859 err: ::aws_smithy_runtime_api::client::result::SdkError<
10860 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
10861 R,
10862 >,
10863 ) -> Self {
10864 match err {
10865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10868 source: err.into(),
10869 }),
10870 }
10871 }
10872}
10873impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
10874 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
10875 match err {
10876 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
10877 }
10878 }
10879}
10880impl<R>
10881 From<
10882 ::aws_smithy_runtime_api::client::result::SdkError<
10883 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
10884 R,
10885 >,
10886 > for Error
10887where
10888 R: Send + Sync + std::fmt::Debug + 'static,
10889{
10890 fn from(
10891 err: ::aws_smithy_runtime_api::client::result::SdkError<
10892 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
10893 R,
10894 >,
10895 ) -> Self {
10896 match err {
10897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10900 source: err.into(),
10901 }),
10902 }
10903 }
10904}
10905impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
10906 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
10907 match err {
10908 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
10909 Error::Unhandled(inner)
10910 }
10911 }
10912 }
10913}
10914impl<R>
10915 From<
10916 ::aws_smithy_runtime_api::client::result::SdkError<
10917 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
10918 R,
10919 >,
10920 > for Error
10921where
10922 R: Send + Sync + std::fmt::Debug + 'static,
10923{
10924 fn from(
10925 err: ::aws_smithy_runtime_api::client::result::SdkError<
10926 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
10927 R,
10928 >,
10929 ) -> Self {
10930 match err {
10931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10934 source: err.into(),
10935 }),
10936 }
10937 }
10938}
10939impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
10940 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
10941 match err {
10942 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
10943 }
10944 }
10945}
10946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
10947where
10948 R: Send + Sync + std::fmt::Debug + 'static,
10949{
10950 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
10951 match err {
10952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10955 source: err.into(),
10956 }),
10957 }
10958 }
10959}
10960impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
10961 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
10962 match err {
10963 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10964 }
10965 }
10966}
10967impl<R>
10968 From<
10969 ::aws_smithy_runtime_api::client::result::SdkError<
10970 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
10971 R,
10972 >,
10973 > for Error
10974where
10975 R: Send + Sync + std::fmt::Debug + 'static,
10976{
10977 fn from(
10978 err: ::aws_smithy_runtime_api::client::result::SdkError<
10979 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
10980 R,
10981 >,
10982 ) -> Self {
10983 match err {
10984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10987 source: err.into(),
10988 }),
10989 }
10990 }
10991}
10992impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
10993 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
10994 match err {
10995 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
10996 Error::Unhandled(inner)
10997 }
10998 }
10999 }
11000}
11001impl<R>
11002 From<
11003 ::aws_smithy_runtime_api::client::result::SdkError<
11004 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11005 R,
11006 >,
11007 > for Error
11008where
11009 R: Send + Sync + std::fmt::Debug + 'static,
11010{
11011 fn from(
11012 err: ::aws_smithy_runtime_api::client::result::SdkError<
11013 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11014 R,
11015 >,
11016 ) -> 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_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11027 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11028 match err {
11029 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11030 Error::Unhandled(inner)
11031 }
11032 }
11033 }
11034}
11035impl<R>
11036 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11037 for Error
11038where
11039 R: Send + Sync + std::fmt::Debug + 'static,
11040{
11041 fn from(
11042 err: ::aws_smithy_runtime_api::client::result::SdkError<
11043 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11044 R,
11045 >,
11046 ) -> Self {
11047 match err {
11048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11051 source: err.into(),
11052 }),
11053 }
11054 }
11055}
11056impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11057 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11058 match err {
11059 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11060 }
11061 }
11062}
11063impl<R>
11064 From<
11065 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
11066 > for Error
11067where
11068 R: Send + Sync + std::fmt::Debug + 'static,
11069{
11070 fn from(
11071 err: ::aws_smithy_runtime_api::client::result::SdkError<
11072 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
11073 R,
11074 >,
11075 ) -> Self {
11076 match err {
11077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11080 source: err.into(),
11081 }),
11082 }
11083 }
11084}
11085impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
11086 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
11087 match err {
11088 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11089 }
11090 }
11091}
11092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
11093where
11094 R: Send + Sync + std::fmt::Debug + 'static,
11095{
11096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
11097 match err {
11098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11101 source: err.into(),
11102 }),
11103 }
11104 }
11105}
11106impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
11107 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
11108 match err {
11109 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
11110 }
11111 }
11112}
11113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
11114where
11115 R: Send + Sync + std::fmt::Debug + 'static,
11116{
11117 fn from(
11118 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
11119 ) -> Self {
11120 match err {
11121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11124 source: err.into(),
11125 }),
11126 }
11127 }
11128}
11129impl From<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
11130 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
11131 match err {
11132 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11133 }
11134 }
11135}
11136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>> for Error
11137where
11138 R: Send + Sync + std::fmt::Debug + 'static,
11139{
11140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>) -> Self {
11141 match err {
11142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11145 source: err.into(),
11146 }),
11147 }
11148 }
11149}
11150impl From<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
11151 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
11152 match err {
11153 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11154 }
11155 }
11156}
11157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
11158where
11159 R: Send + Sync + std::fmt::Debug + 'static,
11160{
11161 fn from(
11162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
11163 ) -> Self {
11164 match err {
11165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11168 source: err.into(),
11169 }),
11170 }
11171 }
11172}
11173impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
11174 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
11175 match err {
11176 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
11177 }
11178 }
11179}
11180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
11181where
11182 R: Send + Sync + std::fmt::Debug + 'static,
11183{
11184 fn from(
11185 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
11186 ) -> Self {
11187 match err {
11188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11191 source: err.into(),
11192 }),
11193 }
11194 }
11195}
11196impl From<crate::operation::detach_internet_gateway::DetachInternetGatewayError> for Error {
11197 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
11198 match err {
11199 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11200 }
11201 }
11202}
11203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
11204where
11205 R: Send + Sync + std::fmt::Debug + 'static,
11206{
11207 fn from(
11208 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
11209 ) -> Self {
11210 match err {
11211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11214 source: err.into(),
11215 }),
11216 }
11217 }
11218}
11219impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
11220 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
11221 match err {
11222 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
11223 }
11224 }
11225}
11226impl<R>
11227 From<
11228 ::aws_smithy_runtime_api::client::result::SdkError<
11229 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11230 R,
11231 >,
11232 > for Error
11233where
11234 R: Send + Sync + std::fmt::Debug + 'static,
11235{
11236 fn from(
11237 err: ::aws_smithy_runtime_api::client::result::SdkError<
11238 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11239 R,
11240 >,
11241 ) -> Self {
11242 match err {
11243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11246 source: err.into(),
11247 }),
11248 }
11249 }
11250}
11251impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
11252 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
11253 match err {
11254 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
11255 Error::Unhandled(inner)
11256 }
11257 }
11258 }
11259}
11260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
11261where
11262 R: Send + Sync + std::fmt::Debug + 'static,
11263{
11264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
11265 match err {
11266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11269 source: err.into(),
11270 }),
11271 }
11272 }
11273}
11274impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
11275 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
11276 match err {
11277 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
11278 }
11279 }
11280}
11281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
11282where
11283 R: Send + Sync + std::fmt::Debug + 'static,
11284{
11285 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
11286 match err {
11287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11290 source: err.into(),
11291 }),
11292 }
11293 }
11294}
11295impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
11296 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
11297 match err {
11298 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11299 }
11300 }
11301}
11302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
11303where
11304 R: Send + Sync + std::fmt::Debug + 'static,
11305{
11306 fn from(
11307 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
11308 ) -> Self {
11309 match err {
11310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11313 source: err.into(),
11314 }),
11315 }
11316 }
11317}
11318impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
11319 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
11320 match err {
11321 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
11322 }
11323 }
11324}
11325impl<R>
11326 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
11327 for Error
11328where
11329 R: Send + Sync + std::fmt::Debug + 'static,
11330{
11331 fn from(
11332 err: ::aws_smithy_runtime_api::client::result::SdkError<
11333 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
11334 R,
11335 >,
11336 ) -> Self {
11337 match err {
11338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11341 source: err.into(),
11342 }),
11343 }
11344 }
11345}
11346impl From<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
11347 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
11348 match err {
11349 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
11350 }
11351 }
11352}
11353impl<R>
11354 From<
11355 ::aws_smithy_runtime_api::client::result::SdkError<
11356 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11357 R,
11358 >,
11359 > for Error
11360where
11361 R: Send + Sync + std::fmt::Debug + 'static,
11362{
11363 fn from(
11364 err: ::aws_smithy_runtime_api::client::result::SdkError<
11365 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11366 R,
11367 >,
11368 ) -> Self {
11369 match err {
11370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11373 source: err.into(),
11374 }),
11375 }
11376 }
11377}
11378impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
11379 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
11380 match err {
11381 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
11382 inner,
11383 ) => Error::Unhandled(inner),
11384 }
11385 }
11386}
11387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
11388where
11389 R: Send + Sync + std::fmt::Debug + 'static,
11390{
11391 fn from(
11392 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
11393 ) -> Self {
11394 match err {
11395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11398 source: err.into(),
11399 }),
11400 }
11401 }
11402}
11403impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
11404 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
11405 match err {
11406 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
11407 }
11408 }
11409}
11410impl<R>
11411 From<
11412 ::aws_smithy_runtime_api::client::result::SdkError<
11413 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11414 R,
11415 >,
11416 > for Error
11417where
11418 R: Send + Sync + std::fmt::Debug + 'static,
11419{
11420 fn from(
11421 err: ::aws_smithy_runtime_api::client::result::SdkError<
11422 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11423 R,
11424 >,
11425 ) -> Self {
11426 match err {
11427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11430 source: err.into(),
11431 }),
11432 }
11433 }
11434}
11435impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
11436 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
11437 match err {
11438 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
11439 }
11440 }
11441}
11442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
11443where
11444 R: Send + Sync + std::fmt::Debug + 'static,
11445{
11446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
11447 match err {
11448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11451 source: err.into(),
11452 }),
11453 }
11454 }
11455}
11456impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
11457 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
11458 match err {
11459 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
11460 }
11461 }
11462}
11463impl<R>
11464 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
11465 for Error
11466where
11467 R: Send + Sync + std::fmt::Debug + 'static,
11468{
11469 fn from(
11470 err: ::aws_smithy_runtime_api::client::result::SdkError<
11471 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
11472 R,
11473 >,
11474 ) -> Self {
11475 match err {
11476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11479 source: err.into(),
11480 }),
11481 }
11482 }
11483}
11484impl From<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
11485 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
11486 match err {
11487 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
11488 }
11489 }
11490}
11491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
11492where
11493 R: Send + Sync + std::fmt::Debug + 'static,
11494{
11495 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> Self {
11496 match err {
11497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11500 source: err.into(),
11501 }),
11502 }
11503 }
11504}
11505impl From<crate::operation::disable_image::DisableImageError> for Error {
11506 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
11507 match err {
11508 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
11509 }
11510 }
11511}
11512impl<R>
11513 From<
11514 ::aws_smithy_runtime_api::client::result::SdkError<
11515 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
11516 R,
11517 >,
11518 > for Error
11519where
11520 R: Send + Sync + std::fmt::Debug + 'static,
11521{
11522 fn from(
11523 err: ::aws_smithy_runtime_api::client::result::SdkError<
11524 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
11525 R,
11526 >,
11527 ) -> Self {
11528 match err {
11529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11532 source: err.into(),
11533 }),
11534 }
11535 }
11536}
11537impl From<crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
11538 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
11539 match err {
11540 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
11541 }
11542 }
11543}
11544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
11545 for Error
11546where
11547 R: Send + Sync + std::fmt::Debug + 'static,
11548{
11549 fn from(
11550 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
11551 ) -> Self {
11552 match err {
11553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11556 source: err.into(),
11557 }),
11558 }
11559 }
11560}
11561impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
11562 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
11563 match err {
11564 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
11565 }
11566 }
11567}
11568impl<R>
11569 From<
11570 ::aws_smithy_runtime_api::client::result::SdkError<
11571 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11572 R,
11573 >,
11574 > for Error
11575where
11576 R: Send + Sync + std::fmt::Debug + 'static,
11577{
11578 fn from(
11579 err: ::aws_smithy_runtime_api::client::result::SdkError<
11580 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11581 R,
11582 >,
11583 ) -> Self {
11584 match err {
11585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11588 source: err.into(),
11589 }),
11590 }
11591 }
11592}
11593impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
11594 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
11595 match err {
11596 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
11597 Error::Unhandled(inner)
11598 }
11599 }
11600 }
11601}
11602impl<R>
11603 From<
11604 ::aws_smithy_runtime_api::client::result::SdkError<
11605 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
11606 R,
11607 >,
11608 > for Error
11609where
11610 R: Send + Sync + std::fmt::Debug + 'static,
11611{
11612 fn from(
11613 err: ::aws_smithy_runtime_api::client::result::SdkError<
11614 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
11615 R,
11616 >,
11617 ) -> Self {
11618 match err {
11619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11622 source: err.into(),
11623 }),
11624 }
11625 }
11626}
11627impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
11628 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
11629 match err {
11630 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
11631 Error::Unhandled(inner)
11632 }
11633 }
11634 }
11635}
11636impl<R>
11637 From<
11638 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
11639 > for Error
11640where
11641 R: Send + Sync + std::fmt::Debug + 'static,
11642{
11643 fn from(
11644 err: ::aws_smithy_runtime_api::client::result::SdkError<
11645 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
11646 R,
11647 >,
11648 ) -> Self {
11649 match err {
11650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11653 source: err.into(),
11654 }),
11655 }
11656 }
11657}
11658impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
11659 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
11660 match err {
11661 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
11662 }
11663 }
11664}
11665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
11666 for Error
11667where
11668 R: Send + Sync + std::fmt::Debug + 'static,
11669{
11670 fn from(
11671 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
11672 ) -> Self {
11673 match err {
11674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11677 source: err.into(),
11678 }),
11679 }
11680 }
11681}
11682impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
11683 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
11684 match err {
11685 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
11686 }
11687 }
11688}
11689impl<R>
11690 From<
11691 ::aws_smithy_runtime_api::client::result::SdkError<
11692 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
11693 R,
11694 >,
11695 > for Error
11696where
11697 R: Send + Sync + std::fmt::Debug + 'static,
11698{
11699 fn from(
11700 err: ::aws_smithy_runtime_api::client::result::SdkError<
11701 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
11702 R,
11703 >,
11704 ) -> Self {
11705 match err {
11706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11709 source: err.into(),
11710 }),
11711 }
11712 }
11713}
11714impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
11715 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
11716 match err {
11717 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
11718 Error::Unhandled(inner)
11719 }
11720 }
11721 }
11722}
11723impl<R>
11724 From<
11725 ::aws_smithy_runtime_api::client::result::SdkError<
11726 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
11727 R,
11728 >,
11729 > for Error
11730where
11731 R: Send + Sync + std::fmt::Debug + 'static,
11732{
11733 fn from(
11734 err: ::aws_smithy_runtime_api::client::result::SdkError<
11735 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
11736 R,
11737 >,
11738 ) -> Self {
11739 match err {
11740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11743 source: err.into(),
11744 }),
11745 }
11746 }
11747}
11748impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
11749 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
11750 match err {
11751 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
11752 Error::Unhandled(inner)
11753 }
11754 }
11755 }
11756}
11757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
11758 for Error
11759where
11760 R: Send + Sync + std::fmt::Debug + 'static,
11761{
11762 fn from(
11763 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
11764 ) -> Self {
11765 match err {
11766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11769 source: err.into(),
11770 }),
11771 }
11772 }
11773}
11774impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
11775 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
11776 match err {
11777 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
11778 }
11779 }
11780}
11781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
11782where
11783 R: Send + Sync + std::fmt::Debug + 'static,
11784{
11785 fn from(
11786 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
11787 ) -> Self {
11788 match err {
11789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11792 source: err.into(),
11793 }),
11794 }
11795 }
11796}
11797impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
11798 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
11799 match err {
11800 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11801 }
11802 }
11803}
11804impl<R>
11805 From<
11806 ::aws_smithy_runtime_api::client::result::SdkError<
11807 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
11808 R,
11809 >,
11810 > for Error
11811where
11812 R: Send + Sync + std::fmt::Debug + 'static,
11813{
11814 fn from(
11815 err: ::aws_smithy_runtime_api::client::result::SdkError<
11816 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
11817 R,
11818 >,
11819 ) -> Self {
11820 match err {
11821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11824 source: err.into(),
11825 }),
11826 }
11827 }
11828}
11829impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
11830 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
11831 match err {
11832 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
11833 }
11834 }
11835}
11836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
11837where
11838 R: Send + Sync + std::fmt::Debug + 'static,
11839{
11840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
11841 match err {
11842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11845 source: err.into(),
11846 }),
11847 }
11848 }
11849}
11850impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
11851 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
11852 match err {
11853 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
11854 }
11855 }
11856}
11857impl<R>
11858 From<
11859 ::aws_smithy_runtime_api::client::result::SdkError<
11860 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
11861 R,
11862 >,
11863 > for Error
11864where
11865 R: Send + Sync + std::fmt::Debug + 'static,
11866{
11867 fn from(
11868 err: ::aws_smithy_runtime_api::client::result::SdkError<
11869 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
11870 R,
11871 >,
11872 ) -> Self {
11873 match err {
11874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11877 source: err.into(),
11878 }),
11879 }
11880 }
11881}
11882impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
11883 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
11884 match err {
11885 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
11886 Error::Unhandled(inner)
11887 }
11888 }
11889 }
11890}
11891impl<R>
11892 From<
11893 ::aws_smithy_runtime_api::client::result::SdkError<
11894 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
11895 R,
11896 >,
11897 > for Error
11898where
11899 R: Send + Sync + std::fmt::Debug + 'static,
11900{
11901 fn from(
11902 err: ::aws_smithy_runtime_api::client::result::SdkError<
11903 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
11904 R,
11905 >,
11906 ) -> Self {
11907 match err {
11908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11911 source: err.into(),
11912 }),
11913 }
11914 }
11915}
11916impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
11917 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
11918 match err {
11919 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
11920 Error::Unhandled(inner)
11921 }
11922 }
11923 }
11924}
11925impl<R>
11926 From<
11927 ::aws_smithy_runtime_api::client::result::SdkError<
11928 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
11929 R,
11930 >,
11931 > for Error
11932where
11933 R: Send + Sync + std::fmt::Debug + 'static,
11934{
11935 fn from(
11936 err: ::aws_smithy_runtime_api::client::result::SdkError<
11937 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
11938 R,
11939 >,
11940 ) -> Self {
11941 match err {
11942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11945 source: err.into(),
11946 }),
11947 }
11948 }
11949}
11950impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
11951 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
11952 match err {
11953 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
11954 Error::Unhandled(inner)
11955 }
11956 }
11957 }
11958}
11959impl<R>
11960 From<
11961 ::aws_smithy_runtime_api::client::result::SdkError<
11962 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
11963 R,
11964 >,
11965 > for Error
11966where
11967 R: Send + Sync + std::fmt::Debug + 'static,
11968{
11969 fn from(
11970 err: ::aws_smithy_runtime_api::client::result::SdkError<
11971 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
11972 R,
11973 >,
11974 ) -> Self {
11975 match err {
11976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11979 source: err.into(),
11980 }),
11981 }
11982 }
11983}
11984impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
11985 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
11986 match err {
11987 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
11988 }
11989 }
11990}
11991impl<R>
11992 From<
11993 ::aws_smithy_runtime_api::client::result::SdkError<
11994 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
11995 R,
11996 >,
11997 > for Error
11998where
11999 R: Send + Sync + std::fmt::Debug + 'static,
12000{
12001 fn from(
12002 err: ::aws_smithy_runtime_api::client::result::SdkError<
12003 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12004 R,
12005 >,
12006 ) -> Self {
12007 match err {
12008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12011 source: err.into(),
12012 }),
12013 }
12014 }
12015}
12016impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
12017 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
12018 match err {
12019 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
12020 }
12021 }
12022}
12023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
12024where
12025 R: Send + Sync + std::fmt::Debug + 'static,
12026{
12027 fn from(
12028 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
12029 ) -> Self {
12030 match err {
12031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12034 source: err.into(),
12035 }),
12036 }
12037 }
12038}
12039impl From<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
12040 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
12041 match err {
12042 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
12043 }
12044 }
12045}
12046impl<R>
12047 From<
12048 ::aws_smithy_runtime_api::client::result::SdkError<
12049 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12050 R,
12051 >,
12052 > for Error
12053where
12054 R: Send + Sync + std::fmt::Debug + 'static,
12055{
12056 fn from(
12057 err: ::aws_smithy_runtime_api::client::result::SdkError<
12058 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12059 R,
12060 >,
12061 ) -> Self {
12062 match err {
12063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12066 source: err.into(),
12067 }),
12068 }
12069 }
12070}
12071impl From<crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
12072 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
12073 match err {
12074 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
12075 Error::Unhandled(inner)
12076 }
12077 }
12078 }
12079}
12080impl<R>
12081 From<
12082 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
12083 > for Error
12084where
12085 R: Send + Sync + std::fmt::Debug + 'static,
12086{
12087 fn from(
12088 err: ::aws_smithy_runtime_api::client::result::SdkError<
12089 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
12090 R,
12091 >,
12092 ) -> Self {
12093 match err {
12094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12097 source: err.into(),
12098 }),
12099 }
12100 }
12101}
12102impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
12103 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
12104 match err {
12105 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
12106 }
12107 }
12108}
12109impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
12110 for Error
12111where
12112 R: Send + Sync + std::fmt::Debug + 'static,
12113{
12114 fn from(
12115 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
12116 ) -> Self {
12117 match err {
12118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12121 source: err.into(),
12122 }),
12123 }
12124 }
12125}
12126impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
12127 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
12128 match err {
12129 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
12130 }
12131 }
12132}
12133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
12134where
12135 R: Send + Sync + std::fmt::Debug + 'static,
12136{
12137 fn from(
12138 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
12139 ) -> Self {
12140 match err {
12141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12144 source: err.into(),
12145 }),
12146 }
12147 }
12148}
12149impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
12150 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
12151 match err {
12152 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
12153 }
12154 }
12155}
12156impl<R>
12157 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
12158 for Error
12159where
12160 R: Send + Sync + std::fmt::Debug + 'static,
12161{
12162 fn from(
12163 err: ::aws_smithy_runtime_api::client::result::SdkError<
12164 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
12165 R,
12166 >,
12167 ) -> Self {
12168 match err {
12169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12172 source: err.into(),
12173 }),
12174 }
12175 }
12176}
12177impl From<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
12178 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
12179 match err {
12180 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
12181 }
12182 }
12183}
12184impl<R>
12185 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, R>>
12186 for Error
12187where
12188 R: Send + Sync + std::fmt::Debug + 'static,
12189{
12190 fn from(
12191 err: ::aws_smithy_runtime_api::client::result::SdkError<
12192 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError,
12193 R,
12194 >,
12195 ) -> Self {
12196 match err {
12197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12200 source: err.into(),
12201 }),
12202 }
12203 }
12204}
12205impl From<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
12206 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
12207 match err {
12208 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12209 }
12210 }
12211}
12212impl<R>
12213 From<
12214 ::aws_smithy_runtime_api::client::result::SdkError<
12215 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12216 R,
12217 >,
12218 > for Error
12219where
12220 R: Send + Sync + std::fmt::Debug + 'static,
12221{
12222 fn from(
12223 err: ::aws_smithy_runtime_api::client::result::SdkError<
12224 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12225 R,
12226 >,
12227 ) -> Self {
12228 match err {
12229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12232 source: err.into(),
12233 }),
12234 }
12235 }
12236}
12237impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
12238 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
12239 match err {
12240 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
12241 Error::Unhandled(inner)
12242 }
12243 }
12244 }
12245}
12246impl<R>
12247 From<
12248 ::aws_smithy_runtime_api::client::result::SdkError<
12249 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12250 R,
12251 >,
12252 > for Error
12253where
12254 R: Send + Sync + std::fmt::Debug + 'static,
12255{
12256 fn from(
12257 err: ::aws_smithy_runtime_api::client::result::SdkError<
12258 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12259 R,
12260 >,
12261 ) -> Self {
12262 match err {
12263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12266 source: err.into(),
12267 }),
12268 }
12269 }
12270}
12271impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
12272 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
12273 match err {
12274 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
12275 Error::Unhandled(inner)
12276 }
12277 }
12278 }
12279}
12280impl<R>
12281 From<
12282 ::aws_smithy_runtime_api::client::result::SdkError<
12283 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12284 R,
12285 >,
12286 > for Error
12287where
12288 R: Send + Sync + std::fmt::Debug + 'static,
12289{
12290 fn from(
12291 err: ::aws_smithy_runtime_api::client::result::SdkError<
12292 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12293 R,
12294 >,
12295 ) -> Self {
12296 match err {
12297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12300 source: err.into(),
12301 }),
12302 }
12303 }
12304}
12305impl From<crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
12306 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
12307 match err {
12308 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
12309 Error::Unhandled(inner)
12310 }
12311 }
12312 }
12313}
12314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
12315 for Error
12316where
12317 R: Send + Sync + std::fmt::Debug + 'static,
12318{
12319 fn from(
12320 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
12321 ) -> Self {
12322 match err {
12323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12326 source: err.into(),
12327 }),
12328 }
12329 }
12330}
12331impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
12332 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
12333 match err {
12334 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
12335 }
12336 }
12337}
12338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
12339 for Error
12340where
12341 R: Send + Sync + std::fmt::Debug + 'static,
12342{
12343 fn from(
12344 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
12345 ) -> Self {
12346 match err {
12347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12350 source: err.into(),
12351 }),
12352 }
12353 }
12354}
12355impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
12356 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
12357 match err {
12358 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12359 }
12360 }
12361}
12362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
12363where
12364 R: Send + Sync + std::fmt::Debug + 'static,
12365{
12366 fn from(
12367 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
12368 ) -> Self {
12369 match err {
12370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12373 source: err.into(),
12374 }),
12375 }
12376 }
12377}
12378impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
12379 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
12380 match err {
12381 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12382 }
12383 }
12384}
12385impl<R>
12386 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
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::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
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::enable_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
12407 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
12408 match err {
12409 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12410 }
12411 }
12412}
12413impl<R>
12414 From<
12415 ::aws_smithy_runtime_api::client::result::SdkError<
12416 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12417 R,
12418 >,
12419 > for Error
12420where
12421 R: Send + Sync + std::fmt::Debug + 'static,
12422{
12423 fn from(
12424 err: ::aws_smithy_runtime_api::client::result::SdkError<
12425 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12426 R,
12427 >,
12428 ) -> Self {
12429 match err {
12430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12433 source: err.into(),
12434 }),
12435 }
12436 }
12437}
12438impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12439 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12440 match err {
12441 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12442 inner,
12443 ) => Error::Unhandled(inner),
12444 }
12445 }
12446}
12447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
12448where
12449 R: Send + Sync + std::fmt::Debug + 'static,
12450{
12451 fn from(
12452 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
12453 ) -> Self {
12454 match err {
12455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12458 source: err.into(),
12459 }),
12460 }
12461 }
12462}
12463impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
12464 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
12465 match err {
12466 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12467 }
12468 }
12469}
12470impl<R>
12471 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
12472 for Error
12473where
12474 R: Send + Sync + std::fmt::Debug + 'static,
12475{
12476 fn from(
12477 err: ::aws_smithy_runtime_api::client::result::SdkError<
12478 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
12479 R,
12480 >,
12481 ) -> Self {
12482 match err {
12483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12486 source: err.into(),
12487 }),
12488 }
12489 }
12490}
12491impl From<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
12492 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
12493 match err {
12494 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12495 }
12496 }
12497}
12498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
12499where
12500 R: Send + Sync + std::fmt::Debug + 'static,
12501{
12502 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
12503 match err {
12504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12507 source: err.into(),
12508 }),
12509 }
12510 }
12511}
12512impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
12513 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
12514 match err {
12515 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12516 }
12517 }
12518}
12519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
12520 for Error
12521where
12522 R: Send + Sync + std::fmt::Debug + 'static,
12523{
12524 fn from(
12525 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
12526 ) -> Self {
12527 match err {
12528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12531 source: err.into(),
12532 }),
12533 }
12534 }
12535}
12536impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
12537 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
12538 match err {
12539 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12540 }
12541 }
12542}
12543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
12544where
12545 R: Send + Sync + std::fmt::Debug + 'static,
12546{
12547 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
12548 match err {
12549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12552 source: err.into(),
12553 }),
12554 }
12555 }
12556}
12557impl From<crate::operation::enable_image::EnableImageError> for Error {
12558 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
12559 match err {
12560 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
12561 }
12562 }
12563}
12564impl<R>
12565 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
12566 for Error
12567where
12568 R: Send + Sync + std::fmt::Debug + 'static,
12569{
12570 fn from(
12571 err: ::aws_smithy_runtime_api::client::result::SdkError<
12572 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
12573 R,
12574 >,
12575 ) -> Self {
12576 match err {
12577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12580 source: err.into(),
12581 }),
12582 }
12583 }
12584}
12585impl From<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError> for Error {
12586 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
12587 match err {
12588 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12589 }
12590 }
12591}
12592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
12593where
12594 R: Send + Sync + std::fmt::Debug + 'static,
12595{
12596 fn from(
12597 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
12598 ) -> Self {
12599 match err {
12600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12603 source: err.into(),
12604 }),
12605 }
12606 }
12607}
12608impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
12609 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
12610 match err {
12611 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
12612 }
12613 }
12614}
12615impl<R>
12616 From<
12617 ::aws_smithy_runtime_api::client::result::SdkError<
12618 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
12619 R,
12620 >,
12621 > for Error
12622where
12623 R: Send + Sync + std::fmt::Debug + 'static,
12624{
12625 fn from(
12626 err: ::aws_smithy_runtime_api::client::result::SdkError<
12627 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
12628 R,
12629 >,
12630 ) -> Self {
12631 match err {
12632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12635 source: err.into(),
12636 }),
12637 }
12638 }
12639}
12640impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
12641 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
12642 match err {
12643 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
12644 Error::Unhandled(inner)
12645 }
12646 }
12647 }
12648}
12649impl<R>
12650 From<
12651 ::aws_smithy_runtime_api::client::result::SdkError<
12652 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
12653 R,
12654 >,
12655 > for Error
12656where
12657 R: Send + Sync + std::fmt::Debug + 'static,
12658{
12659 fn from(
12660 err: ::aws_smithy_runtime_api::client::result::SdkError<
12661 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
12662 R,
12663 >,
12664 ) -> Self {
12665 match err {
12666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12669 source: err.into(),
12670 }),
12671 }
12672 }
12673}
12674impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
12675 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
12676 match err {
12677 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12678 Error::Unhandled(inner)
12679 }
12680 }
12681 }
12682}
12683impl<R>
12684 From<
12685 ::aws_smithy_runtime_api::client::result::SdkError<
12686 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
12687 R,
12688 >,
12689 > for Error
12690where
12691 R: Send + Sync + std::fmt::Debug + 'static,
12692{
12693 fn from(
12694 err: ::aws_smithy_runtime_api::client::result::SdkError<
12695 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
12696 R,
12697 >,
12698 ) -> Self {
12699 match err {
12700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12703 source: err.into(),
12704 }),
12705 }
12706 }
12707}
12708impl From<crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
12709 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
12710 match err {
12711 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
12712 inner,
12713 ) => Error::Unhandled(inner),
12714 }
12715 }
12716}
12717impl<R>
12718 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
12719 for Error
12720where
12721 R: Send + Sync + std::fmt::Debug + 'static,
12722{
12723 fn from(
12724 err: ::aws_smithy_runtime_api::client::result::SdkError<
12725 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
12726 R,
12727 >,
12728 ) -> Self {
12729 match err {
12730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12733 source: err.into(),
12734 }),
12735 }
12736 }
12737}
12738impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
12739 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
12740 match err {
12741 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12742 }
12743 }
12744}
12745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
12746 for Error
12747where
12748 R: Send + Sync + std::fmt::Debug + 'static,
12749{
12750 fn from(
12751 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
12752 ) -> Self {
12753 match err {
12754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12757 source: err.into(),
12758 }),
12759 }
12760 }
12761}
12762impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
12763 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
12764 match err {
12765 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12766 }
12767 }
12768}
12769impl<R>
12770 From<
12771 ::aws_smithy_runtime_api::client::result::SdkError<
12772 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
12773 R,
12774 >,
12775 > for Error
12776where
12777 R: Send + Sync + std::fmt::Debug + 'static,
12778{
12779 fn from(
12780 err: ::aws_smithy_runtime_api::client::result::SdkError<
12781 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
12782 R,
12783 >,
12784 ) -> Self {
12785 match err {
12786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12789 source: err.into(),
12790 }),
12791 }
12792 }
12793}
12794impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
12795 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
12796 match err {
12797 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12798 }
12799 }
12800}
12801impl<R>
12802 From<
12803 ::aws_smithy_runtime_api::client::result::SdkError<
12804 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
12805 R,
12806 >,
12807 > for Error
12808where
12809 R: Send + Sync + std::fmt::Debug + 'static,
12810{
12811 fn from(
12812 err: ::aws_smithy_runtime_api::client::result::SdkError<
12813 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
12814 R,
12815 >,
12816 ) -> Self {
12817 match err {
12818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12821 source: err.into(),
12822 }),
12823 }
12824 }
12825}
12826impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
12827 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
12828 match err {
12829 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
12830 Error::Unhandled(inner)
12831 }
12832 }
12833 }
12834}
12835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
12836 for Error
12837where
12838 R: Send + Sync + std::fmt::Debug + 'static,
12839{
12840 fn from(
12841 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
12842 ) -> Self {
12843 match err {
12844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12847 source: err.into(),
12848 }),
12849 }
12850 }
12851}
12852impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
12853 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
12854 match err {
12855 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12856 }
12857 }
12858}
12859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
12860where
12861 R: Send + Sync + std::fmt::Debug + 'static,
12862{
12863 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
12864 match err {
12865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12868 source: err.into(),
12869 }),
12870 }
12871 }
12872}
12873impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
12874 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
12875 match err {
12876 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
12877 }
12878 }
12879}
12880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
12881where
12882 R: Send + Sync + std::fmt::Debug + 'static,
12883{
12884 fn from(
12885 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
12886 ) -> Self {
12887 match err {
12888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12891 source: err.into(),
12892 }),
12893 }
12894 }
12895}
12896impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
12897 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
12898 match err {
12899 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12900 }
12901 }
12902}
12903impl<R>
12904 From<
12905 ::aws_smithy_runtime_api::client::result::SdkError<
12906 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
12907 R,
12908 >,
12909 > for Error
12910where
12911 R: Send + Sync + std::fmt::Debug + 'static,
12912{
12913 fn from(
12914 err: ::aws_smithy_runtime_api::client::result::SdkError<
12915 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
12916 R,
12917 >,
12918 ) -> Self {
12919 match err {
12920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12923 source: err.into(),
12924 }),
12925 }
12926 }
12927}
12928impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
12929 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
12930 match err {
12931 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12932 }
12933 }
12934}
12935impl<R>
12936 From<
12937 ::aws_smithy_runtime_api::client::result::SdkError<
12938 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
12939 R,
12940 >,
12941 > for Error
12942where
12943 R: Send + Sync + std::fmt::Debug + 'static,
12944{
12945 fn from(
12946 err: ::aws_smithy_runtime_api::client::result::SdkError<
12947 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
12948 R,
12949 >,
12950 ) -> Self {
12951 match err {
12952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12955 source: err.into(),
12956 }),
12957 }
12958 }
12959}
12960impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
12961 fn from(
12962 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
12963 ) -> Self {
12964 match err {
12965 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
12966 }
12967 }
12968}
12969impl<R>
12970 From<
12971 ::aws_smithy_runtime_api::client::result::SdkError<
12972 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
12973 R,
12974 >,
12975 > for Error
12976where
12977 R: Send + Sync + std::fmt::Debug + 'static,
12978{
12979 fn from(
12980 err: ::aws_smithy_runtime_api::client::result::SdkError<
12981 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
12982 R,
12983 >,
12984 ) -> Self {
12985 match err {
12986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12989 source: err.into(),
12990 }),
12991 }
12992 }
12993}
12994impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
12995 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
12996 match err {
12997 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
12998 Error::Unhandled(inner)
12999 }
13000 }
13001 }
13002}
13003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
13004where
13005 R: Send + Sync + std::fmt::Debug + 'static,
13006{
13007 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
13008 match err {
13009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13012 source: err.into(),
13013 }),
13014 }
13015 }
13016}
13017impl From<crate::operation::export_image::ExportImageError> for Error {
13018 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
13019 match err {
13020 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
13021 }
13022 }
13023}
13024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
13025 for Error
13026where
13027 R: Send + Sync + std::fmt::Debug + 'static,
13028{
13029 fn from(
13030 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
13031 ) -> Self {
13032 match err {
13033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13036 source: err.into(),
13037 }),
13038 }
13039 }
13040}
13041impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
13042 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
13043 match err {
13044 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
13045 }
13046 }
13047}
13048impl<R>
13049 From<
13050 ::aws_smithy_runtime_api::client::result::SdkError<
13051 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13052 R,
13053 >,
13054 > for Error
13055where
13056 R: Send + Sync + std::fmt::Debug + 'static,
13057{
13058 fn from(
13059 err: ::aws_smithy_runtime_api::client::result::SdkError<
13060 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13061 R,
13062 >,
13063 ) -> Self {
13064 match err {
13065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13068 source: err.into(),
13069 }),
13070 }
13071 }
13072}
13073impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
13074 fn from(
13075 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13076 ) -> Self {
13077 match err {
13078 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
13079 }
13080 }
13081}
13082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>>
13083 for Error
13084where
13085 R: Send + Sync + std::fmt::Debug + 'static,
13086{
13087 fn from(
13088 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>,
13089 ) -> Self {
13090 match err {
13091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13094 source: err.into(),
13095 }),
13096 }
13097 }
13098}
13099impl From<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
13100 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
13101 match err {
13102 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
13103 }
13104 }
13105}
13106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
13107 for Error
13108where
13109 R: Send + Sync + std::fmt::Debug + 'static,
13110{
13111 fn from(
13112 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
13113 ) -> Self {
13114 match err {
13115 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13116 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13117 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13118 source: err.into(),
13119 }),
13120 }
13121 }
13122}
13123impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
13124 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
13125 match err {
13126 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13127 }
13128 }
13129}
13130impl<R>
13131 From<
13132 ::aws_smithy_runtime_api::client::result::SdkError<
13133 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13134 R,
13135 >,
13136 > for Error
13137where
13138 R: Send + Sync + std::fmt::Debug + 'static,
13139{
13140 fn from(
13141 err: ::aws_smithy_runtime_api::client::result::SdkError<
13142 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13143 R,
13144 >,
13145 ) -> Self {
13146 match err {
13147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13150 source: err.into(),
13151 }),
13152 }
13153 }
13154}
13155impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
13156 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
13157 match err {
13158 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
13159 Error::Unhandled(inner)
13160 }
13161 }
13162 }
13163}
13164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
13165 for Error
13166where
13167 R: Send + Sync + std::fmt::Debug + 'static,
13168{
13169 fn from(
13170 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
13171 ) -> Self {
13172 match err {
13173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13176 source: err.into(),
13177 }),
13178 }
13179 }
13180}
13181impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
13182 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
13183 match err {
13184 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13185 }
13186 }
13187}
13188impl<R>
13189 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
13190 for Error
13191where
13192 R: Send + Sync + std::fmt::Debug + 'static,
13193{
13194 fn from(
13195 err: ::aws_smithy_runtime_api::client::result::SdkError<
13196 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
13197 R,
13198 >,
13199 ) -> Self {
13200 match err {
13201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13204 source: err.into(),
13205 }),
13206 }
13207 }
13208}
13209impl From<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
13210 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
13211 match err {
13212 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
13213 }
13214 }
13215}
13216impl<R>
13217 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, R>>
13218 for Error
13219where
13220 R: Send + Sync + std::fmt::Debug + 'static,
13221{
13222 fn from(
13223 err: ::aws_smithy_runtime_api::client::result::SdkError<
13224 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError,
13225 R,
13226 >,
13227 ) -> Self {
13228 match err {
13229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13232 source: err.into(),
13233 }),
13234 }
13235 }
13236}
13237impl From<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
13238 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
13239 match err {
13240 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
13241 }
13242 }
13243}
13244impl<R>
13245 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, R>>
13246 for Error
13247where
13248 R: Send + Sync + std::fmt::Debug + 'static,
13249{
13250 fn from(
13251 err: ::aws_smithy_runtime_api::client::result::SdkError<
13252 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError,
13253 R,
13254 >,
13255 ) -> Self {
13256 match err {
13257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13260 source: err.into(),
13261 }),
13262 }
13263 }
13264}
13265impl From<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError> for Error {
13266 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
13267 match err {
13268 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
13269 }
13270 }
13271}
13272impl<R>
13273 From<
13274 ::aws_smithy_runtime_api::client::result::SdkError<
13275 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13276 R,
13277 >,
13278 > for Error
13279where
13280 R: Send + Sync + std::fmt::Debug + 'static,
13281{
13282 fn from(
13283 err: ::aws_smithy_runtime_api::client::result::SdkError<
13284 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13285 R,
13286 >,
13287 ) -> 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::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
13298 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
13299 match err {
13300 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
13301 Error::Unhandled(inner)
13302 }
13303 }
13304 }
13305}
13306impl<R>
13307 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
13308 for Error
13309where
13310 R: Send + Sync + std::fmt::Debug + 'static,
13311{
13312 fn from(
13313 err: ::aws_smithy_runtime_api::client::result::SdkError<
13314 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
13315 R,
13316 >,
13317 ) -> Self {
13318 match err {
13319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13322 source: err.into(),
13323 }),
13324 }
13325 }
13326}
13327impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
13328 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
13329 match err {
13330 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
13331 }
13332 }
13333}
13334impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
13335where
13336 R: Send + Sync + std::fmt::Debug + 'static,
13337{
13338 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
13339 match err {
13340 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13341 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13342 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13343 source: err.into(),
13344 }),
13345 }
13346 }
13347}
13348impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
13349 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
13350 match err {
13351 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
13352 }
13353 }
13354}
13355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
13356where
13357 R: Send + Sync + std::fmt::Debug + 'static,
13358{
13359 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
13360 match err {
13361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13364 source: err.into(),
13365 }),
13366 }
13367 }
13368}
13369impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
13370 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
13371 match err {
13372 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
13373 }
13374 }
13375}
13376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
13377where
13378 R: Send + Sync + std::fmt::Debug + 'static,
13379{
13380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
13381 match err {
13382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13385 source: err.into(),
13386 }),
13387 }
13388 }
13389}
13390impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
13391 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
13392 match err {
13393 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
13394 }
13395 }
13396}
13397impl<R>
13398 From<
13399 ::aws_smithy_runtime_api::client::result::SdkError<
13400 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13401 R,
13402 >,
13403 > for Error
13404where
13405 R: Send + Sync + std::fmt::Debug + 'static,
13406{
13407 fn from(
13408 err: ::aws_smithy_runtime_api::client::result::SdkError<
13409 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13410 R,
13411 >,
13412 ) -> Self {
13413 match err {
13414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13417 source: err.into(),
13418 }),
13419 }
13420 }
13421}
13422impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
13423 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
13424 match err {
13425 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
13426 Error::Unhandled(inner)
13427 }
13428 }
13429 }
13430}
13431impl<R>
13432 From<
13433 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
13434 > for Error
13435where
13436 R: Send + Sync + std::fmt::Debug + 'static,
13437{
13438 fn from(
13439 err: ::aws_smithy_runtime_api::client::result::SdkError<
13440 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
13441 R,
13442 >,
13443 ) -> Self {
13444 match err {
13445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13448 source: err.into(),
13449 }),
13450 }
13451 }
13452}
13453impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
13454 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
13455 match err {
13456 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
13457 }
13458 }
13459}
13460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
13461 for Error
13462where
13463 R: Send + Sync + std::fmt::Debug + 'static,
13464{
13465 fn from(
13466 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
13467 ) -> Self {
13468 match err {
13469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13472 source: err.into(),
13473 }),
13474 }
13475 }
13476}
13477impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
13478 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
13479 match err {
13480 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
13481 }
13482 }
13483}
13484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
13485 for Error
13486where
13487 R: Send + Sync + std::fmt::Debug + 'static,
13488{
13489 fn from(
13490 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
13491 ) -> Self {
13492 match err {
13493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13496 source: err.into(),
13497 }),
13498 }
13499 }
13500}
13501impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
13502 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
13503 match err {
13504 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13505 }
13506 }
13507}
13508impl<R>
13509 From<
13510 ::aws_smithy_runtime_api::client::result::SdkError<
13511 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13512 R,
13513 >,
13514 > for Error
13515where
13516 R: Send + Sync + std::fmt::Debug + 'static,
13517{
13518 fn from(
13519 err: ::aws_smithy_runtime_api::client::result::SdkError<
13520 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13521 R,
13522 >,
13523 ) -> Self {
13524 match err {
13525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13528 source: err.into(),
13529 }),
13530 }
13531 }
13532}
13533impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
13534 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
13535 match err {
13536 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
13537 }
13538 }
13539}
13540impl<R>
13541 From<
13542 ::aws_smithy_runtime_api::client::result::SdkError<
13543 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13544 R,
13545 >,
13546 > for Error
13547where
13548 R: Send + Sync + std::fmt::Debug + 'static,
13549{
13550 fn from(
13551 err: ::aws_smithy_runtime_api::client::result::SdkError<
13552 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13553 R,
13554 >,
13555 ) -> Self {
13556 match err {
13557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13560 source: err.into(),
13561 }),
13562 }
13563 }
13564}
13565impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
13566 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
13567 match err {
13568 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
13569 }
13570 }
13571}
13572impl<R>
13573 From<
13574 ::aws_smithy_runtime_api::client::result::SdkError<
13575 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
13576 R,
13577 >,
13578 > for Error
13579where
13580 R: Send + Sync + std::fmt::Debug + 'static,
13581{
13582 fn from(
13583 err: ::aws_smithy_runtime_api::client::result::SdkError<
13584 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
13585 R,
13586 >,
13587 ) -> Self {
13588 match err {
13589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13592 source: err.into(),
13593 }),
13594 }
13595 }
13596}
13597impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
13598 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
13599 match err {
13600 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
13601 Error::Unhandled(inner)
13602 }
13603 }
13604 }
13605}
13606impl<R>
13607 From<
13608 ::aws_smithy_runtime_api::client::result::SdkError<
13609 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13610 R,
13611 >,
13612 > for Error
13613where
13614 R: Send + Sync + std::fmt::Debug + 'static,
13615{
13616 fn from(
13617 err: ::aws_smithy_runtime_api::client::result::SdkError<
13618 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13619 R,
13620 >,
13621 ) -> Self {
13622 match err {
13623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13626 source: err.into(),
13627 }),
13628 }
13629 }
13630}
13631impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
13632 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
13633 match err {
13634 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
13635 }
13636 }
13637}
13638impl<R>
13639 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
13640 for Error
13641where
13642 R: Send + Sync + std::fmt::Debug + 'static,
13643{
13644 fn from(
13645 err: ::aws_smithy_runtime_api::client::result::SdkError<
13646 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
13647 R,
13648 >,
13649 ) -> Self {
13650 match err {
13651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13654 source: err.into(),
13655 }),
13656 }
13657 }
13658}
13659impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
13660 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
13661 match err {
13662 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
13663 }
13664 }
13665}
13666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
13667where
13668 R: Send + Sync + std::fmt::Debug + 'static,
13669{
13670 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
13671 match err {
13672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13675 source: err.into(),
13676 }),
13677 }
13678 }
13679}
13680impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
13681 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
13682 match err {
13683 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
13684 }
13685 }
13686}
13687impl<R>
13688 From<
13689 ::aws_smithy_runtime_api::client::result::SdkError<
13690 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13691 R,
13692 >,
13693 > for Error
13694where
13695 R: Send + Sync + std::fmt::Debug + 'static,
13696{
13697 fn from(
13698 err: ::aws_smithy_runtime_api::client::result::SdkError<
13699 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13700 R,
13701 >,
13702 ) -> Self {
13703 match err {
13704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13707 source: err.into(),
13708 }),
13709 }
13710 }
13711}
13712impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
13713 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
13714 match err {
13715 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
13716 Error::Unhandled(inner)
13717 }
13718 }
13719 }
13720}
13721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
13722where
13723 R: Send + Sync + std::fmt::Debug + 'static,
13724{
13725 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
13726 match err {
13727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13730 source: err.into(),
13731 }),
13732 }
13733 }
13734}
13735impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
13736 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
13737 match err {
13738 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
13739 }
13740 }
13741}
13742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
13743where
13744 R: Send + Sync + std::fmt::Debug + 'static,
13745{
13746 fn from(
13747 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
13748 ) -> Self {
13749 match err {
13750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13753 source: err.into(),
13754 }),
13755 }
13756 }
13757}
13758impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
13759 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
13760 match err {
13761 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
13762 }
13763 }
13764}
13765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
13766 for Error
13767where
13768 R: Send + Sync + std::fmt::Debug + 'static,
13769{
13770 fn from(
13771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
13772 ) -> Self {
13773 match err {
13774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13777 source: err.into(),
13778 }),
13779 }
13780 }
13781}
13782impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
13783 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
13784 match err {
13785 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
13786 }
13787 }
13788}
13789impl<R>
13790 From<
13791 ::aws_smithy_runtime_api::client::result::SdkError<
13792 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
13793 R,
13794 >,
13795 > for Error
13796where
13797 R: Send + Sync + std::fmt::Debug + 'static,
13798{
13799 fn from(
13800 err: ::aws_smithy_runtime_api::client::result::SdkError<
13801 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
13802 R,
13803 >,
13804 ) -> 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_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
13815 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
13816 match err {
13817 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
13818 Error::Unhandled(inner)
13819 }
13820 }
13821 }
13822}
13823impl<R>
13824 From<
13825 ::aws_smithy_runtime_api::client::result::SdkError<
13826 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
13827 R,
13828 >,
13829 > for Error
13830where
13831 R: Send + Sync + std::fmt::Debug + 'static,
13832{
13833 fn from(
13834 err: ::aws_smithy_runtime_api::client::result::SdkError<
13835 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
13836 R,
13837 >,
13838 ) -> Self {
13839 match err {
13840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13843 source: err.into(),
13844 }),
13845 }
13846 }
13847}
13848impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
13849 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
13850 match err {
13851 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13852 }
13853 }
13854}
13855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
13856 for Error
13857where
13858 R: Send + Sync + std::fmt::Debug + 'static,
13859{
13860 fn from(
13861 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
13862 ) -> Self {
13863 match err {
13864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13867 source: err.into(),
13868 }),
13869 }
13870 }
13871}
13872impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
13873 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
13874 match err {
13875 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
13876 }
13877 }
13878}
13879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
13880where
13881 R: Send + Sync + std::fmt::Debug + 'static,
13882{
13883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
13884 match err {
13885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13888 source: err.into(),
13889 }),
13890 }
13891 }
13892}
13893impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
13894 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
13895 match err {
13896 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13897 }
13898 }
13899}
13900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
13901where
13902 R: Send + Sync + std::fmt::Debug + 'static,
13903{
13904 fn from(
13905 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
13906 ) -> Self {
13907 match err {
13908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13911 source: err.into(),
13912 }),
13913 }
13914 }
13915}
13916impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
13917 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
13918 match err {
13919 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13920 }
13921 }
13922}
13923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
13924where
13925 R: Send + Sync + std::fmt::Debug + 'static,
13926{
13927 fn from(
13928 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
13929 ) -> Self {
13930 match err {
13931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13934 source: err.into(),
13935 }),
13936 }
13937 }
13938}
13939impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
13940 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
13941 match err {
13942 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
13943 }
13944 }
13945}
13946impl<R>
13947 From<
13948 ::aws_smithy_runtime_api::client::result::SdkError<
13949 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
13950 R,
13951 >,
13952 > for Error
13953where
13954 R: Send + Sync + std::fmt::Debug + 'static,
13955{
13956 fn from(
13957 err: ::aws_smithy_runtime_api::client::result::SdkError<
13958 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
13959 R,
13960 >,
13961 ) -> Self {
13962 match err {
13963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13966 source: err.into(),
13967 }),
13968 }
13969 }
13970}
13971impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
13972 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
13973 match err {
13974 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
13975 Error::Unhandled(inner)
13976 }
13977 }
13978 }
13979}
13980impl<R>
13981 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
13982 for Error
13983where
13984 R: Send + Sync + std::fmt::Debug + 'static,
13985{
13986 fn from(
13987 err: ::aws_smithy_runtime_api::client::result::SdkError<
13988 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
13989 R,
13990 >,
13991 ) -> Self {
13992 match err {
13993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13996 source: err.into(),
13997 }),
13998 }
13999 }
14000}
14001impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
14002 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
14003 match err {
14004 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
14005 }
14006 }
14007}
14008impl<R>
14009 From<
14010 ::aws_smithy_runtime_api::client::result::SdkError<
14011 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14012 R,
14013 >,
14014 > for Error
14015where
14016 R: Send + Sync + std::fmt::Debug + 'static,
14017{
14018 fn from(
14019 err: ::aws_smithy_runtime_api::client::result::SdkError<
14020 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14021 R,
14022 >,
14023 ) -> Self {
14024 match err {
14025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14028 source: err.into(),
14029 }),
14030 }
14031 }
14032}
14033impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
14034 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
14035 match err {
14036 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
14037 inner,
14038 ) => Error::Unhandled(inner),
14039 }
14040 }
14041}
14042impl<R>
14043 From<
14044 ::aws_smithy_runtime_api::client::result::SdkError<
14045 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14046 R,
14047 >,
14048 > for Error
14049where
14050 R: Send + Sync + std::fmt::Debug + 'static,
14051{
14052 fn from(
14053 err: ::aws_smithy_runtime_api::client::result::SdkError<
14054 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14055 R,
14056 >,
14057 ) -> Self {
14058 match err {
14059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14062 source: err.into(),
14063 }),
14064 }
14065 }
14066}
14067impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
14068 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
14069 match err {
14070 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
14071 Error::Unhandled(inner)
14072 }
14073 }
14074 }
14075}
14076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
14077where
14078 R: Send + Sync + std::fmt::Debug + 'static,
14079{
14080 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
14081 match err {
14082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14085 source: err.into(),
14086 }),
14087 }
14088 }
14089}
14090impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
14091 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
14092 match err {
14093 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
14094 }
14095 }
14096}
14097impl<R>
14098 From<
14099 ::aws_smithy_runtime_api::client::result::SdkError<
14100 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14101 R,
14102 >,
14103 > for Error
14104where
14105 R: Send + Sync + std::fmt::Debug + 'static,
14106{
14107 fn from(
14108 err: ::aws_smithy_runtime_api::client::result::SdkError<
14109 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14110 R,
14111 >,
14112 ) -> Self {
14113 match err {
14114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14117 source: err.into(),
14118 }),
14119 }
14120 }
14121}
14122impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
14123 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
14124 match err {
14125 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
14126 Error::Unhandled(inner)
14127 }
14128 }
14129 }
14130}
14131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
14132 for Error
14133where
14134 R: Send + Sync + std::fmt::Debug + 'static,
14135{
14136 fn from(
14137 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
14138 ) -> Self {
14139 match err {
14140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14143 source: err.into(),
14144 }),
14145 }
14146 }
14147}
14148impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
14149 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
14150 match err {
14151 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
14152 }
14153 }
14154}
14155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
14156 for Error
14157where
14158 R: Send + Sync + std::fmt::Debug + 'static,
14159{
14160 fn from(
14161 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
14162 ) -> Self {
14163 match err {
14164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14167 source: err.into(),
14168 }),
14169 }
14170 }
14171}
14172impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
14173 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
14174 match err {
14175 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
14176 }
14177 }
14178}
14179impl<R>
14180 From<
14181 ::aws_smithy_runtime_api::client::result::SdkError<
14182 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14183 R,
14184 >,
14185 > for Error
14186where
14187 R: Send + Sync + std::fmt::Debug + 'static,
14188{
14189 fn from(
14190 err: ::aws_smithy_runtime_api::client::result::SdkError<
14191 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14192 R,
14193 >,
14194 ) -> Self {
14195 match err {
14196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14199 source: err.into(),
14200 }),
14201 }
14202 }
14203}
14204impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
14205 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
14206 match err {
14207 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
14208 }
14209 }
14210}
14211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
14212 for Error
14213where
14214 R: Send + Sync + std::fmt::Debug + 'static,
14215{
14216 fn from(
14217 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
14218 ) -> Self {
14219 match err {
14220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14223 source: err.into(),
14224 }),
14225 }
14226 }
14227}
14228impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
14229 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
14230 match err {
14231 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
14232 }
14233 }
14234}
14235impl<R>
14236 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
14237 for Error
14238where
14239 R: Send + Sync + std::fmt::Debug + 'static,
14240{
14241 fn from(
14242 err: ::aws_smithy_runtime_api::client::result::SdkError<
14243 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
14244 R,
14245 >,
14246 ) -> Self {
14247 match err {
14248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14251 source: err.into(),
14252 }),
14253 }
14254 }
14255}
14256impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
14257 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
14258 match err {
14259 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
14260 }
14261 }
14262}
14263impl<R>
14264 From<
14265 ::aws_smithy_runtime_api::client::result::SdkError<
14266 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14267 R,
14268 >,
14269 > for Error
14270where
14271 R: Send + Sync + std::fmt::Debug + 'static,
14272{
14273 fn from(
14274 err: ::aws_smithy_runtime_api::client::result::SdkError<
14275 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14276 R,
14277 >,
14278 ) -> Self {
14279 match err {
14280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14283 source: err.into(),
14284 }),
14285 }
14286 }
14287}
14288impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
14289 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
14290 match err {
14291 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
14292 Error::Unhandled(inner)
14293 }
14294 }
14295 }
14296}
14297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
14298 for Error
14299where
14300 R: Send + Sync + std::fmt::Debug + 'static,
14301{
14302 fn from(
14303 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
14304 ) -> Self {
14305 match err {
14306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14309 source: err.into(),
14310 }),
14311 }
14312 }
14313}
14314impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
14315 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
14316 match err {
14317 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
14318 }
14319 }
14320}
14321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
14322 for Error
14323where
14324 R: Send + Sync + std::fmt::Debug + 'static,
14325{
14326 fn from(
14327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
14328 ) -> 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_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
14339 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
14340 match err {
14341 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
14342 }
14343 }
14344}
14345impl<R>
14346 From<
14347 ::aws_smithy_runtime_api::client::result::SdkError<
14348 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
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_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
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_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
14371 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
14372 match err {
14373 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
14374 Error::Unhandled(inner)
14375 }
14376 }
14377 }
14378}
14379impl<R>
14380 From<
14381 ::aws_smithy_runtime_api::client::result::SdkError<
14382 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14383 R,
14384 >,
14385 > for Error
14386where
14387 R: Send + Sync + std::fmt::Debug + 'static,
14388{
14389 fn from(
14390 err: ::aws_smithy_runtime_api::client::result::SdkError<
14391 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14392 R,
14393 >,
14394 ) -> Self {
14395 match err {
14396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14399 source: err.into(),
14400 }),
14401 }
14402 }
14403}
14404impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
14405 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
14406 match err {
14407 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
14408 inner,
14409 ) => Error::Unhandled(inner),
14410 }
14411 }
14412}
14413impl<R>
14414 From<
14415 ::aws_smithy_runtime_api::client::result::SdkError<
14416 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14417 R,
14418 >,
14419 > for Error
14420where
14421 R: Send + Sync + std::fmt::Debug + 'static,
14422{
14423 fn from(
14424 err: ::aws_smithy_runtime_api::client::result::SdkError<
14425 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14426 R,
14427 >,
14428 ) -> Self {
14429 match err {
14430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14433 source: err.into(),
14434 }),
14435 }
14436 }
14437}
14438impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
14439 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
14440 match err {
14441 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
14442 Error::Unhandled(inner)
14443 }
14444 }
14445 }
14446}
14447impl<R>
14448 From<
14449 ::aws_smithy_runtime_api::client::result::SdkError<
14450 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14451 R,
14452 >,
14453 > for Error
14454where
14455 R: Send + Sync + std::fmt::Debug + 'static,
14456{
14457 fn from(
14458 err: ::aws_smithy_runtime_api::client::result::SdkError<
14459 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14460 R,
14461 >,
14462 ) -> Self {
14463 match err {
14464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14467 source: err.into(),
14468 }),
14469 }
14470 }
14471}
14472impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
14473 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
14474 match err {
14475 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
14476 Error::Unhandled(inner)
14477 }
14478 }
14479 }
14480}
14481impl<R>
14482 From<
14483 ::aws_smithy_runtime_api::client::result::SdkError<
14484 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14485 R,
14486 >,
14487 > for Error
14488where
14489 R: Send + Sync + std::fmt::Debug + 'static,
14490{
14491 fn from(
14492 err: ::aws_smithy_runtime_api::client::result::SdkError<
14493 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14494 R,
14495 >,
14496 ) -> Self {
14497 match err {
14498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14501 source: err.into(),
14502 }),
14503 }
14504 }
14505}
14506impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
14507 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
14508 match err {
14509 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
14510 Error::Unhandled(inner)
14511 }
14512 }
14513 }
14514}
14515impl<R>
14516 From<
14517 ::aws_smithy_runtime_api::client::result::SdkError<
14518 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14519 R,
14520 >,
14521 > for Error
14522where
14523 R: Send + Sync + std::fmt::Debug + 'static,
14524{
14525 fn from(
14526 err: ::aws_smithy_runtime_api::client::result::SdkError<
14527 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14528 R,
14529 >,
14530 ) -> Self {
14531 match err {
14532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14535 source: err.into(),
14536 }),
14537 }
14538 }
14539}
14540impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
14541 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
14542 match err {
14543 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
14544 Error::Unhandled(inner)
14545 }
14546 }
14547 }
14548}
14549impl<R>
14550 From<
14551 ::aws_smithy_runtime_api::client::result::SdkError<
14552 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14553 R,
14554 >,
14555 > for Error
14556where
14557 R: Send + Sync + std::fmt::Debug + 'static,
14558{
14559 fn from(
14560 err: ::aws_smithy_runtime_api::client::result::SdkError<
14561 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14562 R,
14563 >,
14564 ) -> Self {
14565 match err {
14566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14569 source: err.into(),
14570 }),
14571 }
14572 }
14573}
14574impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
14575 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
14576 match err {
14577 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
14578 Error::Unhandled(inner)
14579 }
14580 }
14581 }
14582}
14583impl<R>
14584 From<
14585 ::aws_smithy_runtime_api::client::result::SdkError<
14586 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14587 R,
14588 >,
14589 > for Error
14590where
14591 R: Send + Sync + std::fmt::Debug + 'static,
14592{
14593 fn from(
14594 err: ::aws_smithy_runtime_api::client::result::SdkError<
14595 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14596 R,
14597 >,
14598 ) -> Self {
14599 match err {
14600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14603 source: err.into(),
14604 }),
14605 }
14606 }
14607}
14608impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
14609 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
14610 match err {
14611 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14612 }
14613 }
14614}
14615impl<R>
14616 From<
14617 ::aws_smithy_runtime_api::client::result::SdkError<
14618 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14619 R,
14620 >,
14621 > for Error
14622where
14623 R: Send + Sync + std::fmt::Debug + 'static,
14624{
14625 fn from(
14626 err: ::aws_smithy_runtime_api::client::result::SdkError<
14627 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14628 R,
14629 >,
14630 ) -> Self {
14631 match err {
14632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14635 source: err.into(),
14636 }),
14637 }
14638 }
14639}
14640impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
14641 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
14642 match err {
14643 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
14644 Error::Unhandled(inner)
14645 }
14646 }
14647 }
14648}
14649impl<R>
14650 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
14651 for Error
14652where
14653 R: Send + Sync + std::fmt::Debug + 'static,
14654{
14655 fn from(
14656 err: ::aws_smithy_runtime_api::client::result::SdkError<
14657 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
14658 R,
14659 >,
14660 ) -> Self {
14661 match err {
14662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14665 source: err.into(),
14666 }),
14667 }
14668 }
14669}
14670impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
14671 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
14672 match err {
14673 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14674 }
14675 }
14676}
14677impl<R>
14678 From<
14679 ::aws_smithy_runtime_api::client::result::SdkError<
14680 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
14681 R,
14682 >,
14683 > for Error
14684where
14685 R: Send + Sync + std::fmt::Debug + 'static,
14686{
14687 fn from(
14688 err: ::aws_smithy_runtime_api::client::result::SdkError<
14689 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
14690 R,
14691 >,
14692 ) -> Self {
14693 match err {
14694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14697 source: err.into(),
14698 }),
14699 }
14700 }
14701}
14702impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
14703 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
14704 match err {
14705 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
14706 Error::Unhandled(inner)
14707 }
14708 }
14709 }
14710}
14711impl<R>
14712 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
14713 for Error
14714where
14715 R: Send + Sync + std::fmt::Debug + 'static,
14716{
14717 fn from(
14718 err: ::aws_smithy_runtime_api::client::result::SdkError<
14719 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
14720 R,
14721 >,
14722 ) -> Self {
14723 match err {
14724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14727 source: err.into(),
14728 }),
14729 }
14730 }
14731}
14732impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
14733 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
14734 match err {
14735 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
14736 }
14737 }
14738}
14739impl<R>
14740 From<
14741 ::aws_smithy_runtime_api::client::result::SdkError<
14742 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
14743 R,
14744 >,
14745 > for Error
14746where
14747 R: Send + Sync + std::fmt::Debug + 'static,
14748{
14749 fn from(
14750 err: ::aws_smithy_runtime_api::client::result::SdkError<
14751 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
14752 R,
14753 >,
14754 ) -> Self {
14755 match err {
14756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14759 source: err.into(),
14760 }),
14761 }
14762 }
14763}
14764impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
14765 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
14766 match err {
14767 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
14768 }
14769 }
14770}
14771impl<R>
14772 From<
14773 ::aws_smithy_runtime_api::client::result::SdkError<
14774 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
14775 R,
14776 >,
14777 > for Error
14778where
14779 R: Send + Sync + std::fmt::Debug + 'static,
14780{
14781 fn from(
14782 err: ::aws_smithy_runtime_api::client::result::SdkError<
14783 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
14784 R,
14785 >,
14786 ) -> Self {
14787 match err {
14788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14791 source: err.into(),
14792 }),
14793 }
14794 }
14795}
14796impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
14797 fn from(
14798 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
14799 ) -> Self {
14800 match err {
14801 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
14802 }
14803 }
14804}
14805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
14806where
14807 R: Send + Sync + std::fmt::Debug + 'static,
14808{
14809 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
14810 match err {
14811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14814 source: err.into(),
14815 }),
14816 }
14817 }
14818}
14819impl From<crate::operation::import_image::ImportImageError> for Error {
14820 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
14821 match err {
14822 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
14823 }
14824 }
14825}
14826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
14827where
14828 R: Send + Sync + std::fmt::Debug + 'static,
14829{
14830 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
14831 match err {
14832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14835 source: err.into(),
14836 }),
14837 }
14838 }
14839}
14840impl From<crate::operation::import_instance::ImportInstanceError> for Error {
14841 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
14842 match err {
14843 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
14844 }
14845 }
14846}
14847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
14848where
14849 R: Send + Sync + std::fmt::Debug + 'static,
14850{
14851 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
14852 match err {
14853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14856 source: err.into(),
14857 }),
14858 }
14859 }
14860}
14861impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
14862 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
14863 match err {
14864 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
14865 }
14866 }
14867}
14868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
14869where
14870 R: Send + Sync + std::fmt::Debug + 'static,
14871{
14872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
14873 match err {
14874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14877 source: err.into(),
14878 }),
14879 }
14880 }
14881}
14882impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
14883 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
14884 match err {
14885 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
14886 }
14887 }
14888}
14889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
14890where
14891 R: Send + Sync + std::fmt::Debug + 'static,
14892{
14893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
14894 match err {
14895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14898 source: err.into(),
14899 }),
14900 }
14901 }
14902}
14903impl From<crate::operation::import_volume::ImportVolumeError> for Error {
14904 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
14905 match err {
14906 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
14907 }
14908 }
14909}
14910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
14911 for Error
14912where
14913 R: Send + Sync + std::fmt::Debug + 'static,
14914{
14915 fn from(
14916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
14917 ) -> Self {
14918 match err {
14919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14922 source: err.into(),
14923 }),
14924 }
14925 }
14926}
14927impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
14928 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
14929 match err {
14930 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
14931 }
14932 }
14933}
14934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
14935 for Error
14936where
14937 R: Send + Sync + std::fmt::Debug + 'static,
14938{
14939 fn from(
14940 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
14941 ) -> Self {
14942 match err {
14943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14946 source: err.into(),
14947 }),
14948 }
14949 }
14950}
14951impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
14952 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
14953 match err {
14954 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
14955 }
14956 }
14957}
14958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
14959where
14960 R: Send + Sync + std::fmt::Debug + 'static,
14961{
14962 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
14963 match err {
14964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14967 source: err.into(),
14968 }),
14969 }
14970 }
14971}
14972impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
14973 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
14974 match err {
14975 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
14976 }
14977 }
14978}
14979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
14980where
14981 R: Send + Sync + std::fmt::Debug + 'static,
14982{
14983 fn from(
14984 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
14985 ) -> Self {
14986 match err {
14987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14990 source: err.into(),
14991 }),
14992 }
14993 }
14994}
14995impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
14996 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
14997 match err {
14998 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
14999 }
15000 }
15001}
15002impl<R>
15003 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
15004 for Error
15005where
15006 R: Send + Sync + std::fmt::Debug + 'static,
15007{
15008 fn from(
15009 err: ::aws_smithy_runtime_api::client::result::SdkError<
15010 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
15011 R,
15012 >,
15013 ) -> Self {
15014 match err {
15015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15018 source: err.into(),
15019 }),
15020 }
15021 }
15022}
15023impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
15024 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
15025 match err {
15026 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
15027 }
15028 }
15029}
15030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
15031 for Error
15032where
15033 R: Send + Sync + std::fmt::Debug + 'static,
15034{
15035 fn from(
15036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
15037 ) -> Self {
15038 match err {
15039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15042 source: err.into(),
15043 }),
15044 }
15045 }
15046}
15047impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
15048 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
15049 match err {
15050 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
15051 }
15052 }
15053}
15054impl<R>
15055 From<
15056 ::aws_smithy_runtime_api::client::result::SdkError<
15057 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15058 R,
15059 >,
15060 > for Error
15061where
15062 R: Send + Sync + std::fmt::Debug + 'static,
15063{
15064 fn from(
15065 err: ::aws_smithy_runtime_api::client::result::SdkError<
15066 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15067 R,
15068 >,
15069 ) -> Self {
15070 match err {
15071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15074 source: err.into(),
15075 }),
15076 }
15077 }
15078}
15079impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
15080 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
15081 match err {
15082 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
15083 }
15084 }
15085}
15086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
15087 for Error
15088where
15089 R: Send + Sync + std::fmt::Debug + 'static,
15090{
15091 fn from(
15092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
15093 ) -> Self {
15094 match err {
15095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15098 source: err.into(),
15099 }),
15100 }
15101 }
15102}
15103impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
15104 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
15105 match err {
15106 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15107 }
15108 }
15109}
15110impl<R>
15111 From<
15112 ::aws_smithy_runtime_api::client::result::SdkError<
15113 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15114 R,
15115 >,
15116 > for Error
15117where
15118 R: Send + Sync + std::fmt::Debug + 'static,
15119{
15120 fn from(
15121 err: ::aws_smithy_runtime_api::client::result::SdkError<
15122 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15123 R,
15124 >,
15125 ) -> Self {
15126 match err {
15127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15130 source: err.into(),
15131 }),
15132 }
15133 }
15134}
15135impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
15136 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
15137 match err {
15138 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
15139 }
15140 }
15141}
15142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
15143 for Error
15144where
15145 R: Send + Sync + std::fmt::Debug + 'static,
15146{
15147 fn from(
15148 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
15149 ) -> Self {
15150 match err {
15151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15154 source: err.into(),
15155 }),
15156 }
15157 }
15158}
15159impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
15160 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
15161 match err {
15162 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
15163 }
15164 }
15165}
15166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
15167where
15168 R: Send + Sync + std::fmt::Debug + 'static,
15169{
15170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
15171 match err {
15172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15175 source: err.into(),
15176 }),
15177 }
15178 }
15179}
15180impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
15181 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
15182 match err {
15183 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
15184 }
15185 }
15186}
15187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
15188 for Error
15189where
15190 R: Send + Sync + std::fmt::Debug + 'static,
15191{
15192 fn from(
15193 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
15194 ) -> Self {
15195 match err {
15196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15199 source: err.into(),
15200 }),
15201 }
15202 }
15203}
15204impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
15205 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
15206 match err {
15207 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15208 }
15209 }
15210}
15211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
15212where
15213 R: Send + Sync + std::fmt::Debug + 'static,
15214{
15215 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
15216 match err {
15217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15220 source: err.into(),
15221 }),
15222 }
15223 }
15224}
15225impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
15226 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
15227 match err {
15228 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
15229 }
15230 }
15231}
15232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
15233 for Error
15234where
15235 R: Send + Sync + std::fmt::Debug + 'static,
15236{
15237 fn from(
15238 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
15239 ) -> Self {
15240 match err {
15241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15244 source: err.into(),
15245 }),
15246 }
15247 }
15248}
15249impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
15250 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
15251 match err {
15252 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15253 }
15254 }
15255}
15256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
15257where
15258 R: Send + Sync + std::fmt::Debug + 'static,
15259{
15260 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
15261 match err {
15262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15265 source: err.into(),
15266 }),
15267 }
15268 }
15269}
15270impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
15271 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
15272 match err {
15273 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15274 }
15275 }
15276}
15277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
15278where
15279 R: Send + Sync + std::fmt::Debug + 'static,
15280{
15281 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
15282 match err {
15283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15286 source: err.into(),
15287 }),
15288 }
15289 }
15290}
15291impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
15292 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
15293 match err {
15294 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15295 }
15296 }
15297}
15298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
15299 for Error
15300where
15301 R: Send + Sync + std::fmt::Debug + 'static,
15302{
15303 fn from(
15304 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
15305 ) -> Self {
15306 match err {
15307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15310 source: err.into(),
15311 }),
15312 }
15313 }
15314}
15315impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
15316 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
15317 match err {
15318 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15319 }
15320 }
15321}
15322impl<R>
15323 From<
15324 ::aws_smithy_runtime_api::client::result::SdkError<
15325 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15326 R,
15327 >,
15328 > for Error
15329where
15330 R: Send + Sync + std::fmt::Debug + 'static,
15331{
15332 fn from(
15333 err: ::aws_smithy_runtime_api::client::result::SdkError<
15334 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15335 R,
15336 >,
15337 ) -> Self {
15338 match err {
15339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15342 source: err.into(),
15343 }),
15344 }
15345 }
15346}
15347impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
15348 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
15349 match err {
15350 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
15351 Error::Unhandled(inner)
15352 }
15353 }
15354 }
15355}
15356impl<R>
15357 From<
15358 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
15359 > for Error
15360where
15361 R: Send + Sync + std::fmt::Debug + 'static,
15362{
15363 fn from(
15364 err: ::aws_smithy_runtime_api::client::result::SdkError<
15365 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
15366 R,
15367 >,
15368 ) -> Self {
15369 match err {
15370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15373 source: err.into(),
15374 }),
15375 }
15376 }
15377}
15378impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
15379 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
15380 match err {
15381 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15382 }
15383 }
15384}
15385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
15386 for Error
15387where
15388 R: Send + Sync + std::fmt::Debug + 'static,
15389{
15390 fn from(
15391 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
15392 ) -> Self {
15393 match err {
15394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15397 source: err.into(),
15398 }),
15399 }
15400 }
15401}
15402impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
15403 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
15404 match err {
15405 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15406 }
15407 }
15408}
15409impl<R>
15410 From<
15411 ::aws_smithy_runtime_api::client::result::SdkError<
15412 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15413 R,
15414 >,
15415 > for Error
15416where
15417 R: Send + Sync + std::fmt::Debug + 'static,
15418{
15419 fn from(
15420 err: ::aws_smithy_runtime_api::client::result::SdkError<
15421 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15422 R,
15423 >,
15424 ) -> Self {
15425 match err {
15426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15429 source: err.into(),
15430 }),
15431 }
15432 }
15433}
15434impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
15435 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
15436 match err {
15437 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
15438 Error::Unhandled(inner)
15439 }
15440 }
15441 }
15442}
15443impl<R>
15444 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
15445 for Error
15446where
15447 R: Send + Sync + std::fmt::Debug + 'static,
15448{
15449 fn from(
15450 err: ::aws_smithy_runtime_api::client::result::SdkError<
15451 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
15452 R,
15453 >,
15454 ) -> Self {
15455 match err {
15456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15459 source: err.into(),
15460 }),
15461 }
15462 }
15463}
15464impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
15465 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
15466 match err {
15467 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
15468 }
15469 }
15470}
15471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
15472 for Error
15473where
15474 R: Send + Sync + std::fmt::Debug + 'static,
15475{
15476 fn from(
15477 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
15478 ) -> Self {
15479 match err {
15480 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15481 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15482 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15483 source: err.into(),
15484 }),
15485 }
15486 }
15487}
15488impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
15489 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
15490 match err {
15491 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
15492 }
15493 }
15494}
15495impl<R>
15496 From<
15497 ::aws_smithy_runtime_api::client::result::SdkError<
15498 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15499 R,
15500 >,
15501 > for Error
15502where
15503 R: Send + Sync + std::fmt::Debug + 'static,
15504{
15505 fn from(
15506 err: ::aws_smithy_runtime_api::client::result::SdkError<
15507 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15508 R,
15509 >,
15510 ) -> Self {
15511 match err {
15512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15515 source: err.into(),
15516 }),
15517 }
15518 }
15519}
15520impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
15521 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
15522 match err {
15523 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15524 }
15525 }
15526}
15527impl<R>
15528 From<
15529 ::aws_smithy_runtime_api::client::result::SdkError<
15530 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15531 R,
15532 >,
15533 > for Error
15534where
15535 R: Send + Sync + std::fmt::Debug + 'static,
15536{
15537 fn from(
15538 err: ::aws_smithy_runtime_api::client::result::SdkError<
15539 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15540 R,
15541 >,
15542 ) -> Self {
15543 match err {
15544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15547 source: err.into(),
15548 }),
15549 }
15550 }
15551}
15552impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
15553 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
15554 match err {
15555 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
15556 }
15557 }
15558}
15559impl<R>
15560 From<
15561 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
15562 > for Error
15563where
15564 R: Send + Sync + std::fmt::Debug + 'static,
15565{
15566 fn from(
15567 err: ::aws_smithy_runtime_api::client::result::SdkError<
15568 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
15569 R,
15570 >,
15571 ) -> Self {
15572 match err {
15573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15576 source: err.into(),
15577 }),
15578 }
15579 }
15580}
15581impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
15582 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
15583 match err {
15584 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15585 }
15586 }
15587}
15588impl<R>
15589 From<
15590 ::aws_smithy_runtime_api::client::result::SdkError<
15591 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15592 R,
15593 >,
15594 > for Error
15595where
15596 R: Send + Sync + std::fmt::Debug + 'static,
15597{
15598 fn from(
15599 err: ::aws_smithy_runtime_api::client::result::SdkError<
15600 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15601 R,
15602 >,
15603 ) -> Self {
15604 match err {
15605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15608 source: err.into(),
15609 }),
15610 }
15611 }
15612}
15613impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
15614 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
15615 match err {
15616 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
15617 Error::Unhandled(inner)
15618 }
15619 }
15620 }
15621}
15622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
15623 for Error
15624where
15625 R: Send + Sync + std::fmt::Debug + 'static,
15626{
15627 fn from(
15628 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
15629 ) -> Self {
15630 match err {
15631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15634 source: err.into(),
15635 }),
15636 }
15637 }
15638}
15639impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
15640 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
15641 match err {
15642 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
15643 }
15644 }
15645}
15646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
15647where
15648 R: Send + Sync + std::fmt::Debug + 'static,
15649{
15650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
15651 match err {
15652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15655 source: err.into(),
15656 }),
15657 }
15658 }
15659}
15660impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
15661 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
15662 match err {
15663 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
15664 }
15665 }
15666}
15667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
15668where
15669 R: Send + Sync + std::fmt::Debug + 'static,
15670{
15671 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
15672 match err {
15673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15676 source: err.into(),
15677 }),
15678 }
15679 }
15680}
15681impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
15682 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
15683 match err {
15684 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
15685 }
15686 }
15687}
15688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
15689 for Error
15690where
15691 R: Send + Sync + std::fmt::Debug + 'static,
15692{
15693 fn from(
15694 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
15695 ) -> Self {
15696 match err {
15697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15700 source: err.into(),
15701 }),
15702 }
15703 }
15704}
15705impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
15706 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
15707 match err {
15708 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
15709 }
15710 }
15711}
15712impl<R>
15713 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
15714 for Error
15715where
15716 R: Send + Sync + std::fmt::Debug + 'static,
15717{
15718 fn from(
15719 err: ::aws_smithy_runtime_api::client::result::SdkError<
15720 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
15721 R,
15722 >,
15723 ) -> Self {
15724 match err {
15725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15728 source: err.into(),
15729 }),
15730 }
15731 }
15732}
15733impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
15734 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
15735 match err {
15736 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
15737 }
15738 }
15739}
15740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
15741where
15742 R: Send + Sync + std::fmt::Debug + 'static,
15743{
15744 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
15745 match err {
15746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15749 source: err.into(),
15750 }),
15751 }
15752 }
15753}
15754impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
15755 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
15756 match err {
15757 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
15758 }
15759 }
15760}
15761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
15762where
15763 R: Send + Sync + std::fmt::Debug + 'static,
15764{
15765 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
15766 match err {
15767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15770 source: err.into(),
15771 }),
15772 }
15773 }
15774}
15775impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
15776 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
15777 match err {
15778 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
15779 }
15780 }
15781}
15782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
15783 for Error
15784where
15785 R: Send + Sync + std::fmt::Debug + 'static,
15786{
15787 fn from(
15788 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
15789 ) -> Self {
15790 match err {
15791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15794 source: err.into(),
15795 }),
15796 }
15797 }
15798}
15799impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
15800 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
15801 match err {
15802 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
15803 }
15804 }
15805}
15806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
15807 for Error
15808where
15809 R: Send + Sync + std::fmt::Debug + 'static,
15810{
15811 fn from(
15812 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
15813 ) -> Self {
15814 match err {
15815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15818 source: err.into(),
15819 }),
15820 }
15821 }
15822}
15823impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
15824 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
15825 match err {
15826 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
15827 }
15828 }
15829}
15830impl<R>
15831 From<
15832 ::aws_smithy_runtime_api::client::result::SdkError<
15833 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
15834 R,
15835 >,
15836 > for Error
15837where
15838 R: Send + Sync + std::fmt::Debug + 'static,
15839{
15840 fn from(
15841 err: ::aws_smithy_runtime_api::client::result::SdkError<
15842 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
15843 R,
15844 >,
15845 ) -> Self {
15846 match err {
15847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15850 source: err.into(),
15851 }),
15852 }
15853 }
15854}
15855impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
15856 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
15857 match err {
15858 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15859 }
15860 }
15861}
15862impl<R>
15863 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
15864 for Error
15865where
15866 R: Send + Sync + std::fmt::Debug + 'static,
15867{
15868 fn from(
15869 err: ::aws_smithy_runtime_api::client::result::SdkError<
15870 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
15871 R,
15872 >,
15873 ) -> Self {
15874 match err {
15875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15878 source: err.into(),
15879 }),
15880 }
15881 }
15882}
15883impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
15884 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
15885 match err {
15886 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15887 }
15888 }
15889}
15890impl<R>
15891 From<
15892 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
15893 > for Error
15894where
15895 R: Send + Sync + std::fmt::Debug + 'static,
15896{
15897 fn from(
15898 err: ::aws_smithy_runtime_api::client::result::SdkError<
15899 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
15900 R,
15901 >,
15902 ) -> Self {
15903 match err {
15904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15907 source: err.into(),
15908 }),
15909 }
15910 }
15911}
15912impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
15913 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
15914 match err {
15915 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15916 }
15917 }
15918}
15919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
15920 for Error
15921where
15922 R: Send + Sync + std::fmt::Debug + 'static,
15923{
15924 fn from(
15925 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
15926 ) -> Self {
15927 match err {
15928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15931 source: err.into(),
15932 }),
15933 }
15934 }
15935}
15936impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
15937 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
15938 match err {
15939 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
15940 }
15941 }
15942}
15943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
15944where
15945 R: Send + Sync + std::fmt::Debug + 'static,
15946{
15947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
15948 match err {
15949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15952 source: err.into(),
15953 }),
15954 }
15955 }
15956}
15957impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
15958 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
15959 match err {
15960 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
15961 }
15962 }
15963}
15964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
15965 for Error
15966where
15967 R: Send + Sync + std::fmt::Debug + 'static,
15968{
15969 fn from(
15970 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
15971 ) -> Self {
15972 match err {
15973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15976 source: err.into(),
15977 }),
15978 }
15979 }
15980}
15981impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
15982 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
15983 match err {
15984 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
15985 }
15986 }
15987}
15988impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
15989 for Error
15990where
15991 R: Send + Sync + std::fmt::Debug + 'static,
15992{
15993 fn from(
15994 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
15995 ) -> Self {
15996 match err {
15997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16000 source: err.into(),
16001 }),
16002 }
16003 }
16004}
16005impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
16006 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
16007 match err {
16008 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16009 }
16010 }
16011}
16012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
16013where
16014 R: Send + Sync + std::fmt::Debug + 'static,
16015{
16016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
16017 match err {
16018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16021 source: err.into(),
16022 }),
16023 }
16024 }
16025}
16026impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
16027 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
16028 match err {
16029 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
16030 }
16031 }
16032}
16033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
16034 for Error
16035where
16036 R: Send + Sync + std::fmt::Debug + 'static,
16037{
16038 fn from(
16039 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
16040 ) -> Self {
16041 match err {
16042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16045 source: err.into(),
16046 }),
16047 }
16048 }
16049}
16050impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
16051 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
16052 match err {
16053 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
16054 }
16055 }
16056}
16057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
16058where
16059 R: Send + Sync + std::fmt::Debug + 'static,
16060{
16061 fn from(
16062 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
16063 ) -> Self {
16064 match err {
16065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16068 source: err.into(),
16069 }),
16070 }
16071 }
16072}
16073impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
16074 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
16075 match err {
16076 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16077 }
16078 }
16079}
16080impl<R>
16081 From<
16082 ::aws_smithy_runtime_api::client::result::SdkError<
16083 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16084 R,
16085 >,
16086 > for Error
16087where
16088 R: Send + Sync + std::fmt::Debug + 'static,
16089{
16090 fn from(
16091 err: ::aws_smithy_runtime_api::client::result::SdkError<
16092 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16093 R,
16094 >,
16095 ) -> Self {
16096 match err {
16097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16100 source: err.into(),
16101 }),
16102 }
16103 }
16104}
16105impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
16106 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
16107 match err {
16108 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
16109 Error::Unhandled(inner)
16110 }
16111 }
16112 }
16113}
16114impl<R>
16115 From<
16116 ::aws_smithy_runtime_api::client::result::SdkError<
16117 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16118 R,
16119 >,
16120 > for Error
16121where
16122 R: Send + Sync + std::fmt::Debug + 'static,
16123{
16124 fn from(
16125 err: ::aws_smithy_runtime_api::client::result::SdkError<
16126 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16127 R,
16128 >,
16129 ) -> Self {
16130 match err {
16131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16134 source: err.into(),
16135 }),
16136 }
16137 }
16138}
16139impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
16140 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
16141 match err {
16142 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
16143 }
16144 }
16145}
16146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
16147 for Error
16148where
16149 R: Send + Sync + std::fmt::Debug + 'static,
16150{
16151 fn from(
16152 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
16153 ) -> Self {
16154 match err {
16155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16158 source: err.into(),
16159 }),
16160 }
16161 }
16162}
16163impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
16164 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
16165 match err {
16166 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
16167 }
16168 }
16169}
16170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
16171where
16172 R: Send + Sync + std::fmt::Debug + 'static,
16173{
16174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> 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_transit_gateway::ModifyTransitGatewayError> for Error {
16185 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
16186 match err {
16187 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
16188 }
16189 }
16190}
16191impl<R>
16192 From<
16193 ::aws_smithy_runtime_api::client::result::SdkError<
16194 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16195 R,
16196 >,
16197 > for Error
16198where
16199 R: Send + Sync + std::fmt::Debug + 'static,
16200{
16201 fn from(
16202 err: ::aws_smithy_runtime_api::client::result::SdkError<
16203 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16204 R,
16205 >,
16206 ) -> Self {
16207 match err {
16208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16211 source: err.into(),
16212 }),
16213 }
16214 }
16215}
16216impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
16217 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
16218 match err {
16219 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
16220 Error::Unhandled(inner)
16221 }
16222 }
16223 }
16224}
16225impl<R>
16226 From<
16227 ::aws_smithy_runtime_api::client::result::SdkError<
16228 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16229 R,
16230 >,
16231 > for Error
16232where
16233 R: Send + Sync + std::fmt::Debug + 'static,
16234{
16235 fn from(
16236 err: ::aws_smithy_runtime_api::client::result::SdkError<
16237 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16238 R,
16239 >,
16240 ) -> Self {
16241 match err {
16242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16245 source: err.into(),
16246 }),
16247 }
16248 }
16249}
16250impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
16251 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
16252 match err {
16253 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
16254 Error::Unhandled(inner)
16255 }
16256 }
16257 }
16258}
16259impl<R>
16260 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
16261 for Error
16262where
16263 R: Send + Sync + std::fmt::Debug + 'static,
16264{
16265 fn from(
16266 err: ::aws_smithy_runtime_api::client::result::SdkError<
16267 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
16268 R,
16269 >,
16270 ) -> Self {
16271 match err {
16272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16275 source: err.into(),
16276 }),
16277 }
16278 }
16279}
16280impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
16281 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
16282 match err {
16283 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16284 }
16285 }
16286}
16287impl<R>
16288 From<
16289 ::aws_smithy_runtime_api::client::result::SdkError<
16290 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16291 R,
16292 >,
16293 > for Error
16294where
16295 R: Send + Sync + std::fmt::Debug + 'static,
16296{
16297 fn from(
16298 err: ::aws_smithy_runtime_api::client::result::SdkError<
16299 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16300 R,
16301 >,
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_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
16313 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
16314 match err {
16315 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
16316 Error::Unhandled(inner)
16317 }
16318 }
16319 }
16320}
16321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
16322 for Error
16323where
16324 R: Send + Sync + std::fmt::Debug + 'static,
16325{
16326 fn from(
16327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
16328 ) -> Self {
16329 match err {
16330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16333 source: err.into(),
16334 }),
16335 }
16336 }
16337}
16338impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
16339 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
16340 match err {
16341 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
16342 }
16343 }
16344}
16345impl<R>
16346 From<
16347 ::aws_smithy_runtime_api::client::result::SdkError<
16348 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16349 R,
16350 >,
16351 > for Error
16352where
16353 R: Send + Sync + std::fmt::Debug + 'static,
16354{
16355 fn from(
16356 err: ::aws_smithy_runtime_api::client::result::SdkError<
16357 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16358 R,
16359 >,
16360 ) -> Self {
16361 match err {
16362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16365 source: err.into(),
16366 }),
16367 }
16368 }
16369}
16370impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
16371 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
16372 match err {
16373 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16374 }
16375 }
16376}
16377impl<R>
16378 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
16379 for Error
16380where
16381 R: Send + Sync + std::fmt::Debug + 'static,
16382{
16383 fn from(
16384 err: ::aws_smithy_runtime_api::client::result::SdkError<
16385 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
16386 R,
16387 >,
16388 ) -> Self {
16389 match err {
16390 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16391 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16392 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16393 source: err.into(),
16394 }),
16395 }
16396 }
16397}
16398impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
16399 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
16400 match err {
16401 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
16402 }
16403 }
16404}
16405impl<R>
16406 From<
16407 ::aws_smithy_runtime_api::client::result::SdkError<
16408 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16409 R,
16410 >,
16411 > for Error
16412where
16413 R: Send + Sync + std::fmt::Debug + 'static,
16414{
16415 fn from(
16416 err: ::aws_smithy_runtime_api::client::result::SdkError<
16417 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16418 R,
16419 >,
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_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
16431 fn from(
16432 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16433 ) -> Self {
16434 match err {
16435 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
16436 }
16437 }
16438}
16439impl<R>
16440 From<
16441 ::aws_smithy_runtime_api::client::result::SdkError<
16442 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16443 R,
16444 >,
16445 > for Error
16446where
16447 R: Send + Sync + std::fmt::Debug + 'static,
16448{
16449 fn from(
16450 err: ::aws_smithy_runtime_api::client::result::SdkError<
16451 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16452 R,
16453 >,
16454 ) -> Self {
16455 match err {
16456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16459 source: err.into(),
16460 }),
16461 }
16462 }
16463}
16464impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
16465 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
16466 match err {
16467 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
16468 Error::Unhandled(inner)
16469 }
16470 }
16471 }
16472}
16473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
16474where
16475 R: Send + Sync + std::fmt::Debug + 'static,
16476{
16477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> Self {
16478 match err {
16479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16482 source: err.into(),
16483 }),
16484 }
16485 }
16486}
16487impl From<crate::operation::modify_volume::ModifyVolumeError> for Error {
16488 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
16489 match err {
16490 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
16491 }
16492 }
16493}
16494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
16495where
16496 R: Send + Sync + std::fmt::Debug + 'static,
16497{
16498 fn from(
16499 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
16500 ) -> Self {
16501 match err {
16502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16505 source: err.into(),
16506 }),
16507 }
16508 }
16509}
16510impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
16511 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
16512 match err {
16513 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16514 }
16515 }
16516}
16517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
16518where
16519 R: Send + Sync + std::fmt::Debug + 'static,
16520{
16521 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
16522 match err {
16523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16526 source: err.into(),
16527 }),
16528 }
16529 }
16530}
16531impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
16532 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
16533 match err {
16534 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16535 }
16536 }
16537}
16538impl<R>
16539 From<
16540 ::aws_smithy_runtime_api::client::result::SdkError<
16541 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16542 R,
16543 >,
16544 > for Error
16545where
16546 R: Send + Sync + std::fmt::Debug + 'static,
16547{
16548 fn from(
16549 err: ::aws_smithy_runtime_api::client::result::SdkError<
16550 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16551 R,
16552 >,
16553 ) -> Self {
16554 match err {
16555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16558 source: err.into(),
16559 }),
16560 }
16561 }
16562}
16563impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
16564 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
16565 match err {
16566 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
16567 Error::Unhandled(inner)
16568 }
16569 }
16570 }
16571}
16572impl<R>
16573 From<
16574 ::aws_smithy_runtime_api::client::result::SdkError<
16575 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16576 R,
16577 >,
16578 > for Error
16579where
16580 R: Send + Sync + std::fmt::Debug + 'static,
16581{
16582 fn from(
16583 err: ::aws_smithy_runtime_api::client::result::SdkError<
16584 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16585 R,
16586 >,
16587 ) -> Self {
16588 match err {
16589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16592 source: err.into(),
16593 }),
16594 }
16595 }
16596}
16597impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
16598 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
16599 match err {
16600 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
16601 Error::Unhandled(inner)
16602 }
16603 }
16604 }
16605}
16606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
16607where
16608 R: Send + Sync + std::fmt::Debug + 'static,
16609{
16610 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
16611 match err {
16612 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16613 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16614 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16615 source: err.into(),
16616 }),
16617 }
16618 }
16619}
16620impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
16621 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
16622 match err {
16623 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16624 }
16625 }
16626}
16627impl<R>
16628 From<
16629 ::aws_smithy_runtime_api::client::result::SdkError<
16630 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
16631 R,
16632 >,
16633 > for Error
16634where
16635 R: Send + Sync + std::fmt::Debug + 'static,
16636{
16637 fn from(
16638 err: ::aws_smithy_runtime_api::client::result::SdkError<
16639 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
16640 R,
16641 >,
16642 ) -> Self {
16643 match err {
16644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16647 source: err.into(),
16648 }),
16649 }
16650 }
16651}
16652impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
16653 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
16654 match err {
16655 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
16656 Error::Unhandled(inner)
16657 }
16658 }
16659 }
16660}
16661impl<R>
16662 From<
16663 ::aws_smithy_runtime_api::client::result::SdkError<
16664 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
16665 R,
16666 >,
16667 > for Error
16668where
16669 R: Send + Sync + std::fmt::Debug + 'static,
16670{
16671 fn from(
16672 err: ::aws_smithy_runtime_api::client::result::SdkError<
16673 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
16674 R,
16675 >,
16676 ) -> Self {
16677 match err {
16678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16681 source: err.into(),
16682 }),
16683 }
16684 }
16685}
16686impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
16687 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
16688 match err {
16689 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
16690 Error::Unhandled(inner)
16691 }
16692 }
16693 }
16694}
16695impl<R>
16696 From<
16697 ::aws_smithy_runtime_api::client::result::SdkError<
16698 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
16699 R,
16700 >,
16701 > for Error
16702where
16703 R: Send + Sync + std::fmt::Debug + 'static,
16704{
16705 fn from(
16706 err: ::aws_smithy_runtime_api::client::result::SdkError<
16707 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
16708 R,
16709 >,
16710 ) -> Self {
16711 match err {
16712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16715 source: err.into(),
16716 }),
16717 }
16718 }
16719}
16720impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
16721 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
16722 match err {
16723 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
16724 inner,
16725 ) => Error::Unhandled(inner),
16726 }
16727 }
16728}
16729impl<R>
16730 From<
16731 ::aws_smithy_runtime_api::client::result::SdkError<
16732 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
16733 R,
16734 >,
16735 > for Error
16736where
16737 R: Send + Sync + std::fmt::Debug + 'static,
16738{
16739 fn from(
16740 err: ::aws_smithy_runtime_api::client::result::SdkError<
16741 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
16742 R,
16743 >,
16744 ) -> Self {
16745 match err {
16746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16749 source: err.into(),
16750 }),
16751 }
16752 }
16753}
16754impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
16755 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
16756 match err {
16757 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
16758 Error::Unhandled(inner)
16759 }
16760 }
16761 }
16762}
16763impl<R>
16764 From<
16765 ::aws_smithy_runtime_api::client::result::SdkError<
16766 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
16767 R,
16768 >,
16769 > for Error
16770where
16771 R: Send + Sync + std::fmt::Debug + 'static,
16772{
16773 fn from(
16774 err: ::aws_smithy_runtime_api::client::result::SdkError<
16775 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
16776 R,
16777 >,
16778 ) -> Self {
16779 match err {
16780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16783 source: err.into(),
16784 }),
16785 }
16786 }
16787}
16788impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
16789 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
16790 match err {
16791 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
16792 Error::Unhandled(inner)
16793 }
16794 }
16795 }
16796}
16797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
16798where
16799 R: Send + Sync + std::fmt::Debug + 'static,
16800{
16801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
16802 match err {
16803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16806 source: err.into(),
16807 }),
16808 }
16809 }
16810}
16811impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
16812 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
16813 match err {
16814 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
16815 }
16816 }
16817}
16818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
16819where
16820 R: Send + Sync + std::fmt::Debug + 'static,
16821{
16822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
16823 match err {
16824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16827 source: err.into(),
16828 }),
16829 }
16830 }
16831}
16832impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
16833 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
16834 match err {
16835 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
16836 }
16837 }
16838}
16839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
16840 for Error
16841where
16842 R: Send + Sync + std::fmt::Debug + 'static,
16843{
16844 fn from(
16845 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
16846 ) -> Self {
16847 match err {
16848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16851 source: err.into(),
16852 }),
16853 }
16854 }
16855}
16856impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
16857 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
16858 match err {
16859 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16860 }
16861 }
16862}
16863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
16864 for Error
16865where
16866 R: Send + Sync + std::fmt::Debug + 'static,
16867{
16868 fn from(
16869 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
16870 ) -> Self {
16871 match err {
16872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16875 source: err.into(),
16876 }),
16877 }
16878 }
16879}
16880impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
16881 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
16882 match err {
16883 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
16884 }
16885 }
16886}
16887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
16888 for Error
16889where
16890 R: Send + Sync + std::fmt::Debug + 'static,
16891{
16892 fn from(
16893 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
16894 ) -> Self {
16895 match err {
16896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16899 source: err.into(),
16900 }),
16901 }
16902 }
16903}
16904impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
16905 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
16906 match err {
16907 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16908 }
16909 }
16910}
16911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
16912where
16913 R: Send + Sync + std::fmt::Debug + 'static,
16914{
16915 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
16916 match err {
16917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16920 source: err.into(),
16921 }),
16922 }
16923 }
16924}
16925impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
16926 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
16927 match err {
16928 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
16929 }
16930 }
16931}
16932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
16933where
16934 R: Send + Sync + std::fmt::Debug + 'static,
16935{
16936 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
16937 match err {
16938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16941 source: err.into(),
16942 }),
16943 }
16944 }
16945}
16946impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
16947 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
16948 match err {
16949 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
16950 }
16951 }
16952}
16953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
16954where
16955 R: Send + Sync + std::fmt::Debug + 'static,
16956{
16957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
16958 match err {
16959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16962 source: err.into(),
16963 }),
16964 }
16965 }
16966}
16967impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
16968 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
16969 match err {
16970 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
16971 }
16972 }
16973}
16974impl<R>
16975 From<
16976 ::aws_smithy_runtime_api::client::result::SdkError<
16977 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
16978 R,
16979 >,
16980 > for Error
16981where
16982 R: Send + Sync + std::fmt::Debug + 'static,
16983{
16984 fn from(
16985 err: ::aws_smithy_runtime_api::client::result::SdkError<
16986 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
16987 R,
16988 >,
16989 ) -> Self {
16990 match err {
16991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16994 source: err.into(),
16995 }),
16996 }
16997 }
16998}
16999impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
17000 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
17001 match err {
17002 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17003 }
17004 }
17005}
17006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
17007where
17008 R: Send + Sync + std::fmt::Debug + 'static,
17009{
17010 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
17011 match err {
17012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17015 source: err.into(),
17016 }),
17017 }
17018 }
17019}
17020impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
17021 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
17022 match err {
17023 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
17024 }
17025 }
17026}
17027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
17028where
17029 R: Send + Sync + std::fmt::Debug + 'static,
17030{
17031 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
17032 match err {
17033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17036 source: err.into(),
17037 }),
17038 }
17039 }
17040}
17041impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
17042 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
17043 match err {
17044 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
17045 }
17046 }
17047}
17048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
17049where
17050 R: Send + Sync + std::fmt::Debug + 'static,
17051{
17052 fn from(
17053 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
17054 ) -> Self {
17055 match err {
17056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17059 source: err.into(),
17060 }),
17061 }
17062 }
17063}
17064impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
17065 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
17066 match err {
17067 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17068 }
17069 }
17070}
17071impl<R>
17072 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
17073 for Error
17074where
17075 R: Send + Sync + std::fmt::Debug + 'static,
17076{
17077 fn from(
17078 err: ::aws_smithy_runtime_api::client::result::SdkError<
17079 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
17080 R,
17081 >,
17082 ) -> Self {
17083 match err {
17084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17087 source: err.into(),
17088 }),
17089 }
17090 }
17091}
17092impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
17093 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
17094 match err {
17095 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17096 }
17097 }
17098}
17099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
17100where
17101 R: Send + Sync + std::fmt::Debug + 'static,
17102{
17103 fn from(
17104 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
17105 ) -> Self {
17106 match err {
17107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17110 source: err.into(),
17111 }),
17112 }
17113 }
17114}
17115impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
17116 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
17117 match err {
17118 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
17119 }
17120 }
17121}
17122impl<R>
17123 From<
17124 ::aws_smithy_runtime_api::client::result::SdkError<
17125 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17126 R,
17127 >,
17128 > for Error
17129where
17130 R: Send + Sync + std::fmt::Debug + 'static,
17131{
17132 fn from(
17133 err: ::aws_smithy_runtime_api::client::result::SdkError<
17134 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17135 R,
17136 >,
17137 ) -> Self {
17138 match err {
17139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17142 source: err.into(),
17143 }),
17144 }
17145 }
17146}
17147impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
17148 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
17149 match err {
17150 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
17151 }
17152 }
17153}
17154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
17155 for Error
17156where
17157 R: Send + Sync + std::fmt::Debug + 'static,
17158{
17159 fn from(
17160 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
17161 ) -> Self {
17162 match err {
17163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17166 source: err.into(),
17167 }),
17168 }
17169 }
17170}
17171impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
17172 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
17173 match err {
17174 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
17175 }
17176 }
17177}
17178impl<R>
17179 From<
17180 ::aws_smithy_runtime_api::client::result::SdkError<
17181 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17182 R,
17183 >,
17184 > for Error
17185where
17186 R: Send + Sync + std::fmt::Debug + 'static,
17187{
17188 fn from(
17189 err: ::aws_smithy_runtime_api::client::result::SdkError<
17190 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17191 R,
17192 >,
17193 ) -> Self {
17194 match err {
17195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17198 source: err.into(),
17199 }),
17200 }
17201 }
17202}
17203impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
17204 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
17205 match err {
17206 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
17207 Error::Unhandled(inner)
17208 }
17209 }
17210 }
17211}
17212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
17213 for Error
17214where
17215 R: Send + Sync + std::fmt::Debug + 'static,
17216{
17217 fn from(
17218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
17219 ) -> Self {
17220 match err {
17221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17224 source: err.into(),
17225 }),
17226 }
17227 }
17228}
17229impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
17230 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
17231 match err {
17232 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17233 }
17234 }
17235}
17236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
17237where
17238 R: Send + Sync + std::fmt::Debug + 'static,
17239{
17240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
17241 match err {
17242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17245 source: err.into(),
17246 }),
17247 }
17248 }
17249}
17250impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
17251 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
17252 match err {
17253 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17254 }
17255 }
17256}
17257impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
17258where
17259 R: Send + Sync + std::fmt::Debug + 'static,
17260{
17261 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
17262 match err {
17263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17266 source: err.into(),
17267 }),
17268 }
17269 }
17270}
17271impl From<crate::operation::register_image::RegisterImageError> for Error {
17272 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
17273 match err {
17274 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
17275 }
17276 }
17277}
17278impl<R>
17279 From<
17280 ::aws_smithy_runtime_api::client::result::SdkError<
17281 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17282 R,
17283 >,
17284 > for Error
17285where
17286 R: Send + Sync + std::fmt::Debug + 'static,
17287{
17288 fn from(
17289 err: ::aws_smithy_runtime_api::client::result::SdkError<
17290 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17291 R,
17292 >,
17293 ) -> Self {
17294 match err {
17295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17298 source: err.into(),
17299 }),
17300 }
17301 }
17302}
17303impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
17304 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
17305 match err {
17306 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
17307 Error::Unhandled(inner)
17308 }
17309 }
17310 }
17311}
17312impl<R>
17313 From<
17314 ::aws_smithy_runtime_api::client::result::SdkError<
17315 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17316 R,
17317 >,
17318 > for Error
17319where
17320 R: Send + Sync + std::fmt::Debug + 'static,
17321{
17322 fn from(
17323 err: ::aws_smithy_runtime_api::client::result::SdkError<
17324 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17325 R,
17326 >,
17327 ) -> Self {
17328 match err {
17329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17332 source: err.into(),
17333 }),
17334 }
17335 }
17336}
17337impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
17338 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
17339 match err {
17340 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
17341 inner,
17342 ) => Error::Unhandled(inner),
17343 }
17344 }
17345}
17346impl<R>
17347 From<
17348 ::aws_smithy_runtime_api::client::result::SdkError<
17349 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17350 R,
17351 >,
17352 > for Error
17353where
17354 R: Send + Sync + std::fmt::Debug + 'static,
17355{
17356 fn from(
17357 err: ::aws_smithy_runtime_api::client::result::SdkError<
17358 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17359 R,
17360 >,
17361 ) -> Self {
17362 match err {
17363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17366 source: err.into(),
17367 }),
17368 }
17369 }
17370}
17371impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
17372 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
17373 match err {
17374 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
17375 inner,
17376 ) => Error::Unhandled(inner),
17377 }
17378 }
17379}
17380impl<R>
17381 From<
17382 ::aws_smithy_runtime_api::client::result::SdkError<
17383 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17384 R,
17385 >,
17386 > for Error
17387where
17388 R: Send + Sync + std::fmt::Debug + 'static,
17389{
17390 fn from(
17391 err: ::aws_smithy_runtime_api::client::result::SdkError<
17392 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17393 R,
17394 >,
17395 ) -> Self {
17396 match err {
17397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17400 source: err.into(),
17401 }),
17402 }
17403 }
17404}
17405impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
17406 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
17407 match err {
17408 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
17409 Error::Unhandled(inner)
17410 }
17411 }
17412 }
17413}
17414impl<R>
17415 From<
17416 ::aws_smithy_runtime_api::client::result::SdkError<
17417 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17418 R,
17419 >,
17420 > for Error
17421where
17422 R: Send + Sync + std::fmt::Debug + 'static,
17423{
17424 fn from(
17425 err: ::aws_smithy_runtime_api::client::result::SdkError<
17426 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17427 R,
17428 >,
17429 ) -> 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::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
17440 fn from(
17441 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17442 ) -> Self {
17443 match err {
17444 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
17445 }
17446 }
17447}
17448impl<R>
17449 From<
17450 ::aws_smithy_runtime_api::client::result::SdkError<
17451 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17452 R,
17453 >,
17454 > for Error
17455where
17456 R: Send + Sync + std::fmt::Debug + 'static,
17457{
17458 fn from(
17459 err: ::aws_smithy_runtime_api::client::result::SdkError<
17460 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17461 R,
17462 >,
17463 ) -> Self {
17464 match err {
17465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17468 source: err.into(),
17469 }),
17470 }
17471 }
17472}
17473impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
17474 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
17475 match err {
17476 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
17477 Error::Unhandled(inner)
17478 }
17479 }
17480 }
17481}
17482impl<R>
17483 From<
17484 ::aws_smithy_runtime_api::client::result::SdkError<
17485 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17486 R,
17487 >,
17488 > for Error
17489where
17490 R: Send + Sync + std::fmt::Debug + 'static,
17491{
17492 fn from(
17493 err: ::aws_smithy_runtime_api::client::result::SdkError<
17494 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17495 R,
17496 >,
17497 ) -> Self {
17498 match err {
17499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17502 source: err.into(),
17503 }),
17504 }
17505 }
17506}
17507impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
17508 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
17509 match err {
17510 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17511 Error::Unhandled(inner)
17512 }
17513 }
17514 }
17515}
17516impl<R>
17517 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
17518 for Error
17519where
17520 R: Send + Sync + std::fmt::Debug + 'static,
17521{
17522 fn from(
17523 err: ::aws_smithy_runtime_api::client::result::SdkError<
17524 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
17525 R,
17526 >,
17527 ) -> Self {
17528 match err {
17529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17532 source: err.into(),
17533 }),
17534 }
17535 }
17536}
17537impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
17538 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
17539 match err {
17540 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
17541 }
17542 }
17543}
17544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
17545 for Error
17546where
17547 R: Send + Sync + std::fmt::Debug + 'static,
17548{
17549 fn from(
17550 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
17551 ) -> Self {
17552 match err {
17553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17556 source: err.into(),
17557 }),
17558 }
17559 }
17560}
17561impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
17562 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
17563 match err {
17564 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17565 }
17566 }
17567}
17568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
17569where
17570 R: Send + Sync + std::fmt::Debug + 'static,
17571{
17572 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
17573 match err {
17574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17577 source: err.into(),
17578 }),
17579 }
17580 }
17581}
17582impl From<crate::operation::release_address::ReleaseAddressError> for Error {
17583 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
17584 match err {
17585 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
17586 }
17587 }
17588}
17589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
17590where
17591 R: Send + Sync + std::fmt::Debug + 'static,
17592{
17593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
17594 match err {
17595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17598 source: err.into(),
17599 }),
17600 }
17601 }
17602}
17603impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
17604 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
17605 match err {
17606 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
17607 }
17608 }
17609}
17610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
17611 for Error
17612where
17613 R: Send + Sync + std::fmt::Debug + 'static,
17614{
17615 fn from(
17616 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
17617 ) -> 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::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
17628 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
17629 match err {
17630 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
17631 }
17632 }
17633}
17634impl<R>
17635 From<
17636 ::aws_smithy_runtime_api::client::result::SdkError<
17637 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
17638 R,
17639 >,
17640 > for Error
17641where
17642 R: Send + Sync + std::fmt::Debug + 'static,
17643{
17644 fn from(
17645 err: ::aws_smithy_runtime_api::client::result::SdkError<
17646 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
17647 R,
17648 >,
17649 ) -> Self {
17650 match err {
17651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17654 source: err.into(),
17655 }),
17656 }
17657 }
17658}
17659impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
17660 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
17661 match err {
17662 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
17663 Error::Unhandled(inner)
17664 }
17665 }
17666 }
17667}
17668impl<R>
17669 From<
17670 ::aws_smithy_runtime_api::client::result::SdkError<
17671 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
17672 R,
17673 >,
17674 > for Error
17675where
17676 R: Send + Sync + std::fmt::Debug + 'static,
17677{
17678 fn from(
17679 err: ::aws_smithy_runtime_api::client::result::SdkError<
17680 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
17681 R,
17682 >,
17683 ) -> Self {
17684 match err {
17685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17688 source: err.into(),
17689 }),
17690 }
17691 }
17692}
17693impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
17694 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
17695 match err {
17696 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
17697 inner,
17698 ) => Error::Unhandled(inner),
17699 }
17700 }
17701}
17702impl<R>
17703 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
17704 for Error
17705where
17706 R: Send + Sync + std::fmt::Debug + 'static,
17707{
17708 fn from(
17709 err: ::aws_smithy_runtime_api::client::result::SdkError<
17710 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
17711 R,
17712 >,
17713 ) -> Self {
17714 match err {
17715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17718 source: err.into(),
17719 }),
17720 }
17721 }
17722}
17723impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
17724 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
17725 match err {
17726 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
17727 }
17728 }
17729}
17730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
17731 for Error
17732where
17733 R: Send + Sync + std::fmt::Debug + 'static,
17734{
17735 fn from(
17736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
17737 ) -> Self {
17738 match err {
17739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17742 source: err.into(),
17743 }),
17744 }
17745 }
17746}
17747impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
17748 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
17749 match err {
17750 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
17751 }
17752 }
17753}
17754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
17755where
17756 R: Send + Sync + std::fmt::Debug + 'static,
17757{
17758 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
17759 match err {
17760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17763 source: err.into(),
17764 }),
17765 }
17766 }
17767}
17768impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
17769 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
17770 match err {
17771 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
17772 }
17773 }
17774}
17775impl<R>
17776 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
17777 for Error
17778where
17779 R: Send + Sync + std::fmt::Debug + 'static,
17780{
17781 fn from(
17782 err: ::aws_smithy_runtime_api::client::result::SdkError<
17783 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
17784 R,
17785 >,
17786 ) -> Self {
17787 match err {
17788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17791 source: err.into(),
17792 }),
17793 }
17794 }
17795}
17796impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
17797 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
17798 match err {
17799 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
17800 }
17801 }
17802}
17803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
17804 for Error
17805where
17806 R: Send + Sync + std::fmt::Debug + 'static,
17807{
17808 fn from(
17809 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
17810 ) -> Self {
17811 match err {
17812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17815 source: err.into(),
17816 }),
17817 }
17818 }
17819}
17820impl From<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
17821 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
17822 match err {
17823 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
17824 }
17825 }
17826}
17827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
17828where
17829 R: Send + Sync + std::fmt::Debug + 'static,
17830{
17831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
17832 match err {
17833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17836 source: err.into(),
17837 }),
17838 }
17839 }
17840}
17841impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
17842 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
17843 match err {
17844 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
17845 }
17846 }
17847}
17848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
17849where
17850 R: Send + Sync + std::fmt::Debug + 'static,
17851{
17852 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
17853 match err {
17854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17857 source: err.into(),
17858 }),
17859 }
17860 }
17861}
17862impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
17863 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
17864 match err {
17865 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
17866 }
17867 }
17868}
17869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
17870where
17871 R: Send + Sync + std::fmt::Debug + 'static,
17872{
17873 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> Self {
17874 match err {
17875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17878 source: err.into(),
17879 }),
17880 }
17881 }
17882}
17883impl From<crate::operation::request_spot_fleet::RequestSpotFleetError> for Error {
17884 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
17885 match err {
17886 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
17887 }
17888 }
17889}
17890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>> for Error
17891where
17892 R: Send + Sync + std::fmt::Debug + 'static,
17893{
17894 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>) -> Self {
17895 match err {
17896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17899 source: err.into(),
17900 }),
17901 }
17902 }
17903}
17904impl From<crate::operation::request_spot_instances::RequestSpotInstancesError> for Error {
17905 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
17906 match err {
17907 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17908 }
17909 }
17910}
17911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
17912where
17913 R: Send + Sync + std::fmt::Debug + 'static,
17914{
17915 fn from(
17916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
17917 ) -> Self {
17918 match err {
17919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17922 source: err.into(),
17923 }),
17924 }
17925 }
17926}
17927impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
17928 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
17929 match err {
17930 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17931 }
17932 }
17933}
17934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
17935 for Error
17936where
17937 R: Send + Sync + std::fmt::Debug + 'static,
17938{
17939 fn from(
17940 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
17941 ) -> Self {
17942 match err {
17943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17946 source: err.into(),
17947 }),
17948 }
17949 }
17950}
17951impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
17952 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
17953 match err {
17954 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
17955 }
17956 }
17957}
17958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
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<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
17965 ) -> Self {
17966 match err {
17967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17970 source: err.into(),
17971 }),
17972 }
17973 }
17974}
17975impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
17976 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
17977 match err {
17978 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17979 }
17980 }
17981}
17982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
17983where
17984 R: Send + Sync + std::fmt::Debug + 'static,
17985{
17986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
17987 match err {
17988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17991 source: err.into(),
17992 }),
17993 }
17994 }
17995}
17996impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
17997 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
17998 match err {
17999 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18000 }
18001 }
18002}
18003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
18004where
18005 R: Send + Sync + std::fmt::Debug + 'static,
18006{
18007 fn from(
18008 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
18009 ) -> Self {
18010 match err {
18011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18014 source: err.into(),
18015 }),
18016 }
18017 }
18018}
18019impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
18020 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
18021 match err {
18022 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18023 }
18024 }
18025}
18026impl<R>
18027 From<
18028 ::aws_smithy_runtime_api::client::result::SdkError<
18029 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18030 R,
18031 >,
18032 > for Error
18033where
18034 R: Send + Sync + std::fmt::Debug + 'static,
18035{
18036 fn from(
18037 err: ::aws_smithy_runtime_api::client::result::SdkError<
18038 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18039 R,
18040 >,
18041 ) -> Self {
18042 match err {
18043 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18044 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18045 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18046 source: err.into(),
18047 }),
18048 }
18049 }
18050}
18051impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
18052 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
18053 match err {
18054 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18055 }
18056 }
18057}
18058impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
18059where
18060 R: Send + Sync + std::fmt::Debug + 'static,
18061{
18062 fn from(
18063 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
18064 ) -> Self {
18065 match err {
18066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18069 source: err.into(),
18070 }),
18071 }
18072 }
18073}
18074impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
18075 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
18076 match err {
18077 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18078 }
18079 }
18080}
18081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
18082 for Error
18083where
18084 R: Send + Sync + std::fmt::Debug + 'static,
18085{
18086 fn from(
18087 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
18088 ) -> Self {
18089 match err {
18090 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18091 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18092 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18093 source: err.into(),
18094 }),
18095 }
18096 }
18097}
18098impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
18099 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
18100 match err {
18101 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
18102 }
18103 }
18104}
18105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
18106 for Error
18107where
18108 R: Send + Sync + std::fmt::Debug + 'static,
18109{
18110 fn from(
18111 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
18112 ) -> Self {
18113 match err {
18114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18117 source: err.into(),
18118 }),
18119 }
18120 }
18121}
18122impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
18123 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
18124 match err {
18125 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18126 }
18127 }
18128}
18129impl<R>
18130 From<
18131 ::aws_smithy_runtime_api::client::result::SdkError<
18132 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18133 R,
18134 >,
18135 > for Error
18136where
18137 R: Send + Sync + std::fmt::Debug + 'static,
18138{
18139 fn from(
18140 err: ::aws_smithy_runtime_api::client::result::SdkError<
18141 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18142 R,
18143 >,
18144 ) -> Self {
18145 match err {
18146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18149 source: err.into(),
18150 }),
18151 }
18152 }
18153}
18154impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
18155 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
18156 match err {
18157 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
18158 }
18159 }
18160}
18161impl<R>
18162 From<
18163 ::aws_smithy_runtime_api::client::result::SdkError<
18164 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18165 R,
18166 >,
18167 > for Error
18168where
18169 R: Send + Sync + std::fmt::Debug + 'static,
18170{
18171 fn from(
18172 err: ::aws_smithy_runtime_api::client::result::SdkError<
18173 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18174 R,
18175 >,
18176 ) -> Self {
18177 match err {
18178 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18179 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18180 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18181 source: err.into(),
18182 }),
18183 }
18184 }
18185}
18186impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
18187 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
18188 match err {
18189 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18190 }
18191 }
18192}
18193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
18194where
18195 R: Send + Sync + std::fmt::Debug + 'static,
18196{
18197 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
18198 match err {
18199 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18200 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18201 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18202 source: err.into(),
18203 }),
18204 }
18205 }
18206}
18207impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
18208 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
18209 match err {
18210 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
18211 }
18212 }
18213}
18214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
18215 for Error
18216where
18217 R: Send + Sync + std::fmt::Debug + 'static,
18218{
18219 fn from(
18220 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
18221 ) -> Self {
18222 match err {
18223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18226 source: err.into(),
18227 }),
18228 }
18229 }
18230}
18231impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
18232 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
18233 match err {
18234 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
18235 }
18236 }
18237}
18238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
18239 for Error
18240where
18241 R: Send + Sync + std::fmt::Debug + 'static,
18242{
18243 fn from(
18244 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
18245 ) -> Self {
18246 match err {
18247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18250 source: err.into(),
18251 }),
18252 }
18253 }
18254}
18255impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
18256 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
18257 match err {
18258 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
18259 }
18260 }
18261}
18262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
18263 for Error
18264where
18265 R: Send + Sync + std::fmt::Debug + 'static,
18266{
18267 fn from(
18268 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
18269 ) -> Self {
18270 match err {
18271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18274 source: err.into(),
18275 }),
18276 }
18277 }
18278}
18279impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
18280 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
18281 match err {
18282 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
18283 }
18284 }
18285}
18286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
18287where
18288 R: Send + Sync + std::fmt::Debug + 'static,
18289{
18290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> 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::run_instances::RunInstancesError> for Error {
18301 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
18302 match err {
18303 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18304 }
18305 }
18306}
18307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
18308where
18309 R: Send + Sync + std::fmt::Debug + 'static,
18310{
18311 fn from(
18312 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
18313 ) -> Self {
18314 match err {
18315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18318 source: err.into(),
18319 }),
18320 }
18321 }
18322}
18323impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
18324 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
18325 match err {
18326 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18327 }
18328 }
18329}
18330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
18331 for Error
18332where
18333 R: Send + Sync + std::fmt::Debug + 'static,
18334{
18335 fn from(
18336 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
18337 ) -> Self {
18338 match err {
18339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18342 source: err.into(),
18343 }),
18344 }
18345 }
18346}
18347impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
18348 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
18349 match err {
18350 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18351 }
18352 }
18353}
18354impl<R>
18355 From<
18356 ::aws_smithy_runtime_api::client::result::SdkError<
18357 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18358 R,
18359 >,
18360 > for Error
18361where
18362 R: Send + Sync + std::fmt::Debug + 'static,
18363{
18364 fn from(
18365 err: ::aws_smithy_runtime_api::client::result::SdkError<
18366 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18367 R,
18368 >,
18369 ) -> Self {
18370 match err {
18371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18374 source: err.into(),
18375 }),
18376 }
18377 }
18378}
18379impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
18380 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
18381 match err {
18382 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
18383 Error::Unhandled(inner)
18384 }
18385 }
18386 }
18387}
18388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
18389 for Error
18390where
18391 R: Send + Sync + std::fmt::Debug + 'static,
18392{
18393 fn from(
18394 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
18395 ) -> Self {
18396 match err {
18397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18400 source: err.into(),
18401 }),
18402 }
18403 }
18404}
18405impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
18406 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
18407 match err {
18408 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18409 }
18410 }
18411}
18412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
18413 for Error
18414where
18415 R: Send + Sync + std::fmt::Debug + 'static,
18416{
18417 fn from(
18418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
18419 ) -> Self {
18420 match err {
18421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18424 source: err.into(),
18425 }),
18426 }
18427 }
18428}
18429impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
18430 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
18431 match err {
18432 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
18433 }
18434 }
18435}
18436impl<R>
18437 From<
18438 ::aws_smithy_runtime_api::client::result::SdkError<
18439 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18440 R,
18441 >,
18442 > for Error
18443where
18444 R: Send + Sync + std::fmt::Debug + 'static,
18445{
18446 fn from(
18447 err: ::aws_smithy_runtime_api::client::result::SdkError<
18448 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18449 R,
18450 >,
18451 ) -> Self {
18452 match err {
18453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18456 source: err.into(),
18457 }),
18458 }
18459 }
18460}
18461impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
18462 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
18463 match err {
18464 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
18465 }
18466 }
18467}
18468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
18469where
18470 R: Send + Sync + std::fmt::Debug + 'static,
18471{
18472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
18473 match err {
18474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18477 source: err.into(),
18478 }),
18479 }
18480 }
18481}
18482impl From<crate::operation::start_instances::StartInstancesError> for Error {
18483 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
18484 match err {
18485 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18486 }
18487 }
18488}
18489impl<R>
18490 From<
18491 ::aws_smithy_runtime_api::client::result::SdkError<
18492 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18493 R,
18494 >,
18495 > for Error
18496where
18497 R: Send + Sync + std::fmt::Debug + 'static,
18498{
18499 fn from(
18500 err: ::aws_smithy_runtime_api::client::result::SdkError<
18501 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18502 R,
18503 >,
18504 ) -> Self {
18505 match err {
18506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18509 source: err.into(),
18510 }),
18511 }
18512 }
18513}
18514impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
18515 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
18516 match err {
18517 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
18518 Error::Unhandled(inner)
18519 }
18520 }
18521 }
18522}
18523impl<R>
18524 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
18525 for Error
18526where
18527 R: Send + Sync + std::fmt::Debug + 'static,
18528{
18529 fn from(
18530 err: ::aws_smithy_runtime_api::client::result::SdkError<
18531 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
18532 R,
18533 >,
18534 ) -> Self {
18535 match err {
18536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18539 source: err.into(),
18540 }),
18541 }
18542 }
18543}
18544impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
18545 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
18546 match err {
18547 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
18548 }
18549 }
18550}
18551impl<R>
18552 From<
18553 ::aws_smithy_runtime_api::client::result::SdkError<
18554 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
18555 R,
18556 >,
18557 > for Error
18558where
18559 R: Send + Sync + std::fmt::Debug + 'static,
18560{
18561 fn from(
18562 err: ::aws_smithy_runtime_api::client::result::SdkError<
18563 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
18564 R,
18565 >,
18566 ) -> Self {
18567 match err {
18568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18571 source: err.into(),
18572 }),
18573 }
18574 }
18575}
18576impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
18577 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
18578 match err {
18579 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
18580 inner,
18581 ) => Error::Unhandled(inner),
18582 }
18583 }
18584}
18585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
18586where
18587 R: Send + Sync + std::fmt::Debug + 'static,
18588{
18589 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
18590 match err {
18591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18594 source: err.into(),
18595 }),
18596 }
18597 }
18598}
18599impl From<crate::operation::stop_instances::StopInstancesError> for Error {
18600 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
18601 match err {
18602 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18603 }
18604 }
18605}
18606impl<R>
18607 From<
18608 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
18609 > for Error
18610where
18611 R: Send + Sync + std::fmt::Debug + 'static,
18612{
18613 fn from(
18614 err: ::aws_smithy_runtime_api::client::result::SdkError<
18615 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
18616 R,
18617 >,
18618 ) -> Self {
18619 match err {
18620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18623 source: err.into(),
18624 }),
18625 }
18626 }
18627}
18628impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
18629 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
18630 match err {
18631 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
18632 }
18633 }
18634}
18635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
18636where
18637 R: Send + Sync + std::fmt::Debug + 'static,
18638{
18639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> Self {
18640 match err {
18641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18644 source: err.into(),
18645 }),
18646 }
18647 }
18648}
18649impl From<crate::operation::terminate_instances::TerminateInstancesError> for Error {
18650 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
18651 match err {
18652 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18653 }
18654 }
18655}
18656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
18657where
18658 R: Send + Sync + std::fmt::Debug + 'static,
18659{
18660 fn from(
18661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
18662 ) -> Self {
18663 match err {
18664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18667 source: err.into(),
18668 }),
18669 }
18670 }
18671}
18672impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
18673 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
18674 match err {
18675 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
18676 }
18677 }
18678}
18679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
18680 for Error
18681where
18682 R: Send + Sync + std::fmt::Debug + 'static,
18683{
18684 fn from(
18685 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
18686 ) -> Self {
18687 match err {
18688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18691 source: err.into(),
18692 }),
18693 }
18694 }
18695}
18696impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
18697 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
18698 match err {
18699 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
18700 }
18701 }
18702}
18703impl<R>
18704 From<
18705 ::aws_smithy_runtime_api::client::result::SdkError<
18706 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
18707 R,
18708 >,
18709 > for Error
18710where
18711 R: Send + Sync + std::fmt::Debug + 'static,
18712{
18713 fn from(
18714 err: ::aws_smithy_runtime_api::client::result::SdkError<
18715 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
18716 R,
18717 >,
18718 ) -> Self {
18719 match err {
18720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18723 source: err.into(),
18724 }),
18725 }
18726 }
18727}
18728impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
18729 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
18730 match err {
18731 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
18732 Error::Unhandled(inner)
18733 }
18734 }
18735 }
18736}
18737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
18738where
18739 R: Send + Sync + std::fmt::Debug + 'static,
18740{
18741 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
18742 match err {
18743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18746 source: err.into(),
18747 }),
18748 }
18749 }
18750}
18751impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
18752 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
18753 match err {
18754 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
18755 }
18756 }
18757}
18758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
18759where
18760 R: Send + Sync + std::fmt::Debug + 'static,
18761{
18762 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
18763 match err {
18764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18767 source: err.into(),
18768 }),
18769 }
18770 }
18771}
18772impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
18773 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
18774 match err {
18775 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18776 }
18777 }
18778}
18779impl<R>
18780 From<
18781 ::aws_smithy_runtime_api::client::result::SdkError<
18782 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
18783 R,
18784 >,
18785 > for Error
18786where
18787 R: Send + Sync + std::fmt::Debug + 'static,
18788{
18789 fn from(
18790 err: ::aws_smithy_runtime_api::client::result::SdkError<
18791 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
18792 R,
18793 >,
18794 ) -> Self {
18795 match err {
18796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18799 source: err.into(),
18800 }),
18801 }
18802 }
18803}
18804impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
18805 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
18806 match err {
18807 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
18808 Error::Unhandled(inner)
18809 }
18810 }
18811 }
18812}
18813impl<R>
18814 From<
18815 ::aws_smithy_runtime_api::client::result::SdkError<
18816 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
18817 R,
18818 >,
18819 > for Error
18820where
18821 R: Send + Sync + std::fmt::Debug + 'static,
18822{
18823 fn from(
18824 err: ::aws_smithy_runtime_api::client::result::SdkError<
18825 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
18826 R,
18827 >,
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::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
18839 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
18840 match err {
18841 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
18842 Error::Unhandled(inner)
18843 }
18844 }
18845 }
18846}
18847impl<R>
18848 From<
18849 ::aws_smithy_runtime_api::client::result::SdkError<
18850 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
18851 R,
18852 >,
18853 > for Error
18854where
18855 R: Send + Sync + std::fmt::Debug + 'static,
18856{
18857 fn from(
18858 err: ::aws_smithy_runtime_api::client::result::SdkError<
18859 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
18860 R,
18861 >,
18862 ) -> Self {
18863 match err {
18864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18867 source: err.into(),
18868 }),
18869 }
18870 }
18871}
18872impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
18873 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
18874 match err {
18875 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
18876 Error::Unhandled(inner)
18877 }
18878 }
18879 }
18880}
18881impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
18882where
18883 R: Send + Sync + std::fmt::Debug + 'static,
18884{
18885 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
18886 match err {
18887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18890 source: err.into(),
18891 }),
18892 }
18893 }
18894}
18895impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
18896 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
18897 match err {
18898 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
18899 }
18900 }
18901}
18902impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
18903where
18904 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
18905 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
18906{
18907 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
18908 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18909 meta: ::std::default::Default::default(),
18910 source: err.into(),
18911 })
18912 }
18913}
18914impl ::std::error::Error for Error {
18915 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
18916 match self {
18917 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
18918 }
18919 }
18920}
18921impl ::aws_types::request_id::RequestId for Error {
18922 fn request_id(&self) -> Option<&str> {
18923 match self {
18924 Self::Unhandled(e) => e.meta.request_id(),
18925 }
18926 }
18927}