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>
2226 From<
2227 ::aws_smithy_runtime_api::client::result::SdkError<
2228 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2229 R,
2230 >,
2231 > for Error
2232where
2233 R: Send + Sync + std::fmt::Debug + 'static,
2234{
2235 fn from(
2236 err: ::aws_smithy_runtime_api::client::result::SdkError<
2237 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2238 R,
2239 >,
2240 ) -> Self {
2241 match err {
2242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2245 source: err.into(),
2246 }),
2247 }
2248 }
2249}
2250impl From<crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError> for Error {
2251 fn from(
2252 err: crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError,
2253 ) -> Self {
2254 match err {
2255 crate::operation::create_interruptible_capacity_reservation_allocation::CreateInterruptibleCapacityReservationAllocationError::Unhandled(inner) => Error::Unhandled(inner),
2256 }
2257 }
2258}
2259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>> for Error
2260where
2261 R: Send + Sync + std::fmt::Debug + 'static,
2262{
2263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>) -> Self {
2264 match err {
2265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2268 source: err.into(),
2269 }),
2270 }
2271 }
2272}
2273impl From<crate::operation::create_ipam::CreateIpamError> for Error {
2274 fn from(err: crate::operation::create_ipam::CreateIpamError) -> Self {
2275 match err {
2276 crate::operation::create_ipam::CreateIpamError::Unhandled(inner) => Error::Unhandled(inner),
2277 }
2278 }
2279}
2280impl<R>
2281 From<
2282 ::aws_smithy_runtime_api::client::result::SdkError<
2283 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2284 R,
2285 >,
2286 > for Error
2287where
2288 R: Send + Sync + std::fmt::Debug + 'static,
2289{
2290 fn from(
2291 err: ::aws_smithy_runtime_api::client::result::SdkError<
2292 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2293 R,
2294 >,
2295 ) -> Self {
2296 match err {
2297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2300 source: err.into(),
2301 }),
2302 }
2303 }
2304}
2305impl From<crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError> for Error {
2306 fn from(err: crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError) -> Self {
2307 match err {
2308 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError::Unhandled(
2309 inner,
2310 ) => Error::Unhandled(inner),
2311 }
2312 }
2313}
2314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_policy::CreateIpamPolicyError, R>> for Error
2315where
2316 R: Send + Sync + std::fmt::Debug + 'static,
2317{
2318 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_policy::CreateIpamPolicyError, R>) -> Self {
2319 match err {
2320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2323 source: err.into(),
2324 }),
2325 }
2326 }
2327}
2328impl From<crate::operation::create_ipam_policy::CreateIpamPolicyError> for Error {
2329 fn from(err: crate::operation::create_ipam_policy::CreateIpamPolicyError) -> Self {
2330 match err {
2331 crate::operation::create_ipam_policy::CreateIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2332 }
2333 }
2334}
2335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>> for Error
2336where
2337 R: Send + Sync + std::fmt::Debug + 'static,
2338{
2339 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>) -> Self {
2340 match err {
2341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2344 source: err.into(),
2345 }),
2346 }
2347 }
2348}
2349impl From<crate::operation::create_ipam_pool::CreateIpamPoolError> for Error {
2350 fn from(err: crate::operation::create_ipam_pool::CreateIpamPoolError) -> Self {
2351 match err {
2352 crate::operation::create_ipam_pool::CreateIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
2353 }
2354 }
2355}
2356impl<R>
2357 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError, R>>
2358 for Error
2359where
2360 R: Send + Sync + std::fmt::Debug + 'static,
2361{
2362 fn from(
2363 err: ::aws_smithy_runtime_api::client::result::SdkError<
2364 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError,
2365 R,
2366 >,
2367 ) -> Self {
2368 match err {
2369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2372 source: err.into(),
2373 }),
2374 }
2375 }
2376}
2377impl From<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError> for Error {
2378 fn from(err: crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError) -> Self {
2379 match err {
2380 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
2381 }
2382 }
2383}
2384impl<R>
2385 From<
2386 ::aws_smithy_runtime_api::client::result::SdkError<
2387 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2388 R,
2389 >,
2390 > for Error
2391where
2392 R: Send + Sync + std::fmt::Debug + 'static,
2393{
2394 fn from(
2395 err: ::aws_smithy_runtime_api::client::result::SdkError<
2396 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2397 R,
2398 >,
2399 ) -> Self {
2400 match err {
2401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2404 source: err.into(),
2405 }),
2406 }
2407 }
2408}
2409impl From<crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError> for Error {
2410 fn from(err: crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError) -> Self {
2411 match err {
2412 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError::Unhandled(inner) => {
2413 Error::Unhandled(inner)
2414 }
2415 }
2416 }
2417}
2418impl<R>
2419 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError, R>>
2420 for Error
2421where
2422 R: Send + Sync + std::fmt::Debug + 'static,
2423{
2424 fn from(
2425 err: ::aws_smithy_runtime_api::client::result::SdkError<
2426 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError,
2427 R,
2428 >,
2429 ) -> Self {
2430 match err {
2431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2434 source: err.into(),
2435 }),
2436 }
2437 }
2438}
2439impl From<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError> for Error {
2440 fn from(err: crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError) -> Self {
2441 match err {
2442 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2443 }
2444 }
2445}
2446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>> for Error
2447where
2448 R: Send + Sync + std::fmt::Debug + 'static,
2449{
2450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>) -> Self {
2451 match err {
2452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2455 source: err.into(),
2456 }),
2457 }
2458 }
2459}
2460impl From<crate::operation::create_ipam_scope::CreateIpamScopeError> for Error {
2461 fn from(err: crate::operation::create_ipam_scope::CreateIpamScopeError) -> Self {
2462 match err {
2463 crate::operation::create_ipam_scope::CreateIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
2464 }
2465 }
2466}
2467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>> for Error
2468where
2469 R: Send + Sync + std::fmt::Debug + 'static,
2470{
2471 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>) -> Self {
2472 match err {
2473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2476 source: err.into(),
2477 }),
2478 }
2479 }
2480}
2481impl From<crate::operation::create_key_pair::CreateKeyPairError> for Error {
2482 fn from(err: crate::operation::create_key_pair::CreateKeyPairError) -> Self {
2483 match err {
2484 crate::operation::create_key_pair::CreateKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
2485 }
2486 }
2487}
2488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>> for Error
2489where
2490 R: Send + Sync + std::fmt::Debug + 'static,
2491{
2492 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>) -> Self {
2493 match err {
2494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2497 source: err.into(),
2498 }),
2499 }
2500 }
2501}
2502impl From<crate::operation::create_launch_template::CreateLaunchTemplateError> for Error {
2503 fn from(err: crate::operation::create_launch_template::CreateLaunchTemplateError) -> Self {
2504 match err {
2505 crate::operation::create_launch_template::CreateLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2506 }
2507 }
2508}
2509impl<R>
2510 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError, R>>
2511 for Error
2512where
2513 R: Send + Sync + std::fmt::Debug + 'static,
2514{
2515 fn from(
2516 err: ::aws_smithy_runtime_api::client::result::SdkError<
2517 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
2518 R,
2519 >,
2520 ) -> Self {
2521 match err {
2522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2525 source: err.into(),
2526 }),
2527 }
2528 }
2529}
2530impl From<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError> for Error {
2531 fn from(err: crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError) -> Self {
2532 match err {
2533 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2534 }
2535 }
2536}
2537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>>
2538 for Error
2539where
2540 R: Send + Sync + std::fmt::Debug + 'static,
2541{
2542 fn from(
2543 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>,
2544 ) -> Self {
2545 match err {
2546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2549 source: err.into(),
2550 }),
2551 }
2552 }
2553}
2554impl From<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError> for Error {
2555 fn from(err: crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError) -> Self {
2556 match err {
2557 crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
2558 }
2559 }
2560}
2561impl<R>
2562 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError, R>>
2563 for Error
2564where
2565 R: Send + Sync + std::fmt::Debug + 'static,
2566{
2567 fn from(
2568 err: ::aws_smithy_runtime_api::client::result::SdkError<
2569 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError,
2570 R,
2571 >,
2572 ) -> Self {
2573 match err {
2574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2577 source: err.into(),
2578 }),
2579 }
2580 }
2581}
2582impl From<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError> for Error {
2583 fn from(err: crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError) -> Self {
2584 match err {
2585 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
2586 }
2587 }
2588}
2589impl<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 {
2590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
2591 match err {
2592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2593 _ => Error::Unhandled(
2594 crate::error::sealed_unhandled::Unhandled {
2595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2596 source: err.into(),
2597 }
2598 ),
2599 }
2600 }
2601}
2602impl From<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
2603 fn from(err: crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
2604 match err {
2605 crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2606 }
2607 }
2608}
2609impl<R>
2610 From<
2611 ::aws_smithy_runtime_api::client::result::SdkError<
2612 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2613 R,
2614 >,
2615 > for Error
2616where
2617 R: Send + Sync + std::fmt::Debug + 'static,
2618{
2619 fn from(
2620 err: ::aws_smithy_runtime_api::client::result::SdkError<
2621 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2622 R,
2623 >,
2624 ) -> Self {
2625 match err {
2626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2629 source: err.into(),
2630 }),
2631 }
2632 }
2633}
2634impl From<crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError> for Error {
2635 fn from(err: crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError) -> Self {
2636 match err {
2637 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
2638 Error::Unhandled(inner)
2639 }
2640 }
2641 }
2642}
2643impl<R>
2644 From<
2645 ::aws_smithy_runtime_api::client::result::SdkError<
2646 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2647 R,
2648 >,
2649 > for Error
2650where
2651 R: Send + Sync + std::fmt::Debug + 'static,
2652{
2653 fn from(
2654 err: ::aws_smithy_runtime_api::client::result::SdkError<
2655 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2656 R,
2657 >,
2658 ) -> Self {
2659 match err {
2660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2663 source: err.into(),
2664 }),
2665 }
2666 }
2667}
2668impl From<crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError> for Error {
2669 fn from(err: crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError) -> Self {
2670 match err {
2671 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
2672 Error::Unhandled(inner)
2673 }
2674 }
2675 }
2676}
2677impl<R>
2678 From<
2679 ::aws_smithy_runtime_api::client::result::SdkError<
2680 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2681 R,
2682 >,
2683 > for Error
2684where
2685 R: Send + Sync + std::fmt::Debug + 'static,
2686{
2687 fn from(
2688 err: ::aws_smithy_runtime_api::client::result::SdkError<
2689 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2690 R,
2691 >,
2692 ) -> Self {
2693 match err {
2694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2697 source: err.into(),
2698 }),
2699 }
2700 }
2701}
2702impl From<crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError> for Error {
2703 fn from(err: crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError) -> Self {
2704 match err {
2705 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
2706 Error::Unhandled(inner)
2707 }
2708 }
2709 }
2710}
2711impl<R>
2712 From<
2713 ::aws_smithy_runtime_api::client::result::SdkError<
2714 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2715 R,
2716 >,
2717 > for Error
2718where
2719 R: Send + Sync + std::fmt::Debug + 'static,
2720{
2721 fn from(
2722 err: ::aws_smithy_runtime_api::client::result::SdkError<
2723 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2724 R,
2725 >,
2726 ) -> Self {
2727 match err {
2728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2731 source: err.into(),
2732 }),
2733 }
2734 }
2735}
2736impl From<crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError>
2737 for Error
2738{
2739 fn from(
2740 err: crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2741 ) -> Self {
2742 match err {
2743 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError::Unhandled(inner) => Error::Unhandled(inner),
2744 }
2745 }
2746}
2747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>>
2748 for Error
2749where
2750 R: Send + Sync + std::fmt::Debug + 'static,
2751{
2752 fn from(
2753 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>,
2754 ) -> Self {
2755 match err {
2756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2759 source: err.into(),
2760 }),
2761 }
2762 }
2763}
2764impl From<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError> for Error {
2765 fn from(err: crate::operation::create_managed_prefix_list::CreateManagedPrefixListError) -> Self {
2766 match err {
2767 crate::operation::create_managed_prefix_list::CreateManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
2768 }
2769 }
2770}
2771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>> for Error
2772where
2773 R: Send + Sync + std::fmt::Debug + 'static,
2774{
2775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>) -> Self {
2776 match err {
2777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2780 source: err.into(),
2781 }),
2782 }
2783 }
2784}
2785impl From<crate::operation::create_nat_gateway::CreateNatGatewayError> for Error {
2786 fn from(err: crate::operation::create_nat_gateway::CreateNatGatewayError) -> Self {
2787 match err {
2788 crate::operation::create_nat_gateway::CreateNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2789 }
2790 }
2791}
2792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>> for Error
2793where
2794 R: Send + Sync + std::fmt::Debug + 'static,
2795{
2796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>) -> Self {
2797 match err {
2798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2801 source: err.into(),
2802 }),
2803 }
2804 }
2805}
2806impl From<crate::operation::create_network_acl::CreateNetworkAclError> for Error {
2807 fn from(err: crate::operation::create_network_acl::CreateNetworkAclError) -> Self {
2808 match err {
2809 crate::operation::create_network_acl::CreateNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
2810 }
2811 }
2812}
2813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>> for Error
2814where
2815 R: Send + Sync + std::fmt::Debug + 'static,
2816{
2817 fn from(
2818 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>,
2819 ) -> Self {
2820 match err {
2821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2824 source: err.into(),
2825 }),
2826 }
2827 }
2828}
2829impl From<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError> for Error {
2830 fn from(err: crate::operation::create_network_acl_entry::CreateNetworkAclEntryError) -> Self {
2831 match err {
2832 crate::operation::create_network_acl_entry::CreateNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
2833 }
2834 }
2835}
2836impl<R>
2837 From<
2838 ::aws_smithy_runtime_api::client::result::SdkError<
2839 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2840 R,
2841 >,
2842 > for Error
2843where
2844 R: Send + Sync + std::fmt::Debug + 'static,
2845{
2846 fn from(
2847 err: ::aws_smithy_runtime_api::client::result::SdkError<
2848 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2849 R,
2850 >,
2851 ) -> Self {
2852 match err {
2853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2856 source: err.into(),
2857 }),
2858 }
2859 }
2860}
2861impl From<crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError> for Error {
2862 fn from(err: crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError) -> Self {
2863 match err {
2864 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError::Unhandled(inner) => {
2865 Error::Unhandled(inner)
2866 }
2867 }
2868 }
2869}
2870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>>
2871 for Error
2872where
2873 R: Send + Sync + std::fmt::Debug + 'static,
2874{
2875 fn from(
2876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>,
2877 ) -> Self {
2878 match err {
2879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2882 source: err.into(),
2883 }),
2884 }
2885 }
2886}
2887impl From<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError> for Error {
2888 fn from(err: crate::operation::create_network_insights_path::CreateNetworkInsightsPathError) -> Self {
2889 match err {
2890 crate::operation::create_network_insights_path::CreateNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
2891 }
2892 }
2893}
2894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>> for Error
2895where
2896 R: Send + Sync + std::fmt::Debug + 'static,
2897{
2898 fn from(
2899 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>,
2900 ) -> Self {
2901 match err {
2902 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2903 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2904 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2905 source: err.into(),
2906 }),
2907 }
2908 }
2909}
2910impl From<crate::operation::create_network_interface::CreateNetworkInterfaceError> for Error {
2911 fn from(err: crate::operation::create_network_interface::CreateNetworkInterfaceError) -> Self {
2912 match err {
2913 crate::operation::create_network_interface::CreateNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
2914 }
2915 }
2916}
2917impl<R>
2918 From<
2919 ::aws_smithy_runtime_api::client::result::SdkError<
2920 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2921 R,
2922 >,
2923 > for Error
2924where
2925 R: Send + Sync + std::fmt::Debug + 'static,
2926{
2927 fn from(
2928 err: ::aws_smithy_runtime_api::client::result::SdkError<
2929 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2930 R,
2931 >,
2932 ) -> Self {
2933 match err {
2934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2937 source: err.into(),
2938 }),
2939 }
2940 }
2941}
2942impl From<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError> for Error {
2943 fn from(err: crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError) -> Self {
2944 match err {
2945 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
2946 }
2947 }
2948}
2949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>> for Error
2950where
2951 R: Send + Sync + std::fmt::Debug + 'static,
2952{
2953 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>) -> Self {
2954 match err {
2955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2958 source: err.into(),
2959 }),
2960 }
2961 }
2962}
2963impl From<crate::operation::create_placement_group::CreatePlacementGroupError> for Error {
2964 fn from(err: crate::operation::create_placement_group::CreatePlacementGroupError) -> Self {
2965 match err {
2966 crate::operation::create_placement_group::CreatePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
2967 }
2968 }
2969}
2970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>> for Error
2971where
2972 R: Send + Sync + std::fmt::Debug + 'static,
2973{
2974 fn from(
2975 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>,
2976 ) -> Self {
2977 match err {
2978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2981 source: err.into(),
2982 }),
2983 }
2984 }
2985}
2986impl From<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError> for Error {
2987 fn from(err: crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError) -> Self {
2988 match err {
2989 crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
2990 }
2991 }
2992}
2993impl<R>
2994 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError, R>>
2995 for Error
2996where
2997 R: Send + Sync + std::fmt::Debug + 'static,
2998{
2999 fn from(
3000 err: ::aws_smithy_runtime_api::client::result::SdkError<
3001 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError,
3002 R,
3003 >,
3004 ) -> Self {
3005 match err {
3006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3009 source: err.into(),
3010 }),
3011 }
3012 }
3013}
3014impl From<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError> for Error {
3015 fn from(err: crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError) -> Self {
3016 match err {
3017 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError::Unhandled(inner) => Error::Unhandled(inner),
3018 }
3019 }
3020}
3021impl<R>
3022 From<
3023 ::aws_smithy_runtime_api::client::result::SdkError<
3024 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
3025 R,
3026 >,
3027 > for Error
3028where
3029 R: Send + Sync + std::fmt::Debug + 'static,
3030{
3031 fn from(
3032 err: ::aws_smithy_runtime_api::client::result::SdkError<
3033 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
3034 R,
3035 >,
3036 ) -> Self {
3037 match err {
3038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3041 source: err.into(),
3042 }),
3043 }
3044 }
3045}
3046impl From<crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError> for Error {
3047 fn from(err: crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError) -> Self {
3048 match err {
3049 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
3050 }
3051 }
3052}
3053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>>
3054 for Error
3055where
3056 R: Send + Sync + std::fmt::Debug + 'static,
3057{
3058 fn from(
3059 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>,
3060 ) -> Self {
3061 match err {
3062 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3063 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3064 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3065 source: err.into(),
3066 }),
3067 }
3068 }
3069}
3070impl From<crate::operation::create_restore_image_task::CreateRestoreImageTaskError> for Error {
3071 fn from(err: crate::operation::create_restore_image_task::CreateRestoreImageTaskError) -> Self {
3072 match err {
3073 crate::operation::create_restore_image_task::CreateRestoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3074 }
3075 }
3076}
3077impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
3078where
3079 R: Send + Sync + std::fmt::Debug + 'static,
3080{
3081 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
3082 match err {
3083 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3084 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3085 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3086 source: err.into(),
3087 }),
3088 }
3089 }
3090}
3091impl From<crate::operation::create_route::CreateRouteError> for Error {
3092 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
3093 match err {
3094 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
3095 }
3096 }
3097}
3098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>> for Error
3099where
3100 R: Send + Sync + std::fmt::Debug + 'static,
3101{
3102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>) -> Self {
3103 match err {
3104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3107 source: err.into(),
3108 }),
3109 }
3110 }
3111}
3112impl From<crate::operation::create_route_server::CreateRouteServerError> for Error {
3113 fn from(err: crate::operation::create_route_server::CreateRouteServerError) -> Self {
3114 match err {
3115 crate::operation::create_route_server::CreateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
3116 }
3117 }
3118}
3119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>>
3120 for Error
3121where
3122 R: Send + Sync + std::fmt::Debug + 'static,
3123{
3124 fn from(
3125 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>,
3126 ) -> Self {
3127 match err {
3128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3131 source: err.into(),
3132 }),
3133 }
3134 }
3135}
3136impl From<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError> for Error {
3137 fn from(err: crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError) -> Self {
3138 match err {
3139 crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3140 }
3141 }
3142}
3143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>> for Error
3144where
3145 R: Send + Sync + std::fmt::Debug + 'static,
3146{
3147 fn from(
3148 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>,
3149 ) -> Self {
3150 match err {
3151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3154 source: err.into(),
3155 }),
3156 }
3157 }
3158}
3159impl From<crate::operation::create_route_server_peer::CreateRouteServerPeerError> for Error {
3160 fn from(err: crate::operation::create_route_server_peer::CreateRouteServerPeerError) -> Self {
3161 match err {
3162 crate::operation::create_route_server_peer::CreateRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
3163 }
3164 }
3165}
3166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>> for Error
3167where
3168 R: Send + Sync + std::fmt::Debug + 'static,
3169{
3170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>) -> Self {
3171 match err {
3172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3175 source: err.into(),
3176 }),
3177 }
3178 }
3179}
3180impl From<crate::operation::create_route_table::CreateRouteTableError> for Error {
3181 fn from(err: crate::operation::create_route_table::CreateRouteTableError) -> Self {
3182 match err {
3183 crate::operation::create_route_table::CreateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3184 }
3185 }
3186}
3187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>> for Error
3188where
3189 R: Send + Sync + std::fmt::Debug + 'static,
3190{
3191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>) -> Self {
3192 match err {
3193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3196 source: err.into(),
3197 }),
3198 }
3199 }
3200}
3201impl From<crate::operation::create_security_group::CreateSecurityGroupError> for Error {
3202 fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
3203 match err {
3204 crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
3205 }
3206 }
3207}
3208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
3209where
3210 R: Send + Sync + std::fmt::Debug + 'static,
3211{
3212 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
3213 match err {
3214 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3215 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3216 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3217 source: err.into(),
3218 }),
3219 }
3220 }
3221}
3222impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
3223 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
3224 match err {
3225 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
3226 }
3227 }
3228}
3229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>> for Error
3230where
3231 R: Send + Sync + std::fmt::Debug + 'static,
3232{
3233 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>) -> Self {
3234 match err {
3235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3238 source: err.into(),
3239 }),
3240 }
3241 }
3242}
3243impl From<crate::operation::create_snapshots::CreateSnapshotsError> for Error {
3244 fn from(err: crate::operation::create_snapshots::CreateSnapshotsError) -> Self {
3245 match err {
3246 crate::operation::create_snapshots::CreateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
3247 }
3248 }
3249}
3250impl<R>
3251 From<
3252 ::aws_smithy_runtime_api::client::result::SdkError<
3253 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3254 R,
3255 >,
3256 > for Error
3257where
3258 R: Send + Sync + std::fmt::Debug + 'static,
3259{
3260 fn from(
3261 err: ::aws_smithy_runtime_api::client::result::SdkError<
3262 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3263 R,
3264 >,
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_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError> for Error {
3276 fn from(err: crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError) -> Self {
3277 match err {
3278 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3279 }
3280 }
3281}
3282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>> for Error
3283where
3284 R: Send + Sync + std::fmt::Debug + 'static,
3285{
3286 fn from(
3287 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>,
3288 ) -> Self {
3289 match err {
3290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3293 source: err.into(),
3294 }),
3295 }
3296 }
3297}
3298impl From<crate::operation::create_store_image_task::CreateStoreImageTaskError> for Error {
3299 fn from(err: crate::operation::create_store_image_task::CreateStoreImageTaskError) -> Self {
3300 match err {
3301 crate::operation::create_store_image_task::CreateStoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3302 }
3303 }
3304}
3305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>> for Error
3306where
3307 R: Send + Sync + std::fmt::Debug + 'static,
3308{
3309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>) -> Self {
3310 match err {
3311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3314 source: err.into(),
3315 }),
3316 }
3317 }
3318}
3319impl From<crate::operation::create_subnet::CreateSubnetError> for Error {
3320 fn from(err: crate::operation::create_subnet::CreateSubnetError) -> Self {
3321 match err {
3322 crate::operation::create_subnet::CreateSubnetError::Unhandled(inner) => Error::Unhandled(inner),
3323 }
3324 }
3325}
3326impl<R>
3327 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError, R>>
3328 for Error
3329where
3330 R: Send + Sync + std::fmt::Debug + 'static,
3331{
3332 fn from(
3333 err: ::aws_smithy_runtime_api::client::result::SdkError<
3334 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError,
3335 R,
3336 >,
3337 ) -> Self {
3338 match err {
3339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3342 source: err.into(),
3343 }),
3344 }
3345 }
3346}
3347impl From<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError> for Error {
3348 fn from(err: crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError) -> Self {
3349 match err {
3350 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
3351 }
3352 }
3353}
3354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
3355where
3356 R: Send + Sync + std::fmt::Debug + 'static,
3357{
3358 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
3359 match err {
3360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3363 source: err.into(),
3364 }),
3365 }
3366 }
3367}
3368impl From<crate::operation::create_tags::CreateTagsError> for Error {
3369 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
3370 match err {
3371 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
3372 }
3373 }
3374}
3375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>>
3376 for Error
3377where
3378 R: Send + Sync + std::fmt::Debug + 'static,
3379{
3380 fn from(
3381 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>,
3382 ) -> Self {
3383 match err {
3384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3387 source: err.into(),
3388 }),
3389 }
3390 }
3391}
3392impl From<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError> for Error {
3393 fn from(err: crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError) -> Self {
3394 match err {
3395 crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
3396 }
3397 }
3398}
3399impl<R>
3400 From<
3401 ::aws_smithy_runtime_api::client::result::SdkError<
3402 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3403 R,
3404 >,
3405 > for Error
3406where
3407 R: Send + Sync + std::fmt::Debug + 'static,
3408{
3409 fn from(
3410 err: ::aws_smithy_runtime_api::client::result::SdkError<
3411 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3412 R,
3413 >,
3414 ) -> Self {
3415 match err {
3416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3419 source: err.into(),
3420 }),
3421 }
3422 }
3423}
3424impl From<crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError> for Error {
3425 fn from(err: crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError) -> Self {
3426 match err {
3427 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
3428 }
3429 }
3430}
3431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>>
3432 for Error
3433where
3434 R: Send + Sync + std::fmt::Debug + 'static,
3435{
3436 fn from(
3437 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>,
3438 ) -> Self {
3439 match err {
3440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3443 source: err.into(),
3444 }),
3445 }
3446 }
3447}
3448impl From<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError> for Error {
3449 fn from(err: crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError) -> Self {
3450 match err {
3451 crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
3452 }
3453 }
3454}
3455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>>
3456 for Error
3457where
3458 R: Send + Sync + std::fmt::Debug + 'static,
3459{
3460 fn from(
3461 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>,
3462 ) -> Self {
3463 match err {
3464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3467 source: err.into(),
3468 }),
3469 }
3470 }
3471}
3472impl From<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError> for Error {
3473 fn from(err: crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError) -> Self {
3474 match err {
3475 crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
3476 }
3477 }
3478}
3479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>> for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>) -> Self {
3484 match err {
3485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3488 source: err.into(),
3489 }),
3490 }
3491 }
3492}
3493impl From<crate::operation::create_transit_gateway::CreateTransitGatewayError> for Error {
3494 fn from(err: crate::operation::create_transit_gateway::CreateTransitGatewayError) -> Self {
3495 match err {
3496 crate::operation::create_transit_gateway::CreateTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
3497 }
3498 }
3499}
3500impl<R>
3501 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError, R>>
3502 for Error
3503where
3504 R: Send + Sync + std::fmt::Debug + 'static,
3505{
3506 fn from(
3507 err: ::aws_smithy_runtime_api::client::result::SdkError<
3508 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError,
3509 R,
3510 >,
3511 ) -> Self {
3512 match err {
3513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3516 source: err.into(),
3517 }),
3518 }
3519 }
3520}
3521impl From<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError> for Error {
3522 fn from(err: crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError) -> Self {
3523 match err {
3524 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
3525 }
3526 }
3527}
3528impl<R>
3529 From<
3530 ::aws_smithy_runtime_api::client::result::SdkError<
3531 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3532 R,
3533 >,
3534 > for Error
3535where
3536 R: Send + Sync + std::fmt::Debug + 'static,
3537{
3538 fn from(
3539 err: ::aws_smithy_runtime_api::client::result::SdkError<
3540 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3541 R,
3542 >,
3543 ) -> Self {
3544 match err {
3545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3548 source: err.into(),
3549 }),
3550 }
3551 }
3552}
3553impl From<crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError> for Error {
3554 fn from(err: crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError) -> Self {
3555 match err {
3556 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
3557 }
3558 }
3559}
3560impl<R>
3561 From<
3562 ::aws_smithy_runtime_api::client::result::SdkError<
3563 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError,
3564 R,
3565 >,
3566 > for Error
3567where
3568 R: Send + Sync + std::fmt::Debug + 'static,
3569{
3570 fn from(
3571 err: ::aws_smithy_runtime_api::client::result::SdkError<
3572 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError,
3573 R,
3574 >,
3575 ) -> Self {
3576 match err {
3577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3580 source: err.into(),
3581 }),
3582 }
3583 }
3584}
3585impl From<crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError> for Error {
3586 fn from(err: crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError) -> Self {
3587 match err {
3588 crate::operation::create_transit_gateway_metering_policy::CreateTransitGatewayMeteringPolicyError::Unhandled(inner) => {
3589 Error::Unhandled(inner)
3590 }
3591 }
3592 }
3593}
3594impl<R>
3595 From<
3596 ::aws_smithy_runtime_api::client::result::SdkError<
3597 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError,
3598 R,
3599 >,
3600 > for Error
3601where
3602 R: Send + Sync + std::fmt::Debug + 'static,
3603{
3604 fn from(
3605 err: ::aws_smithy_runtime_api::client::result::SdkError<
3606 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError,
3607 R,
3608 >,
3609 ) -> Self {
3610 match err {
3611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3614 source: err.into(),
3615 }),
3616 }
3617 }
3618}
3619impl From<crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError> for Error {
3620 fn from(err: crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError) -> Self {
3621 match err {
3622 crate::operation::create_transit_gateway_metering_policy_entry::CreateTransitGatewayMeteringPolicyEntryError::Unhandled(inner) => {
3623 Error::Unhandled(inner)
3624 }
3625 }
3626 }
3627}
3628impl<R>
3629 From<
3630 ::aws_smithy_runtime_api::client::result::SdkError<
3631 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3632 R,
3633 >,
3634 > for Error
3635where
3636 R: Send + Sync + std::fmt::Debug + 'static,
3637{
3638 fn from(
3639 err: ::aws_smithy_runtime_api::client::result::SdkError<
3640 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3641 R,
3642 >,
3643 ) -> Self {
3644 match err {
3645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3648 source: err.into(),
3649 }),
3650 }
3651 }
3652}
3653impl From<crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError> for Error {
3654 fn from(err: crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError) -> Self {
3655 match err {
3656 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError::Unhandled(inner) => {
3657 Error::Unhandled(inner)
3658 }
3659 }
3660 }
3661}
3662impl<R>
3663 From<
3664 ::aws_smithy_runtime_api::client::result::SdkError<
3665 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3666 R,
3667 >,
3668 > for Error
3669where
3670 R: Send + Sync + std::fmt::Debug + 'static,
3671{
3672 fn from(
3673 err: ::aws_smithy_runtime_api::client::result::SdkError<
3674 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3675 R,
3676 >,
3677 ) -> Self {
3678 match err {
3679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3682 source: err.into(),
3683 }),
3684 }
3685 }
3686}
3687impl From<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError> for Error {
3688 fn from(err: crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError) -> Self {
3689 match err {
3690 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
3691 Error::Unhandled(inner)
3692 }
3693 }
3694 }
3695}
3696impl<R>
3697 From<
3698 ::aws_smithy_runtime_api::client::result::SdkError<
3699 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3700 R,
3701 >,
3702 > for Error
3703where
3704 R: Send + Sync + std::fmt::Debug + 'static,
3705{
3706 fn from(
3707 err: ::aws_smithy_runtime_api::client::result::SdkError<
3708 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3709 R,
3710 >,
3711 ) -> Self {
3712 match err {
3713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3716 source: err.into(),
3717 }),
3718 }
3719 }
3720}
3721impl From<crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError> for Error {
3722 fn from(err: crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError) -> Self {
3723 match err {
3724 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
3725 }
3726 }
3727}
3728impl<R>
3729 From<
3730 ::aws_smithy_runtime_api::client::result::SdkError<
3731 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3732 R,
3733 >,
3734 > for Error
3735where
3736 R: Send + Sync + std::fmt::Debug + 'static,
3737{
3738 fn from(
3739 err: ::aws_smithy_runtime_api::client::result::SdkError<
3740 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3741 R,
3742 >,
3743 ) -> Self {
3744 match err {
3745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3748 source: err.into(),
3749 }),
3750 }
3751 }
3752}
3753impl From<crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError> for Error {
3754 fn from(err: crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError) -> Self {
3755 match err {
3756 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
3757 Error::Unhandled(inner)
3758 }
3759 }
3760 }
3761}
3762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>>
3763 for Error
3764where
3765 R: Send + Sync + std::fmt::Debug + 'static,
3766{
3767 fn from(
3768 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>,
3769 ) -> Self {
3770 match err {
3771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3774 source: err.into(),
3775 }),
3776 }
3777 }
3778}
3779impl From<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError> for Error {
3780 fn from(err: crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError) -> Self {
3781 match err {
3782 crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
3783 }
3784 }
3785}
3786impl<R>
3787 From<
3788 ::aws_smithy_runtime_api::client::result::SdkError<
3789 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3790 R,
3791 >,
3792 > for Error
3793where
3794 R: Send + Sync + std::fmt::Debug + 'static,
3795{
3796 fn from(
3797 err: ::aws_smithy_runtime_api::client::result::SdkError<
3798 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3799 R,
3800 >,
3801 ) -> Self {
3802 match err {
3803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3806 source: err.into(),
3807 }),
3808 }
3809 }
3810}
3811impl From<crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError> for Error {
3812 fn from(err: crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError) -> Self {
3813 match err {
3814 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3815 }
3816 }
3817}
3818impl<R>
3819 From<
3820 ::aws_smithy_runtime_api::client::result::SdkError<
3821 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3822 R,
3823 >,
3824 > for Error
3825where
3826 R: Send + Sync + std::fmt::Debug + 'static,
3827{
3828 fn from(
3829 err: ::aws_smithy_runtime_api::client::result::SdkError<
3830 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3831 R,
3832 >,
3833 ) -> Self {
3834 match err {
3835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3838 source: err.into(),
3839 }),
3840 }
3841 }
3842}
3843impl From<crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError> for Error {
3844 fn from(err: crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError) -> Self {
3845 match err {
3846 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
3847 Error::Unhandled(inner)
3848 }
3849 }
3850 }
3851}
3852impl<R>
3853 From<
3854 ::aws_smithy_runtime_api::client::result::SdkError<
3855 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3856 R,
3857 >,
3858 > for Error
3859where
3860 R: Send + Sync + std::fmt::Debug + 'static,
3861{
3862 fn from(
3863 err: ::aws_smithy_runtime_api::client::result::SdkError<
3864 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3865 R,
3866 >,
3867 ) -> Self {
3868 match err {
3869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3872 source: err.into(),
3873 }),
3874 }
3875 }
3876}
3877impl From<crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError> for Error {
3878 fn from(err: crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError) -> Self {
3879 match err {
3880 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError::Unhandled(inner) => {
3881 Error::Unhandled(inner)
3882 }
3883 }
3884 }
3885}
3886impl<R>
3887 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError, R>>
3888 for Error
3889where
3890 R: Send + Sync + std::fmt::Debug + 'static,
3891{
3892 fn from(
3893 err: ::aws_smithy_runtime_api::client::result::SdkError<
3894 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError,
3895 R,
3896 >,
3897 ) -> Self {
3898 match err {
3899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3902 source: err.into(),
3903 }),
3904 }
3905 }
3906}
3907impl From<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError> for Error {
3908 fn from(err: crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError) -> Self {
3909 match err {
3910 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3911 }
3912 }
3913}
3914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>>
3915 for Error
3916where
3917 R: Send + Sync + std::fmt::Debug + 'static,
3918{
3919 fn from(
3920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>,
3921 ) -> Self {
3922 match err {
3923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3926 source: err.into(),
3927 }),
3928 }
3929 }
3930}
3931impl From<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError> for Error {
3932 fn from(err: crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError) -> Self {
3933 match err {
3934 crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
3935 }
3936 }
3937}
3938impl<R>
3939 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError, R>>
3940 for Error
3941where
3942 R: Send + Sync + std::fmt::Debug + 'static,
3943{
3944 fn from(
3945 err: ::aws_smithy_runtime_api::client::result::SdkError<
3946 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError,
3947 R,
3948 >,
3949 ) -> Self {
3950 match err {
3951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3954 source: err.into(),
3955 }),
3956 }
3957 }
3958}
3959impl From<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError> for Error {
3960 fn from(err: crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError) -> Self {
3961 match err {
3962 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3963 }
3964 }
3965}
3966impl<R>
3967 From<
3968 ::aws_smithy_runtime_api::client::result::SdkError<
3969 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3970 R,
3971 >,
3972 > for Error
3973where
3974 R: Send + Sync + std::fmt::Debug + 'static,
3975{
3976 fn from(
3977 err: ::aws_smithy_runtime_api::client::result::SdkError<
3978 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3979 R,
3980 >,
3981 ) -> Self {
3982 match err {
3983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3986 source: err.into(),
3987 }),
3988 }
3989 }
3990}
3991impl From<crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError> for Error {
3992 fn from(err: crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError) -> Self {
3993 match err {
3994 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError::Unhandled(inner) => {
3995 Error::Unhandled(inner)
3996 }
3997 }
3998 }
3999}
4000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
4001where
4002 R: Send + Sync + std::fmt::Debug + 'static,
4003{
4004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
4005 match err {
4006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4009 source: err.into(),
4010 }),
4011 }
4012 }
4013}
4014impl From<crate::operation::create_volume::CreateVolumeError> for Error {
4015 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
4016 match err {
4017 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
4018 }
4019 }
4020}
4021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>> for Error
4022where
4023 R: Send + Sync + std::fmt::Debug + 'static,
4024{
4025 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>) -> Self {
4026 match err {
4027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4030 source: err.into(),
4031 }),
4032 }
4033 }
4034}
4035impl From<crate::operation::create_vpc::CreateVpcError> for Error {
4036 fn from(err: crate::operation::create_vpc::CreateVpcError) -> Self {
4037 match err {
4038 crate::operation::create_vpc::CreateVpcError::Unhandled(inner) => Error::Unhandled(inner),
4039 }
4040 }
4041}
4042impl<R>
4043 From<
4044 ::aws_smithy_runtime_api::client::result::SdkError<
4045 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
4046 R,
4047 >,
4048 > for Error
4049where
4050 R: Send + Sync + std::fmt::Debug + 'static,
4051{
4052 fn from(
4053 err: ::aws_smithy_runtime_api::client::result::SdkError<
4054 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
4055 R,
4056 >,
4057 ) -> Self {
4058 match err {
4059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4062 source: err.into(),
4063 }),
4064 }
4065 }
4066}
4067impl From<crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError> for Error {
4068 fn from(err: crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError) -> Self {
4069 match err {
4070 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
4071 Error::Unhandled(inner)
4072 }
4073 }
4074 }
4075}
4076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError, R>>
4077 for Error
4078where
4079 R: Send + Sync + std::fmt::Debug + 'static,
4080{
4081 fn from(
4082 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError, R>,
4083 ) -> Self {
4084 match err {
4085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4088 source: err.into(),
4089 }),
4090 }
4091 }
4092}
4093impl From<crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError> for Error {
4094 fn from(err: crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError) -> Self {
4095 match err {
4096 crate::operation::create_vpc_encryption_control::CreateVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
4097 }
4098 }
4099}
4100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
4101where
4102 R: Send + Sync + std::fmt::Debug + 'static,
4103{
4104 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
4105 match err {
4106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4109 source: err.into(),
4110 }),
4111 }
4112 }
4113}
4114impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
4115 fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
4116 match err {
4117 crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4118 }
4119 }
4120}
4121impl<R>
4122 From<
4123 ::aws_smithy_runtime_api::client::result::SdkError<
4124 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
4125 R,
4126 >,
4127 > for Error
4128where
4129 R: Send + Sync + std::fmt::Debug + 'static,
4130{
4131 fn from(
4132 err: ::aws_smithy_runtime_api::client::result::SdkError<
4133 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
4134 R,
4135 >,
4136 ) -> Self {
4137 match err {
4138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4141 source: err.into(),
4142 }),
4143 }
4144 }
4145}
4146impl From<crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError> for Error {
4147 fn from(err: crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError) -> Self {
4148 match err {
4149 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError::Unhandled(inner) => {
4150 Error::Unhandled(inner)
4151 }
4152 }
4153 }
4154}
4155impl<R>
4156 From<
4157 ::aws_smithy_runtime_api::client::result::SdkError<
4158 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4159 R,
4160 >,
4161 > for Error
4162where
4163 R: Send + Sync + std::fmt::Debug + 'static,
4164{
4165 fn from(
4166 err: ::aws_smithy_runtime_api::client::result::SdkError<
4167 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4168 R,
4169 >,
4170 ) -> Self {
4171 match err {
4172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4175 source: err.into(),
4176 }),
4177 }
4178 }
4179}
4180impl From<crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError> for Error {
4181 fn from(err: crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError) -> Self {
4182 match err {
4183 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError::Unhandled(inner) => {
4184 Error::Unhandled(inner)
4185 }
4186 }
4187 }
4188}
4189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>>
4190 for Error
4191where
4192 R: Send + Sync + std::fmt::Debug + 'static,
4193{
4194 fn from(
4195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>,
4196 ) -> Self {
4197 match err {
4198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4201 source: err.into(),
4202 }),
4203 }
4204 }
4205}
4206impl From<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError> for Error {
4207 fn from(err: crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError) -> Self {
4208 match err {
4209 crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4210 }
4211 }
4212}
4213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>> for Error
4214where
4215 R: Send + Sync + std::fmt::Debug + 'static,
4216{
4217 fn from(
4218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError, R>,
4219 ) -> Self {
4220 match err {
4221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4224 source: err.into(),
4225 }),
4226 }
4227 }
4228}
4229impl From<crate::operation::create_vpn_concentrator::CreateVpnConcentratorError> for Error {
4230 fn from(err: crate::operation::create_vpn_concentrator::CreateVpnConcentratorError) -> Self {
4231 match err {
4232 crate::operation::create_vpn_concentrator::CreateVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
4233 }
4234 }
4235}
4236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>> for Error
4237where
4238 R: Send + Sync + std::fmt::Debug + 'static,
4239{
4240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>) -> Self {
4241 match err {
4242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4245 source: err.into(),
4246 }),
4247 }
4248 }
4249}
4250impl From<crate::operation::create_vpn_connection::CreateVpnConnectionError> for Error {
4251 fn from(err: crate::operation::create_vpn_connection::CreateVpnConnectionError) -> Self {
4252 match err {
4253 crate::operation::create_vpn_connection::CreateVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4254 }
4255 }
4256}
4257impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>>
4258 for Error
4259where
4260 R: Send + Sync + std::fmt::Debug + 'static,
4261{
4262 fn from(
4263 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>,
4264 ) -> Self {
4265 match err {
4266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4269 source: err.into(),
4270 }),
4271 }
4272 }
4273}
4274impl From<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError> for Error {
4275 fn from(err: crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError) -> Self {
4276 match err {
4277 crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
4278 }
4279 }
4280}
4281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>> for Error
4282where
4283 R: Send + Sync + std::fmt::Debug + 'static,
4284{
4285 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>) -> Self {
4286 match err {
4287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4290 source: err.into(),
4291 }),
4292 }
4293 }
4294}
4295impl From<crate::operation::create_vpn_gateway::CreateVpnGatewayError> for Error {
4296 fn from(err: crate::operation::create_vpn_gateway::CreateVpnGatewayError) -> Self {
4297 match err {
4298 crate::operation::create_vpn_gateway::CreateVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4299 }
4300 }
4301}
4302impl<R>
4303 From<
4304 ::aws_smithy_runtime_api::client::result::SdkError<
4305 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4306 R,
4307 >,
4308 > for Error
4309where
4310 R: Send + Sync + std::fmt::Debug + 'static,
4311{
4312 fn from(
4313 err: ::aws_smithy_runtime_api::client::result::SdkError<
4314 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4315 R,
4316 >,
4317 ) -> Self {
4318 match err {
4319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4322 source: err.into(),
4323 }),
4324 }
4325 }
4326}
4327impl From<crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError> for Error {
4328 fn from(err: crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError) -> Self {
4329 match err {
4330 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
4331 }
4332 }
4333}
4334impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>> for Error
4335where
4336 R: Send + Sync + std::fmt::Debug + 'static,
4337{
4338 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>) -> Self {
4339 match err {
4340 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4341 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4342 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4343 source: err.into(),
4344 }),
4345 }
4346 }
4347}
4348impl From<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError> for Error {
4349 fn from(err: crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError) -> Self {
4350 match err {
4351 crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4352 }
4353 }
4354}
4355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>>
4356 for Error
4357where
4358 R: Send + Sync + std::fmt::Debug + 'static,
4359{
4360 fn from(
4361 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>,
4362 ) -> Self {
4363 match err {
4364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4367 source: err.into(),
4368 }),
4369 }
4370 }
4371}
4372impl From<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError> for Error {
4373 fn from(err: crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError) -> Self {
4374 match err {
4375 crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4376 }
4377 }
4378}
4379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>> for Error
4380where
4381 R: Send + Sync + std::fmt::Debug + 'static,
4382{
4383 fn from(
4384 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>,
4385 ) -> Self {
4386 match err {
4387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4390 source: err.into(),
4391 }),
4392 }
4393 }
4394}
4395impl From<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError> for Error {
4396 fn from(err: crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError) -> Self {
4397 match err {
4398 crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
4399 }
4400 }
4401}
4402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>> for Error
4403where
4404 R: Send + Sync + std::fmt::Debug + 'static,
4405{
4406 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>) -> Self {
4407 match err {
4408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4411 source: err.into(),
4412 }),
4413 }
4414 }
4415}
4416impl From<crate::operation::delete_coip_cidr::DeleteCoipCidrError> for Error {
4417 fn from(err: crate::operation::delete_coip_cidr::DeleteCoipCidrError) -> Self {
4418 match err {
4419 crate::operation::delete_coip_cidr::DeleteCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
4420 }
4421 }
4422}
4423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>> for Error
4424where
4425 R: Send + Sync + std::fmt::Debug + 'static,
4426{
4427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>) -> Self {
4428 match err {
4429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4432 source: err.into(),
4433 }),
4434 }
4435 }
4436}
4437impl From<crate::operation::delete_coip_pool::DeleteCoipPoolError> for Error {
4438 fn from(err: crate::operation::delete_coip_pool::DeleteCoipPoolError) -> Self {
4439 match err {
4440 crate::operation::delete_coip_pool::DeleteCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
4441 }
4442 }
4443}
4444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>> for Error
4445where
4446 R: Send + Sync + std::fmt::Debug + 'static,
4447{
4448 fn from(
4449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>,
4450 ) -> Self {
4451 match err {
4452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4455 source: err.into(),
4456 }),
4457 }
4458 }
4459}
4460impl From<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError> for Error {
4461 fn from(err: crate::operation::delete_customer_gateway::DeleteCustomerGatewayError) -> Self {
4462 match err {
4463 crate::operation::delete_customer_gateway::DeleteCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4464 }
4465 }
4466}
4467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>> for Error
4468where
4469 R: Send + Sync + std::fmt::Debug + 'static,
4470{
4471 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>) -> Self {
4472 match err {
4473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4476 source: err.into(),
4477 }),
4478 }
4479 }
4480}
4481impl From<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError> for Error {
4482 fn from(err: crate::operation::delete_dhcp_options::DeleteDhcpOptionsError) -> Self {
4483 match err {
4484 crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4485 }
4486 }
4487}
4488impl<R>
4489 From<
4490 ::aws_smithy_runtime_api::client::result::SdkError<
4491 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4492 R,
4493 >,
4494 > for Error
4495where
4496 R: Send + Sync + std::fmt::Debug + 'static,
4497{
4498 fn from(
4499 err: ::aws_smithy_runtime_api::client::result::SdkError<
4500 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4501 R,
4502 >,
4503 ) -> Self {
4504 match err {
4505 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4506 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4507 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4508 source: err.into(),
4509 }),
4510 }
4511 }
4512}
4513impl From<crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError> for Error {
4514 fn from(err: crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError) -> Self {
4515 match err {
4516 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4517 }
4518 }
4519}
4520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>> for Error
4521where
4522 R: Send + Sync + std::fmt::Debug + 'static,
4523{
4524 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>) -> Self {
4525 match err {
4526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4529 source: err.into(),
4530 }),
4531 }
4532 }
4533}
4534impl From<crate::operation::delete_fleets::DeleteFleetsError> for Error {
4535 fn from(err: crate::operation::delete_fleets::DeleteFleetsError) -> Self {
4536 match err {
4537 crate::operation::delete_fleets::DeleteFleetsError::Unhandled(inner) => Error::Unhandled(inner),
4538 }
4539 }
4540}
4541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>> for Error
4542where
4543 R: Send + Sync + std::fmt::Debug + 'static,
4544{
4545 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>) -> Self {
4546 match err {
4547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4550 source: err.into(),
4551 }),
4552 }
4553 }
4554}
4555impl From<crate::operation::delete_flow_logs::DeleteFlowLogsError> for Error {
4556 fn from(err: crate::operation::delete_flow_logs::DeleteFlowLogsError) -> Self {
4557 match err {
4558 crate::operation::delete_flow_logs::DeleteFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
4559 }
4560 }
4561}
4562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>> for Error
4563where
4564 R: Send + Sync + std::fmt::Debug + 'static,
4565{
4566 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>) -> Self {
4567 match err {
4568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4571 source: err.into(),
4572 }),
4573 }
4574 }
4575}
4576impl From<crate::operation::delete_fpga_image::DeleteFpgaImageError> for Error {
4577 fn from(err: crate::operation::delete_fpga_image::DeleteFpgaImageError) -> Self {
4578 match err {
4579 crate::operation::delete_fpga_image::DeleteFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
4580 }
4581 }
4582}
4583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>>
4584 for Error
4585where
4586 R: Send + Sync + std::fmt::Debug + 'static,
4587{
4588 fn from(
4589 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>,
4590 ) -> Self {
4591 match err {
4592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4595 source: err.into(),
4596 }),
4597 }
4598 }
4599}
4600impl From<crate::operation::delete_image_usage_report::DeleteImageUsageReportError> for Error {
4601 fn from(err: crate::operation::delete_image_usage_report::DeleteImageUsageReportError) -> Self {
4602 match err {
4603 crate::operation::delete_image_usage_report::DeleteImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
4604 }
4605 }
4606}
4607impl<R>
4608 From<
4609 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError, R>,
4610 > for Error
4611where
4612 R: Send + Sync + std::fmt::Debug + 'static,
4613{
4614 fn from(
4615 err: ::aws_smithy_runtime_api::client::result::SdkError<
4616 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError,
4617 R,
4618 >,
4619 ) -> Self {
4620 match err {
4621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4624 source: err.into(),
4625 }),
4626 }
4627 }
4628}
4629impl From<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError> for Error {
4630 fn from(err: crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError) -> Self {
4631 match err {
4632 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4633 }
4634 }
4635}
4636impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>>
4637 for Error
4638where
4639 R: Send + Sync + std::fmt::Debug + 'static,
4640{
4641 fn from(
4642 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>,
4643 ) -> Self {
4644 match err {
4645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4648 source: err.into(),
4649 }),
4650 }
4651 }
4652}
4653impl From<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError> for Error {
4654 fn from(err: crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError) -> Self {
4655 match err {
4656 crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
4657 }
4658 }
4659}
4660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>> for Error
4661where
4662 R: Send + Sync + std::fmt::Debug + 'static,
4663{
4664 fn from(
4665 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>,
4666 ) -> Self {
4667 match err {
4668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4671 source: err.into(),
4672 }),
4673 }
4674 }
4675}
4676impl From<crate::operation::delete_internet_gateway::DeleteInternetGatewayError> for Error {
4677 fn from(err: crate::operation::delete_internet_gateway::DeleteInternetGatewayError) -> Self {
4678 match err {
4679 crate::operation::delete_internet_gateway::DeleteInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4680 }
4681 }
4682}
4683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>> for Error
4684where
4685 R: Send + Sync + std::fmt::Debug + 'static,
4686{
4687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>) -> Self {
4688 match err {
4689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4692 source: err.into(),
4693 }),
4694 }
4695 }
4696}
4697impl From<crate::operation::delete_ipam::DeleteIpamError> for Error {
4698 fn from(err: crate::operation::delete_ipam::DeleteIpamError) -> Self {
4699 match err {
4700 crate::operation::delete_ipam::DeleteIpamError::Unhandled(inner) => Error::Unhandled(inner),
4701 }
4702 }
4703}
4704impl<R>
4705 From<
4706 ::aws_smithy_runtime_api::client::result::SdkError<
4707 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4708 R,
4709 >,
4710 > for Error
4711where
4712 R: Send + Sync + std::fmt::Debug + 'static,
4713{
4714 fn from(
4715 err: ::aws_smithy_runtime_api::client::result::SdkError<
4716 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4717 R,
4718 >,
4719 ) -> Self {
4720 match err {
4721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4724 source: err.into(),
4725 }),
4726 }
4727 }
4728}
4729impl From<crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError> for Error {
4730 fn from(err: crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError) -> Self {
4731 match err {
4732 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError::Unhandled(
4733 inner,
4734 ) => Error::Unhandled(inner),
4735 }
4736 }
4737}
4738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_policy::DeleteIpamPolicyError, R>> for Error
4739where
4740 R: Send + Sync + std::fmt::Debug + 'static,
4741{
4742 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_policy::DeleteIpamPolicyError, R>) -> Self {
4743 match err {
4744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4747 source: err.into(),
4748 }),
4749 }
4750 }
4751}
4752impl From<crate::operation::delete_ipam_policy::DeleteIpamPolicyError> for Error {
4753 fn from(err: crate::operation::delete_ipam_policy::DeleteIpamPolicyError) -> Self {
4754 match err {
4755 crate::operation::delete_ipam_policy::DeleteIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
4756 }
4757 }
4758}
4759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>> for Error
4760where
4761 R: Send + Sync + std::fmt::Debug + 'static,
4762{
4763 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>) -> Self {
4764 match err {
4765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4768 source: err.into(),
4769 }),
4770 }
4771 }
4772}
4773impl From<crate::operation::delete_ipam_pool::DeleteIpamPoolError> for Error {
4774 fn from(err: crate::operation::delete_ipam_pool::DeleteIpamPoolError) -> Self {
4775 match err {
4776 crate::operation::delete_ipam_pool::DeleteIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
4777 }
4778 }
4779}
4780impl<R>
4781 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError, R>>
4782 for Error
4783where
4784 R: Send + Sync + std::fmt::Debug + 'static,
4785{
4786 fn from(
4787 err: ::aws_smithy_runtime_api::client::result::SdkError<
4788 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError,
4789 R,
4790 >,
4791 ) -> Self {
4792 match err {
4793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4796 source: err.into(),
4797 }),
4798 }
4799 }
4800}
4801impl From<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError> for Error {
4802 fn from(err: crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError) -> Self {
4803 match err {
4804 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
4805 }
4806 }
4807}
4808impl<R>
4809 From<
4810 ::aws_smithy_runtime_api::client::result::SdkError<
4811 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4812 R,
4813 >,
4814 > for Error
4815where
4816 R: Send + Sync + std::fmt::Debug + 'static,
4817{
4818 fn from(
4819 err: ::aws_smithy_runtime_api::client::result::SdkError<
4820 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4821 R,
4822 >,
4823 ) -> Self {
4824 match err {
4825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4828 source: err.into(),
4829 }),
4830 }
4831 }
4832}
4833impl From<crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError> for Error {
4834 fn from(err: crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError) -> Self {
4835 match err {
4836 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError::Unhandled(inner) => {
4837 Error::Unhandled(inner)
4838 }
4839 }
4840 }
4841}
4842impl<R>
4843 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError, R>>
4844 for Error
4845where
4846 R: Send + Sync + std::fmt::Debug + 'static,
4847{
4848 fn from(
4849 err: ::aws_smithy_runtime_api::client::result::SdkError<
4850 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError,
4851 R,
4852 >,
4853 ) -> Self {
4854 match err {
4855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4858 source: err.into(),
4859 }),
4860 }
4861 }
4862}
4863impl From<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError> for Error {
4864 fn from(err: crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError) -> Self {
4865 match err {
4866 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
4867 }
4868 }
4869}
4870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>> for Error
4871where
4872 R: Send + Sync + std::fmt::Debug + 'static,
4873{
4874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>) -> Self {
4875 match err {
4876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4879 source: err.into(),
4880 }),
4881 }
4882 }
4883}
4884impl From<crate::operation::delete_ipam_scope::DeleteIpamScopeError> for Error {
4885 fn from(err: crate::operation::delete_ipam_scope::DeleteIpamScopeError) -> Self {
4886 match err {
4887 crate::operation::delete_ipam_scope::DeleteIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
4888 }
4889 }
4890}
4891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>> for Error
4892where
4893 R: Send + Sync + std::fmt::Debug + 'static,
4894{
4895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>) -> Self {
4896 match err {
4897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4900 source: err.into(),
4901 }),
4902 }
4903 }
4904}
4905impl From<crate::operation::delete_key_pair::DeleteKeyPairError> for Error {
4906 fn from(err: crate::operation::delete_key_pair::DeleteKeyPairError) -> Self {
4907 match err {
4908 crate::operation::delete_key_pair::DeleteKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
4909 }
4910 }
4911}
4912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>> for Error
4913where
4914 R: Send + Sync + std::fmt::Debug + 'static,
4915{
4916 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>) -> Self {
4917 match err {
4918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4921 source: err.into(),
4922 }),
4923 }
4924 }
4925}
4926impl From<crate::operation::delete_launch_template::DeleteLaunchTemplateError> for Error {
4927 fn from(err: crate::operation::delete_launch_template::DeleteLaunchTemplateError) -> Self {
4928 match err {
4929 crate::operation::delete_launch_template::DeleteLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4930 }
4931 }
4932}
4933impl<R>
4934 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError, R>>
4935 for Error
4936where
4937 R: Send + Sync + std::fmt::Debug + 'static,
4938{
4939 fn from(
4940 err: ::aws_smithy_runtime_api::client::result::SdkError<
4941 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError,
4942 R,
4943 >,
4944 ) -> Self {
4945 match err {
4946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4949 source: err.into(),
4950 }),
4951 }
4952 }
4953}
4954impl From<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError> for Error {
4955 fn from(err: crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError) -> Self {
4956 match err {
4957 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
4958 }
4959 }
4960}
4961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>>
4962 for Error
4963where
4964 R: Send + Sync + std::fmt::Debug + 'static,
4965{
4966 fn from(
4967 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>,
4968 ) -> Self {
4969 match err {
4970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4973 source: err.into(),
4974 }),
4975 }
4976 }
4977}
4978impl From<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError> for Error {
4979 fn from(err: crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError) -> Self {
4980 match err {
4981 crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
4982 }
4983 }
4984}
4985impl<R>
4986 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError, R>>
4987 for Error
4988where
4989 R: Send + Sync + std::fmt::Debug + 'static,
4990{
4991 fn from(
4992 err: ::aws_smithy_runtime_api::client::result::SdkError<
4993 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError,
4994 R,
4995 >,
4996 ) -> Self {
4997 match err {
4998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5001 source: err.into(),
5002 }),
5003 }
5004 }
5005}
5006impl From<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError> for Error {
5007 fn from(err: crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError) -> Self {
5008 match err {
5009 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5010 }
5011 }
5012}
5013impl<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 {
5014 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
5015 match err {
5016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5017 _ => Error::Unhandled(
5018 crate::error::sealed_unhandled::Unhandled {
5019 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5020 source: err.into(),
5021 }
5022 ),
5023 }
5024 }
5025}
5026impl From<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
5027 fn from(err: crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
5028 match err {
5029 crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
5030 }
5031 }
5032}
5033impl<R>
5034 From<
5035 ::aws_smithy_runtime_api::client::result::SdkError<
5036 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
5037 R,
5038 >,
5039 > for Error
5040where
5041 R: Send + Sync + std::fmt::Debug + 'static,
5042{
5043 fn from(
5044 err: ::aws_smithy_runtime_api::client::result::SdkError<
5045 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
5046 R,
5047 >,
5048 ) -> Self {
5049 match err {
5050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5053 source: err.into(),
5054 }),
5055 }
5056 }
5057}
5058impl From<crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError> for Error {
5059 fn from(err: crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError) -> Self {
5060 match err {
5061 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
5062 Error::Unhandled(inner)
5063 }
5064 }
5065 }
5066}
5067impl<R>
5068 From<
5069 ::aws_smithy_runtime_api::client::result::SdkError<
5070 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
5071 R,
5072 >,
5073 > for Error
5074where
5075 R: Send + Sync + std::fmt::Debug + 'static,
5076{
5077 fn from(
5078 err: ::aws_smithy_runtime_api::client::result::SdkError<
5079 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
5080 R,
5081 >,
5082 ) -> Self {
5083 match err {
5084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5087 source: err.into(),
5088 }),
5089 }
5090 }
5091}
5092impl From<crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError> for Error {
5093 fn from(err: crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError) -> Self {
5094 match err {
5095 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
5096 Error::Unhandled(inner)
5097 }
5098 }
5099 }
5100}
5101impl<R>
5102 From<
5103 ::aws_smithy_runtime_api::client::result::SdkError<
5104 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
5105 R,
5106 >,
5107 > for Error
5108where
5109 R: Send + Sync + std::fmt::Debug + 'static,
5110{
5111 fn from(
5112 err: ::aws_smithy_runtime_api::client::result::SdkError<
5113 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
5114 R,
5115 >,
5116 ) -> Self {
5117 match err {
5118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5121 source: err.into(),
5122 }),
5123 }
5124 }
5125}
5126impl From<crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError> for Error {
5127 fn from(err: crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError) -> Self {
5128 match err {
5129 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
5130 Error::Unhandled(inner)
5131 }
5132 }
5133 }
5134}
5135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>>
5136 for Error
5137where
5138 R: Send + Sync + std::fmt::Debug + 'static,
5139{
5140 fn from(
5141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>,
5142 ) -> Self {
5143 match err {
5144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5147 source: err.into(),
5148 }),
5149 }
5150 }
5151}
5152impl From<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError> for Error {
5153 fn from(err: crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError) -> Self {
5154 match err {
5155 crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
5156 }
5157 }
5158}
5159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>> for Error
5160where
5161 R: Send + Sync + std::fmt::Debug + 'static,
5162{
5163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>) -> Self {
5164 match err {
5165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5168 source: err.into(),
5169 }),
5170 }
5171 }
5172}
5173impl From<crate::operation::delete_nat_gateway::DeleteNatGatewayError> for Error {
5174 fn from(err: crate::operation::delete_nat_gateway::DeleteNatGatewayError) -> Self {
5175 match err {
5176 crate::operation::delete_nat_gateway::DeleteNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5177 }
5178 }
5179}
5180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>> for Error
5181where
5182 R: Send + Sync + std::fmt::Debug + 'static,
5183{
5184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>) -> Self {
5185 match err {
5186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5189 source: err.into(),
5190 }),
5191 }
5192 }
5193}
5194impl From<crate::operation::delete_network_acl::DeleteNetworkAclError> for Error {
5195 fn from(err: crate::operation::delete_network_acl::DeleteNetworkAclError) -> Self {
5196 match err {
5197 crate::operation::delete_network_acl::DeleteNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
5198 }
5199 }
5200}
5201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>> 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_network_acl_entry::DeleteNetworkAclEntryError, 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_network_acl_entry::DeleteNetworkAclEntryError> for Error {
5218 fn from(err: crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError) -> Self {
5219 match err {
5220 crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
5221 }
5222 }
5223}
5224impl<R>
5225 From<
5226 ::aws_smithy_runtime_api::client::result::SdkError<
5227 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5228 R,
5229 >,
5230 > for Error
5231where
5232 R: Send + Sync + std::fmt::Debug + 'static,
5233{
5234 fn from(
5235 err: ::aws_smithy_runtime_api::client::result::SdkError<
5236 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
5237 R,
5238 >,
5239 ) -> Self {
5240 match err {
5241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5244 source: err.into(),
5245 }),
5246 }
5247 }
5248}
5249impl From<crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError> for Error {
5250 fn from(err: crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError) -> Self {
5251 match err {
5252 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError::Unhandled(inner) => {
5253 Error::Unhandled(inner)
5254 }
5255 }
5256 }
5257}
5258impl<R>
5259 From<
5260 ::aws_smithy_runtime_api::client::result::SdkError<
5261 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5262 R,
5263 >,
5264 > for Error
5265where
5266 R: Send + Sync + std::fmt::Debug + 'static,
5267{
5268 fn from(
5269 err: ::aws_smithy_runtime_api::client::result::SdkError<
5270 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
5271 R,
5272 >,
5273 ) -> Self {
5274 match err {
5275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5278 source: err.into(),
5279 }),
5280 }
5281 }
5282}
5283impl From<crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError> for Error {
5284 fn from(err: crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError) -> Self {
5285 match err {
5286 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
5287 Error::Unhandled(inner)
5288 }
5289 }
5290 }
5291}
5292impl<R>
5293 From<
5294 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError, R>,
5295 > for Error
5296where
5297 R: Send + Sync + std::fmt::Debug + 'static,
5298{
5299 fn from(
5300 err: ::aws_smithy_runtime_api::client::result::SdkError<
5301 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError,
5302 R,
5303 >,
5304 ) -> Self {
5305 match err {
5306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5309 source: err.into(),
5310 }),
5311 }
5312 }
5313}
5314impl From<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError> for Error {
5315 fn from(err: crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError) -> Self {
5316 match err {
5317 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
5318 }
5319 }
5320}
5321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>>
5322 for Error
5323where
5324 R: Send + Sync + std::fmt::Debug + 'static,
5325{
5326 fn from(
5327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>,
5328 ) -> Self {
5329 match err {
5330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5333 source: err.into(),
5334 }),
5335 }
5336 }
5337}
5338impl From<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError> for Error {
5339 fn from(err: crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError) -> Self {
5340 match err {
5341 crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
5342 }
5343 }
5344}
5345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>> for Error
5346where
5347 R: Send + Sync + std::fmt::Debug + 'static,
5348{
5349 fn from(
5350 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>,
5351 ) -> Self {
5352 match err {
5353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5356 source: err.into(),
5357 }),
5358 }
5359 }
5360}
5361impl From<crate::operation::delete_network_interface::DeleteNetworkInterfaceError> for Error {
5362 fn from(err: crate::operation::delete_network_interface::DeleteNetworkInterfaceError) -> Self {
5363 match err {
5364 crate::operation::delete_network_interface::DeleteNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
5365 }
5366 }
5367}
5368impl<R>
5369 From<
5370 ::aws_smithy_runtime_api::client::result::SdkError<
5371 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5372 R,
5373 >,
5374 > for Error
5375where
5376 R: Send + Sync + std::fmt::Debug + 'static,
5377{
5378 fn from(
5379 err: ::aws_smithy_runtime_api::client::result::SdkError<
5380 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5381 R,
5382 >,
5383 ) -> Self {
5384 match err {
5385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5388 source: err.into(),
5389 }),
5390 }
5391 }
5392}
5393impl From<crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError> for Error {
5394 fn from(err: crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError) -> Self {
5395 match err {
5396 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
5397 }
5398 }
5399}
5400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>> for Error
5401where
5402 R: Send + Sync + std::fmt::Debug + 'static,
5403{
5404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>) -> Self {
5405 match err {
5406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5409 source: err.into(),
5410 }),
5411 }
5412 }
5413}
5414impl From<crate::operation::delete_placement_group::DeletePlacementGroupError> for Error {
5415 fn from(err: crate::operation::delete_placement_group::DeletePlacementGroupError) -> Self {
5416 match err {
5417 crate::operation::delete_placement_group::DeletePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
5418 }
5419 }
5420}
5421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>> for Error
5422where
5423 R: Send + Sync + std::fmt::Debug + 'static,
5424{
5425 fn from(
5426 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>,
5427 ) -> Self {
5428 match err {
5429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5432 source: err.into(),
5433 }),
5434 }
5435 }
5436}
5437impl From<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError> for Error {
5438 fn from(err: crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError) -> Self {
5439 match err {
5440 crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
5441 }
5442 }
5443}
5444impl<R>
5445 From<
5446 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError, R>,
5447 > for Error
5448where
5449 R: Send + Sync + std::fmt::Debug + 'static,
5450{
5451 fn from(
5452 err: ::aws_smithy_runtime_api::client::result::SdkError<
5453 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
5454 R,
5455 >,
5456 ) -> Self {
5457 match err {
5458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5461 source: err.into(),
5462 }),
5463 }
5464 }
5465}
5466impl From<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError> for Error {
5467 fn from(err: crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError) -> Self {
5468 match err {
5469 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
5470 }
5471 }
5472}
5473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
5474where
5475 R: Send + Sync + std::fmt::Debug + 'static,
5476{
5477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
5478 match err {
5479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5482 source: err.into(),
5483 }),
5484 }
5485 }
5486}
5487impl From<crate::operation::delete_route::DeleteRouteError> for Error {
5488 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
5489 match err {
5490 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
5491 }
5492 }
5493}
5494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>> for Error
5495where
5496 R: Send + Sync + std::fmt::Debug + 'static,
5497{
5498 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>) -> Self {
5499 match err {
5500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5503 source: err.into(),
5504 }),
5505 }
5506 }
5507}
5508impl From<crate::operation::delete_route_server::DeleteRouteServerError> for Error {
5509 fn from(err: crate::operation::delete_route_server::DeleteRouteServerError) -> Self {
5510 match err {
5511 crate::operation::delete_route_server::DeleteRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
5512 }
5513 }
5514}
5515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>>
5516 for Error
5517where
5518 R: Send + Sync + std::fmt::Debug + 'static,
5519{
5520 fn from(
5521 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>,
5522 ) -> Self {
5523 match err {
5524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5527 source: err.into(),
5528 }),
5529 }
5530 }
5531}
5532impl From<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError> for Error {
5533 fn from(err: crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError) -> Self {
5534 match err {
5535 crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5536 }
5537 }
5538}
5539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>> for Error
5540where
5541 R: Send + Sync + std::fmt::Debug + 'static,
5542{
5543 fn from(
5544 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>,
5545 ) -> Self {
5546 match err {
5547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5550 source: err.into(),
5551 }),
5552 }
5553 }
5554}
5555impl From<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError> for Error {
5556 fn from(err: crate::operation::delete_route_server_peer::DeleteRouteServerPeerError) -> Self {
5557 match err {
5558 crate::operation::delete_route_server_peer::DeleteRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
5559 }
5560 }
5561}
5562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>> for Error
5563where
5564 R: Send + Sync + std::fmt::Debug + 'static,
5565{
5566 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>) -> Self {
5567 match err {
5568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5571 source: err.into(),
5572 }),
5573 }
5574 }
5575}
5576impl From<crate::operation::delete_route_table::DeleteRouteTableError> for Error {
5577 fn from(err: crate::operation::delete_route_table::DeleteRouteTableError) -> Self {
5578 match err {
5579 crate::operation::delete_route_table::DeleteRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5580 }
5581 }
5582}
5583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
5584where
5585 R: Send + Sync + std::fmt::Debug + 'static,
5586{
5587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
5588 match err {
5589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5592 source: err.into(),
5593 }),
5594 }
5595 }
5596}
5597impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
5598 fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
5599 match err {
5600 crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
5601 }
5602 }
5603}
5604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
5605where
5606 R: Send + Sync + std::fmt::Debug + 'static,
5607{
5608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
5609 match err {
5610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5613 source: err.into(),
5614 }),
5615 }
5616 }
5617}
5618impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
5619 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
5620 match err {
5621 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5622 }
5623 }
5624}
5625impl<R>
5626 From<
5627 ::aws_smithy_runtime_api::client::result::SdkError<
5628 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5629 R,
5630 >,
5631 > for Error
5632where
5633 R: Send + Sync + std::fmt::Debug + 'static,
5634{
5635 fn from(
5636 err: ::aws_smithy_runtime_api::client::result::SdkError<
5637 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5638 R,
5639 >,
5640 ) -> Self {
5641 match err {
5642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5645 source: err.into(),
5646 }),
5647 }
5648 }
5649}
5650impl From<crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError> for Error {
5651 fn from(err: crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError) -> Self {
5652 match err {
5653 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5654 }
5655 }
5656}
5657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>> for Error
5658where
5659 R: Send + Sync + std::fmt::Debug + 'static,
5660{
5661 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>) -> Self {
5662 match err {
5663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5666 source: err.into(),
5667 }),
5668 }
5669 }
5670}
5671impl From<crate::operation::delete_subnet::DeleteSubnetError> for Error {
5672 fn from(err: crate::operation::delete_subnet::DeleteSubnetError) -> Self {
5673 match err {
5674 crate::operation::delete_subnet::DeleteSubnetError::Unhandled(inner) => Error::Unhandled(inner),
5675 }
5676 }
5677}
5678impl<R>
5679 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError, R>>
5680 for Error
5681where
5682 R: Send + Sync + std::fmt::Debug + 'static,
5683{
5684 fn from(
5685 err: ::aws_smithy_runtime_api::client::result::SdkError<
5686 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError,
5687 R,
5688 >,
5689 ) -> Self {
5690 match err {
5691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5694 source: err.into(),
5695 }),
5696 }
5697 }
5698}
5699impl From<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError> for Error {
5700 fn from(err: crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError) -> Self {
5701 match err {
5702 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
5703 }
5704 }
5705}
5706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
5707where
5708 R: Send + Sync + std::fmt::Debug + 'static,
5709{
5710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
5711 match err {
5712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5715 source: err.into(),
5716 }),
5717 }
5718 }
5719}
5720impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
5721 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
5722 match err {
5723 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
5724 }
5725 }
5726}
5727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>>
5728 for Error
5729where
5730 R: Send + Sync + std::fmt::Debug + 'static,
5731{
5732 fn from(
5733 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>,
5734 ) -> Self {
5735 match err {
5736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5739 source: err.into(),
5740 }),
5741 }
5742 }
5743}
5744impl From<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError> for Error {
5745 fn from(err: crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError) -> Self {
5746 match err {
5747 crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
5748 }
5749 }
5750}
5751impl<R>
5752 From<
5753 ::aws_smithy_runtime_api::client::result::SdkError<
5754 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5755 R,
5756 >,
5757 > for Error
5758where
5759 R: Send + Sync + std::fmt::Debug + 'static,
5760{
5761 fn from(
5762 err: ::aws_smithy_runtime_api::client::result::SdkError<
5763 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5764 R,
5765 >,
5766 ) -> Self {
5767 match err {
5768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5771 source: err.into(),
5772 }),
5773 }
5774 }
5775}
5776impl From<crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError> for Error {
5777 fn from(err: crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError) -> Self {
5778 match err {
5779 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
5780 }
5781 }
5782}
5783impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>>
5784 for Error
5785where
5786 R: Send + Sync + std::fmt::Debug + 'static,
5787{
5788 fn from(
5789 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>,
5790 ) -> Self {
5791 match err {
5792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5795 source: err.into(),
5796 }),
5797 }
5798 }
5799}
5800impl From<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError> for Error {
5801 fn from(err: crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError) -> Self {
5802 match err {
5803 crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
5804 }
5805 }
5806}
5807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>>
5808 for Error
5809where
5810 R: Send + Sync + std::fmt::Debug + 'static,
5811{
5812 fn from(
5813 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>,
5814 ) -> Self {
5815 match err {
5816 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5817 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5818 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5819 source: err.into(),
5820 }),
5821 }
5822 }
5823}
5824impl From<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError> for Error {
5825 fn from(err: crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError) -> Self {
5826 match err {
5827 crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
5828 }
5829 }
5830}
5831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>> for Error
5832where
5833 R: Send + Sync + std::fmt::Debug + 'static,
5834{
5835 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>) -> Self {
5836 match err {
5837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5840 source: err.into(),
5841 }),
5842 }
5843 }
5844}
5845impl From<crate::operation::delete_transit_gateway::DeleteTransitGatewayError> for Error {
5846 fn from(err: crate::operation::delete_transit_gateway::DeleteTransitGatewayError) -> Self {
5847 match err {
5848 crate::operation::delete_transit_gateway::DeleteTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5849 }
5850 }
5851}
5852impl<R>
5853 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError, R>>
5854 for Error
5855where
5856 R: Send + Sync + std::fmt::Debug + 'static,
5857{
5858 fn from(
5859 err: ::aws_smithy_runtime_api::client::result::SdkError<
5860 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError,
5861 R,
5862 >,
5863 ) -> Self {
5864 match err {
5865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5868 source: err.into(),
5869 }),
5870 }
5871 }
5872}
5873impl From<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError> for Error {
5874 fn from(err: crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError) -> Self {
5875 match err {
5876 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
5877 }
5878 }
5879}
5880impl<R>
5881 From<
5882 ::aws_smithy_runtime_api::client::result::SdkError<
5883 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5884 R,
5885 >,
5886 > for Error
5887where
5888 R: Send + Sync + std::fmt::Debug + 'static,
5889{
5890 fn from(
5891 err: ::aws_smithy_runtime_api::client::result::SdkError<
5892 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5893 R,
5894 >,
5895 ) -> Self {
5896 match err {
5897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5900 source: err.into(),
5901 }),
5902 }
5903 }
5904}
5905impl From<crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError> for Error {
5906 fn from(err: crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError) -> Self {
5907 match err {
5908 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
5909 }
5910 }
5911}
5912impl<R>
5913 From<
5914 ::aws_smithy_runtime_api::client::result::SdkError<
5915 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError,
5916 R,
5917 >,
5918 > for Error
5919where
5920 R: Send + Sync + std::fmt::Debug + 'static,
5921{
5922 fn from(
5923 err: ::aws_smithy_runtime_api::client::result::SdkError<
5924 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError,
5925 R,
5926 >,
5927 ) -> Self {
5928 match err {
5929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5932 source: err.into(),
5933 }),
5934 }
5935 }
5936}
5937impl From<crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError> for Error {
5938 fn from(err: crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError) -> Self {
5939 match err {
5940 crate::operation::delete_transit_gateway_metering_policy::DeleteTransitGatewayMeteringPolicyError::Unhandled(inner) => {
5941 Error::Unhandled(inner)
5942 }
5943 }
5944 }
5945}
5946impl<R>
5947 From<
5948 ::aws_smithy_runtime_api::client::result::SdkError<
5949 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError,
5950 R,
5951 >,
5952 > for Error
5953where
5954 R: Send + Sync + std::fmt::Debug + 'static,
5955{
5956 fn from(
5957 err: ::aws_smithy_runtime_api::client::result::SdkError<
5958 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError,
5959 R,
5960 >,
5961 ) -> Self {
5962 match err {
5963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5966 source: err.into(),
5967 }),
5968 }
5969 }
5970}
5971impl From<crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError> for Error {
5972 fn from(err: crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError) -> Self {
5973 match err {
5974 crate::operation::delete_transit_gateway_metering_policy_entry::DeleteTransitGatewayMeteringPolicyEntryError::Unhandled(inner) => {
5975 Error::Unhandled(inner)
5976 }
5977 }
5978 }
5979}
5980impl<R>
5981 From<
5982 ::aws_smithy_runtime_api::client::result::SdkError<
5983 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5984 R,
5985 >,
5986 > for Error
5987where
5988 R: Send + Sync + std::fmt::Debug + 'static,
5989{
5990 fn from(
5991 err: ::aws_smithy_runtime_api::client::result::SdkError<
5992 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5993 R,
5994 >,
5995 ) -> Self {
5996 match err {
5997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6000 source: err.into(),
6001 }),
6002 }
6003 }
6004}
6005impl From<crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError> for Error {
6006 fn from(err: crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError) -> Self {
6007 match err {
6008 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError::Unhandled(inner) => {
6009 Error::Unhandled(inner)
6010 }
6011 }
6012 }
6013}
6014impl<R>
6015 From<
6016 ::aws_smithy_runtime_api::client::result::SdkError<
6017 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
6018 R,
6019 >,
6020 > for Error
6021where
6022 R: Send + Sync + std::fmt::Debug + 'static,
6023{
6024 fn from(
6025 err: ::aws_smithy_runtime_api::client::result::SdkError<
6026 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
6027 R,
6028 >,
6029 ) -> Self {
6030 match err {
6031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6034 source: err.into(),
6035 }),
6036 }
6037 }
6038}
6039impl From<crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError> for Error {
6040 fn from(err: crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError) -> Self {
6041 match err {
6042 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
6043 Error::Unhandled(inner)
6044 }
6045 }
6046 }
6047}
6048impl<R>
6049 From<
6050 ::aws_smithy_runtime_api::client::result::SdkError<
6051 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
6052 R,
6053 >,
6054 > for Error
6055where
6056 R: Send + Sync + std::fmt::Debug + 'static,
6057{
6058 fn from(
6059 err: ::aws_smithy_runtime_api::client::result::SdkError<
6060 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
6061 R,
6062 >,
6063 ) -> Self {
6064 match err {
6065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6068 source: err.into(),
6069 }),
6070 }
6071 }
6072}
6073impl From<crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError> for Error {
6074 fn from(err: crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError) -> Self {
6075 match err {
6076 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
6077 }
6078 }
6079}
6080impl<R>
6081 From<
6082 ::aws_smithy_runtime_api::client::result::SdkError<
6083 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
6084 R,
6085 >,
6086 > for Error
6087where
6088 R: Send + Sync + std::fmt::Debug + 'static,
6089{
6090 fn from(
6091 err: ::aws_smithy_runtime_api::client::result::SdkError<
6092 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
6093 R,
6094 >,
6095 ) -> Self {
6096 match err {
6097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6100 source: err.into(),
6101 }),
6102 }
6103 }
6104}
6105impl From<crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError> for Error {
6106 fn from(err: crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError) -> Self {
6107 match err {
6108 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
6109 Error::Unhandled(inner)
6110 }
6111 }
6112 }
6113}
6114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>>
6115 for Error
6116where
6117 R: Send + Sync + std::fmt::Debug + 'static,
6118{
6119 fn from(
6120 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>,
6121 ) -> Self {
6122 match err {
6123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6126 source: err.into(),
6127 }),
6128 }
6129 }
6130}
6131impl From<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError> for Error {
6132 fn from(err: crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError) -> Self {
6133 match err {
6134 crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
6135 }
6136 }
6137}
6138impl<R>
6139 From<
6140 ::aws_smithy_runtime_api::client::result::SdkError<
6141 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
6142 R,
6143 >,
6144 > for Error
6145where
6146 R: Send + Sync + std::fmt::Debug + 'static,
6147{
6148 fn from(
6149 err: ::aws_smithy_runtime_api::client::result::SdkError<
6150 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
6151 R,
6152 >,
6153 ) -> Self {
6154 match err {
6155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6158 source: err.into(),
6159 }),
6160 }
6161 }
6162}
6163impl From<crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError> for Error {
6164 fn from(err: crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError) -> Self {
6165 match err {
6166 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
6167 }
6168 }
6169}
6170impl<R>
6171 From<
6172 ::aws_smithy_runtime_api::client::result::SdkError<
6173 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
6174 R,
6175 >,
6176 > for Error
6177where
6178 R: Send + Sync + std::fmt::Debug + 'static,
6179{
6180 fn from(
6181 err: ::aws_smithy_runtime_api::client::result::SdkError<
6182 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
6183 R,
6184 >,
6185 ) -> Self {
6186 match err {
6187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6190 source: err.into(),
6191 }),
6192 }
6193 }
6194}
6195impl From<crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError> for Error {
6196 fn from(err: crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError) -> Self {
6197 match err {
6198 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
6199 Error::Unhandled(inner)
6200 }
6201 }
6202 }
6203}
6204impl<R>
6205 From<
6206 ::aws_smithy_runtime_api::client::result::SdkError<
6207 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
6208 R,
6209 >,
6210 > for Error
6211where
6212 R: Send + Sync + std::fmt::Debug + 'static,
6213{
6214 fn from(
6215 err: ::aws_smithy_runtime_api::client::result::SdkError<
6216 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
6217 R,
6218 >,
6219 ) -> Self {
6220 match err {
6221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6224 source: err.into(),
6225 }),
6226 }
6227 }
6228}
6229impl From<crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError> for Error {
6230 fn from(err: crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError) -> Self {
6231 match err {
6232 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError::Unhandled(inner) => {
6233 Error::Unhandled(inner)
6234 }
6235 }
6236 }
6237}
6238impl<R>
6239 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError, R>>
6240 for Error
6241where
6242 R: Send + Sync + std::fmt::Debug + 'static,
6243{
6244 fn from(
6245 err: ::aws_smithy_runtime_api::client::result::SdkError<
6246 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError,
6247 R,
6248 >,
6249 ) -> Self {
6250 match err {
6251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6254 source: err.into(),
6255 }),
6256 }
6257 }
6258}
6259impl From<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError> for Error {
6260 fn from(err: crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError) -> Self {
6261 match err {
6262 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
6263 }
6264 }
6265}
6266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>>
6267 for Error
6268where
6269 R: Send + Sync + std::fmt::Debug + 'static,
6270{
6271 fn from(
6272 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>,
6273 ) -> Self {
6274 match err {
6275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6278 source: err.into(),
6279 }),
6280 }
6281 }
6282}
6283impl From<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError> for Error {
6284 fn from(err: crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError) -> Self {
6285 match err {
6286 crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
6287 }
6288 }
6289}
6290impl<R>
6291 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError, R>>
6292 for Error
6293where
6294 R: Send + Sync + std::fmt::Debug + 'static,
6295{
6296 fn from(
6297 err: ::aws_smithy_runtime_api::client::result::SdkError<
6298 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError,
6299 R,
6300 >,
6301 ) -> Self {
6302 match err {
6303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6306 source: err.into(),
6307 }),
6308 }
6309 }
6310}
6311impl From<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError> for Error {
6312 fn from(err: crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError) -> Self {
6313 match err {
6314 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
6315 }
6316 }
6317}
6318impl<R>
6319 From<
6320 ::aws_smithy_runtime_api::client::result::SdkError<
6321 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6322 R,
6323 >,
6324 > for Error
6325where
6326 R: Send + Sync + std::fmt::Debug + 'static,
6327{
6328 fn from(
6329 err: ::aws_smithy_runtime_api::client::result::SdkError<
6330 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6331 R,
6332 >,
6333 ) -> Self {
6334 match err {
6335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6338 source: err.into(),
6339 }),
6340 }
6341 }
6342}
6343impl From<crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError> for Error {
6344 fn from(err: crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError) -> Self {
6345 match err {
6346 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError::Unhandled(inner) => {
6347 Error::Unhandled(inner)
6348 }
6349 }
6350 }
6351}
6352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
6353where
6354 R: Send + Sync + std::fmt::Debug + 'static,
6355{
6356 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
6357 match err {
6358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6361 source: err.into(),
6362 }),
6363 }
6364 }
6365}
6366impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
6367 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
6368 match err {
6369 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
6370 }
6371 }
6372}
6373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>> for Error
6374where
6375 R: Send + Sync + std::fmt::Debug + 'static,
6376{
6377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>) -> Self {
6378 match err {
6379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6382 source: err.into(),
6383 }),
6384 }
6385 }
6386}
6387impl From<crate::operation::delete_vpc::DeleteVpcError> for Error {
6388 fn from(err: crate::operation::delete_vpc::DeleteVpcError) -> Self {
6389 match err {
6390 crate::operation::delete_vpc::DeleteVpcError::Unhandled(inner) => Error::Unhandled(inner),
6391 }
6392 }
6393}
6394impl<R>
6395 From<
6396 ::aws_smithy_runtime_api::client::result::SdkError<
6397 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6398 R,
6399 >,
6400 > for Error
6401where
6402 R: Send + Sync + std::fmt::Debug + 'static,
6403{
6404 fn from(
6405 err: ::aws_smithy_runtime_api::client::result::SdkError<
6406 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6407 R,
6408 >,
6409 ) -> Self {
6410 match err {
6411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6414 source: err.into(),
6415 }),
6416 }
6417 }
6418}
6419impl From<crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError> for Error {
6420 fn from(err: crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError) -> Self {
6421 match err {
6422 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
6423 Error::Unhandled(inner)
6424 }
6425 }
6426 }
6427}
6428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError, R>>
6429 for Error
6430where
6431 R: Send + Sync + std::fmt::Debug + 'static,
6432{
6433 fn from(
6434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError, R>,
6435 ) -> Self {
6436 match err {
6437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6440 source: err.into(),
6441 }),
6442 }
6443 }
6444}
6445impl From<crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError> for Error {
6446 fn from(err: crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError) -> Self {
6447 match err {
6448 crate::operation::delete_vpc_encryption_control::DeleteVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
6449 }
6450 }
6451}
6452impl<R>
6453 From<
6454 ::aws_smithy_runtime_api::client::result::SdkError<
6455 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6456 R,
6457 >,
6458 > for Error
6459where
6460 R: Send + Sync + std::fmt::Debug + 'static,
6461{
6462 fn from(
6463 err: ::aws_smithy_runtime_api::client::result::SdkError<
6464 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6465 R,
6466 >,
6467 ) -> Self {
6468 match err {
6469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6472 source: err.into(),
6473 }),
6474 }
6475 }
6476}
6477impl From<crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError> for Error {
6478 fn from(err: crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError) -> Self {
6479 match err {
6480 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
6481 Error::Unhandled(inner)
6482 }
6483 }
6484 }
6485}
6486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>> for Error
6487where
6488 R: Send + Sync + std::fmt::Debug + 'static,
6489{
6490 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>) -> Self {
6491 match err {
6492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6495 source: err.into(),
6496 }),
6497 }
6498 }
6499}
6500impl From<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError> for Error {
6501 fn from(err: crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError) -> Self {
6502 match err {
6503 crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6504 }
6505 }
6506}
6507impl<R>
6508 From<
6509 ::aws_smithy_runtime_api::client::result::SdkError<
6510 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6511 R,
6512 >,
6513 > for Error
6514where
6515 R: Send + Sync + std::fmt::Debug + 'static,
6516{
6517 fn from(
6518 err: ::aws_smithy_runtime_api::client::result::SdkError<
6519 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6520 R,
6521 >,
6522 ) -> Self {
6523 match err {
6524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6527 source: err.into(),
6528 }),
6529 }
6530 }
6531}
6532impl From<crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError> for Error {
6533 fn from(err: crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError) -> Self {
6534 match err {
6535 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
6536 Error::Unhandled(inner)
6537 }
6538 }
6539 }
6540}
6541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>>
6542 for Error
6543where
6544 R: Send + Sync + std::fmt::Debug + 'static,
6545{
6546 fn from(
6547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>,
6548 ) -> Self {
6549 match err {
6550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6553 source: err.into(),
6554 }),
6555 }
6556 }
6557}
6558impl From<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError> for Error {
6559 fn from(err: crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError) -> Self {
6560 match err {
6561 crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6562 }
6563 }
6564}
6565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError, R>> 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::delete_vpn_concentrator::DeleteVpnConcentratorError, 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::delete_vpn_concentrator::DeleteVpnConcentratorError> for Error {
6582 fn from(err: crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError) -> Self {
6583 match err {
6584 crate::operation::delete_vpn_concentrator::DeleteVpnConcentratorError::Unhandled(inner) => Error::Unhandled(inner),
6585 }
6586 }
6587}
6588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>> for Error
6589where
6590 R: Send + Sync + std::fmt::Debug + 'static,
6591{
6592 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>) -> Self {
6593 match err {
6594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6597 source: err.into(),
6598 }),
6599 }
6600 }
6601}
6602impl From<crate::operation::delete_vpn_connection::DeleteVpnConnectionError> for Error {
6603 fn from(err: crate::operation::delete_vpn_connection::DeleteVpnConnectionError) -> Self {
6604 match err {
6605 crate::operation::delete_vpn_connection::DeleteVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6606 }
6607 }
6608}
6609impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>>
6610 for Error
6611where
6612 R: Send + Sync + std::fmt::Debug + 'static,
6613{
6614 fn from(
6615 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>,
6616 ) -> Self {
6617 match err {
6618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6621 source: err.into(),
6622 }),
6623 }
6624 }
6625}
6626impl From<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError> for Error {
6627 fn from(err: crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError) -> Self {
6628 match err {
6629 crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
6630 }
6631 }
6632}
6633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>> for Error
6634where
6635 R: Send + Sync + std::fmt::Debug + 'static,
6636{
6637 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>) -> Self {
6638 match err {
6639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6642 source: err.into(),
6643 }),
6644 }
6645 }
6646}
6647impl From<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError> for Error {
6648 fn from(err: crate::operation::delete_vpn_gateway::DeleteVpnGatewayError) -> Self {
6649 match err {
6650 crate::operation::delete_vpn_gateway::DeleteVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
6651 }
6652 }
6653}
6654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
6655where
6656 R: Send + Sync + std::fmt::Debug + 'static,
6657{
6658 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
6659 match err {
6660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6663 source: err.into(),
6664 }),
6665 }
6666 }
6667}
6668impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
6669 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
6670 match err {
6671 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
6672 }
6673 }
6674}
6675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>> for Error
6676where
6677 R: Send + Sync + std::fmt::Debug + 'static,
6678{
6679 fn from(
6680 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>,
6681 ) -> Self {
6682 match err {
6683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6686 source: err.into(),
6687 }),
6688 }
6689 }
6690}
6691impl From<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError> for Error {
6692 fn from(err: crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError) -> Self {
6693 match err {
6694 crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
6695 }
6696 }
6697}
6698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>>
6699 for Error
6700where
6701 R: Send + Sync + std::fmt::Debug + 'static,
6702{
6703 fn from(
6704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>,
6705 ) -> Self {
6706 match err {
6707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6710 source: err.into(),
6711 }),
6712 }
6713 }
6714}
6715impl From<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError> for Error {
6716 fn from(err: crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError) -> Self {
6717 match err {
6718 crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6719 }
6720 }
6721}
6722impl<R>
6723 From<
6724 ::aws_smithy_runtime_api::client::result::SdkError<
6725 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6726 R,
6727 >,
6728 > for Error
6729where
6730 R: Send + Sync + std::fmt::Debug + 'static,
6731{
6732 fn from(
6733 err: ::aws_smithy_runtime_api::client::result::SdkError<
6734 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6735 R,
6736 >,
6737 ) -> Self {
6738 match err {
6739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6742 source: err.into(),
6743 }),
6744 }
6745 }
6746}
6747impl From<crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError> for Error {
6748 fn from(err: crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError) -> Self {
6749 match err {
6750 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6751 }
6752 }
6753}
6754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>> for Error
6755where
6756 R: Send + Sync + std::fmt::Debug + 'static,
6757{
6758 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>) -> Self {
6759 match err {
6760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6763 source: err.into(),
6764 }),
6765 }
6766 }
6767}
6768impl From<crate::operation::deregister_image::DeregisterImageError> for Error {
6769 fn from(err: crate::operation::deregister_image::DeregisterImageError) -> Self {
6770 match err {
6771 crate::operation::deregister_image::DeregisterImageError::Unhandled(inner) => Error::Unhandled(inner),
6772 }
6773 }
6774}
6775impl<R>
6776 From<
6777 ::aws_smithy_runtime_api::client::result::SdkError<
6778 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6779 R,
6780 >,
6781 > for Error
6782where
6783 R: Send + Sync + std::fmt::Debug + 'static,
6784{
6785 fn from(
6786 err: ::aws_smithy_runtime_api::client::result::SdkError<
6787 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6788 R,
6789 >,
6790 ) -> Self {
6791 match err {
6792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6795 source: err.into(),
6796 }),
6797 }
6798 }
6799}
6800impl From<crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError> for Error {
6801 fn from(err: crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError) -> Self {
6802 match err {
6803 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError::Unhandled(
6804 inner,
6805 ) => Error::Unhandled(inner),
6806 }
6807 }
6808}
6809impl<R>
6810 From<
6811 ::aws_smithy_runtime_api::client::result::SdkError<
6812 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6813 R,
6814 >,
6815 > for Error
6816where
6817 R: Send + Sync + std::fmt::Debug + 'static,
6818{
6819 fn from(
6820 err: ::aws_smithy_runtime_api::client::result::SdkError<
6821 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6822 R,
6823 >,
6824 ) -> Self {
6825 match err {
6826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6829 source: err.into(),
6830 }),
6831 }
6832 }
6833}
6834impl From<crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError> for Error {
6835 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError) -> Self {
6836 match err {
6837 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError::Unhandled(
6838 inner,
6839 ) => Error::Unhandled(inner),
6840 }
6841 }
6842}
6843impl<R>
6844 From<
6845 ::aws_smithy_runtime_api::client::result::SdkError<
6846 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6847 R,
6848 >,
6849 > for Error
6850where
6851 R: Send + Sync + std::fmt::Debug + 'static,
6852{
6853 fn from(
6854 err: ::aws_smithy_runtime_api::client::result::SdkError<
6855 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6856 R,
6857 >,
6858 ) -> Self {
6859 match err {
6860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6863 source: err.into(),
6864 }),
6865 }
6866 }
6867}
6868impl From<crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError> for Error {
6869 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError) -> Self {
6870 match err {
6871 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError::Unhandled(
6872 inner,
6873 ) => Error::Unhandled(inner),
6874 }
6875 }
6876}
6877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
6878 for Error
6879where
6880 R: Send + Sync + std::fmt::Debug + 'static,
6881{
6882 fn from(
6883 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
6884 ) -> Self {
6885 match err {
6886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6889 source: err.into(),
6890 }),
6891 }
6892 }
6893}
6894impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
6895 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
6896 match err {
6897 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
6898 }
6899 }
6900}
6901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>> for Error
6902where
6903 R: Send + Sync + std::fmt::Debug + 'static,
6904{
6905 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>) -> Self {
6906 match err {
6907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6910 source: err.into(),
6911 }),
6912 }
6913 }
6914}
6915impl From<crate::operation::describe_addresses::DescribeAddressesError> for Error {
6916 fn from(err: crate::operation::describe_addresses::DescribeAddressesError) -> Self {
6917 match err {
6918 crate::operation::describe_addresses::DescribeAddressesError::Unhandled(inner) => Error::Unhandled(inner),
6919 }
6920 }
6921}
6922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>>
6923 for Error
6924where
6925 R: Send + Sync + std::fmt::Debug + 'static,
6926{
6927 fn from(
6928 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>,
6929 ) -> Self {
6930 match err {
6931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6934 source: err.into(),
6935 }),
6936 }
6937 }
6938}
6939impl From<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError> for Error {
6940 fn from(err: crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError) -> Self {
6941 match err {
6942 crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError::Unhandled(inner) => Error::Unhandled(inner),
6943 }
6944 }
6945}
6946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>>
6947 for Error
6948where
6949 R: Send + Sync + std::fmt::Debug + 'static,
6950{
6951 fn from(
6952 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>,
6953 ) -> Self {
6954 match err {
6955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6958 source: err.into(),
6959 }),
6960 }
6961 }
6962}
6963impl From<crate::operation::describe_address_transfers::DescribeAddressTransfersError> for Error {
6964 fn from(err: crate::operation::describe_address_transfers::DescribeAddressTransfersError) -> Self {
6965 match err {
6966 crate::operation::describe_address_transfers::DescribeAddressTransfersError::Unhandled(inner) => Error::Unhandled(inner),
6967 }
6968 }
6969}
6970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, 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<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>,
6977 ) -> Self {
6978 match err {
6979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6982 source: err.into(),
6983 }),
6984 }
6985 }
6986}
6987impl From<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError> for Error {
6988 fn from(err: crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError) -> Self {
6989 match err {
6990 crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
6991 }
6992 }
6993}
6994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>>
6995 for Error
6996where
6997 R: Send + Sync + std::fmt::Debug + 'static,
6998{
6999 fn from(
7000 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>,
7001 ) -> Self {
7002 match err {
7003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7006 source: err.into(),
7007 }),
7008 }
7009 }
7010}
7011impl From<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError> for Error {
7012 fn from(err: crate::operation::describe_availability_zones::DescribeAvailabilityZonesError) -> Self {
7013 match err {
7014 crate::operation::describe_availability_zones::DescribeAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
7015 }
7016 }
7017}
7018impl<R>
7019 From<
7020 ::aws_smithy_runtime_api::client::result::SdkError<
7021 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7022 R,
7023 >,
7024 > for Error
7025where
7026 R: Send + Sync + std::fmt::Debug + 'static,
7027{
7028 fn from(
7029 err: ::aws_smithy_runtime_api::client::result::SdkError<
7030 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7031 R,
7032 >,
7033 ) -> Self {
7034 match err {
7035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7038 source: err.into(),
7039 }),
7040 }
7041 }
7042}
7043impl From<crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError> for Error {
7044 fn from(
7045 err: crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
7046 ) -> Self {
7047 match err {
7048 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
7049 }
7050 }
7051}
7052impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>> for Error
7053where
7054 R: Send + Sync + std::fmt::Debug + 'static,
7055{
7056 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>) -> Self {
7057 match err {
7058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7061 source: err.into(),
7062 }),
7063 }
7064 }
7065}
7066impl From<crate::operation::describe_bundle_tasks::DescribeBundleTasksError> for Error {
7067 fn from(err: crate::operation::describe_bundle_tasks::DescribeBundleTasksError) -> Self {
7068 match err {
7069 crate::operation::describe_bundle_tasks::DescribeBundleTasksError::Unhandled(inner) => Error::Unhandled(inner),
7070 }
7071 }
7072}
7073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>> for Error
7074where
7075 R: Send + Sync + std::fmt::Debug + 'static,
7076{
7077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>) -> Self {
7078 match err {
7079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7082 source: err.into(),
7083 }),
7084 }
7085 }
7086}
7087impl From<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError> for Error {
7088 fn from(err: crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError) -> Self {
7089 match err {
7090 crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
7091 }
7092 }
7093}
7094impl<R>
7095 From<
7096 ::aws_smithy_runtime_api::client::result::SdkError<
7097 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
7098 R,
7099 >,
7100 > for Error
7101where
7102 R: Send + Sync + std::fmt::Debug + 'static,
7103{
7104 fn from(
7105 err: ::aws_smithy_runtime_api::client::result::SdkError<
7106 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
7107 R,
7108 >,
7109 ) -> Self {
7110 match err {
7111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7114 source: err.into(),
7115 }),
7116 }
7117 }
7118}
7119impl From<crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError> for Error {
7120 fn from(err: crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError) -> Self {
7121 match err {
7122 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError::Unhandled(inner) => {
7123 Error::Unhandled(inner)
7124 }
7125 }
7126 }
7127}
7128impl<R>
7129 From<
7130 ::aws_smithy_runtime_api::client::result::SdkError<
7131 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
7132 R,
7133 >,
7134 > for Error
7135where
7136 R: Send + Sync + std::fmt::Debug + 'static,
7137{
7138 fn from(
7139 err: ::aws_smithy_runtime_api::client::result::SdkError<
7140 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
7141 R,
7142 >,
7143 ) -> 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_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError> for Error {
7154 fn from(err: crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError) -> Self {
7155 match err {
7156 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError::Unhandled(inner) => {
7157 Error::Unhandled(inner)
7158 }
7159 }
7160 }
7161}
7162impl<R>
7163 From<
7164 ::aws_smithy_runtime_api::client::result::SdkError<
7165 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
7166 R,
7167 >,
7168 > for Error
7169where
7170 R: Send + Sync + std::fmt::Debug + 'static,
7171{
7172 fn from(
7173 err: ::aws_smithy_runtime_api::client::result::SdkError<
7174 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
7175 R,
7176 >,
7177 ) -> Self {
7178 match err {
7179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7182 source: err.into(),
7183 }),
7184 }
7185 }
7186}
7187impl From<crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError> for Error {
7188 fn from(err: crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError) -> Self {
7189 match err {
7190 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7191 }
7192 }
7193}
7194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>> for Error
7195where
7196 R: Send + Sync + std::fmt::Debug + 'static,
7197{
7198 fn from(
7199 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>,
7200 ) -> Self {
7201 match err {
7202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7205 source: err.into(),
7206 }),
7207 }
7208 }
7209}
7210impl From<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError> for Error {
7211 fn from(err: crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError) -> Self {
7212 match err {
7213 crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError::Unhandled(inner) => Error::Unhandled(inner),
7214 }
7215 }
7216}
7217impl<R>
7218 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError, R>>
7219 for Error
7220where
7221 R: Send + Sync + std::fmt::Debug + 'static,
7222{
7223 fn from(
7224 err: ::aws_smithy_runtime_api::client::result::SdkError<
7225 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError,
7226 R,
7227 >,
7228 ) -> Self {
7229 match err {
7230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7233 source: err.into(),
7234 }),
7235 }
7236 }
7237}
7238impl From<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError> for Error {
7239 fn from(err: crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError) -> Self {
7240 match err {
7241 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError::Unhandled(inner) => Error::Unhandled(inner),
7242 }
7243 }
7244}
7245impl<R>
7246 From<
7247 ::aws_smithy_runtime_api::client::result::SdkError<
7248 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
7249 R,
7250 >,
7251 > for Error
7252where
7253 R: Send + Sync + std::fmt::Debug + 'static,
7254{
7255 fn from(
7256 err: ::aws_smithy_runtime_api::client::result::SdkError<
7257 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
7258 R,
7259 >,
7260 ) -> Self {
7261 match err {
7262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7265 source: err.into(),
7266 }),
7267 }
7268 }
7269}
7270impl From<crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError> for Error {
7271 fn from(err: crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError) -> Self {
7272 match err {
7273 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError::Unhandled(inner) => {
7274 Error::Unhandled(inner)
7275 }
7276 }
7277 }
7278}
7279impl<R>
7280 From<
7281 ::aws_smithy_runtime_api::client::result::SdkError<
7282 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7283 R,
7284 >,
7285 > for Error
7286where
7287 R: Send + Sync + std::fmt::Debug + 'static,
7288{
7289 fn from(
7290 err: ::aws_smithy_runtime_api::client::result::SdkError<
7291 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
7292 R,
7293 >,
7294 ) -> Self {
7295 match err {
7296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7299 source: err.into(),
7300 }),
7301 }
7302 }
7303}
7304impl From<crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError> for Error {
7305 fn from(err: crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError) -> Self {
7306 match err {
7307 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError::Unhandled(inner) => {
7308 Error::Unhandled(inner)
7309 }
7310 }
7311 }
7312}
7313impl<R>
7314 From<
7315 ::aws_smithy_runtime_api::client::result::SdkError<
7316 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7317 R,
7318 >,
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<
7325 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7326 R,
7327 >,
7328 ) -> Self {
7329 match err {
7330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7333 source: err.into(),
7334 }),
7335 }
7336 }
7337}
7338impl From<crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError> for Error {
7339 fn from(err: crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError) -> Self {
7340 match err {
7341 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError::Unhandled(inner) => {
7342 Error::Unhandled(inner)
7343 }
7344 }
7345 }
7346}
7347impl<R>
7348 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError, R>>
7349 for Error
7350where
7351 R: Send + Sync + std::fmt::Debug + 'static,
7352{
7353 fn from(
7354 err: ::aws_smithy_runtime_api::client::result::SdkError<
7355 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError,
7356 R,
7357 >,
7358 ) -> Self {
7359 match err {
7360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7363 source: err.into(),
7364 }),
7365 }
7366 }
7367}
7368impl From<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError> for Error {
7369 fn from(err: crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError) -> Self {
7370 match err {
7371 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7372 }
7373 }
7374}
7375impl<R>
7376 From<
7377 ::aws_smithy_runtime_api::client::result::SdkError<
7378 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7379 R,
7380 >,
7381 > for Error
7382where
7383 R: Send + Sync + std::fmt::Debug + 'static,
7384{
7385 fn from(
7386 err: ::aws_smithy_runtime_api::client::result::SdkError<
7387 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7388 R,
7389 >,
7390 ) -> Self {
7391 match err {
7392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7395 source: err.into(),
7396 }),
7397 }
7398 }
7399}
7400impl From<crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError> for Error {
7401 fn from(err: crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError) -> Self {
7402 match err {
7403 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError::Unhandled(inner) => {
7404 Error::Unhandled(inner)
7405 }
7406 }
7407 }
7408}
7409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>>
7410 for Error
7411where
7412 R: Send + Sync + std::fmt::Debug + 'static,
7413{
7414 fn from(
7415 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>,
7416 ) -> Self {
7417 match err {
7418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7421 source: err.into(),
7422 }),
7423 }
7424 }
7425}
7426impl From<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError> for Error {
7427 fn from(err: crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError) -> Self {
7428 match err {
7429 crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7430 }
7431 }
7432}
7433impl<R>
7434 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError, R>>
7435 for Error
7436where
7437 R: Send + Sync + std::fmt::Debug + 'static,
7438{
7439 fn from(
7440 err: ::aws_smithy_runtime_api::client::result::SdkError<
7441 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError,
7442 R,
7443 >,
7444 ) -> Self {
7445 match err {
7446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7449 source: err.into(),
7450 }),
7451 }
7452 }
7453}
7454impl From<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError> for Error {
7455 fn from(err: crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError) -> Self {
7456 match err {
7457 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7458 }
7459 }
7460}
7461impl<R>
7462 From<
7463 ::aws_smithy_runtime_api::client::result::SdkError<
7464 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7465 R,
7466 >,
7467 > for Error
7468where
7469 R: Send + Sync + std::fmt::Debug + 'static,
7470{
7471 fn from(
7472 err: ::aws_smithy_runtime_api::client::result::SdkError<
7473 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7474 R,
7475 >,
7476 ) -> Self {
7477 match err {
7478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7481 source: err.into(),
7482 }),
7483 }
7484 }
7485}
7486impl From<crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError> for Error {
7487 fn from(err: crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError) -> Self {
7488 match err {
7489 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError::Unhandled(inner) => {
7490 Error::Unhandled(inner)
7491 }
7492 }
7493 }
7494}
7495impl<R>
7496 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError, R>>
7497 for Error
7498where
7499 R: Send + Sync + std::fmt::Debug + 'static,
7500{
7501 fn from(
7502 err: ::aws_smithy_runtime_api::client::result::SdkError<
7503 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError,
7504 R,
7505 >,
7506 ) -> Self {
7507 match err {
7508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7511 source: err.into(),
7512 }),
7513 }
7514 }
7515}
7516impl From<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError> for Error {
7517 fn from(err: crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError) -> Self {
7518 match err {
7519 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
7520 }
7521 }
7522}
7523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>>
7524 for Error
7525where
7526 R: Send + Sync + std::fmt::Debug + 'static,
7527{
7528 fn from(
7529 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>,
7530 ) -> Self {
7531 match err {
7532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7535 source: err.into(),
7536 }),
7537 }
7538 }
7539}
7540impl From<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError> for Error {
7541 fn from(err: crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError) -> Self {
7542 match err {
7543 crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7544 }
7545 }
7546}
7547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>>
7548 for Error
7549where
7550 R: Send + Sync + std::fmt::Debug + 'static,
7551{
7552 fn from(
7553 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>,
7554 ) -> Self {
7555 match err {
7556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7559 source: err.into(),
7560 }),
7561 }
7562 }
7563}
7564impl From<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError> for Error {
7565 fn from(err: crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError) -> Self {
7566 match err {
7567 crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError::Unhandled(inner) => Error::Unhandled(inner),
7568 }
7569 }
7570}
7571impl<R>
7572 From<
7573 ::aws_smithy_runtime_api::client::result::SdkError<
7574 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7575 R,
7576 >,
7577 > for Error
7578where
7579 R: Send + Sync + std::fmt::Debug + 'static,
7580{
7581 fn from(
7582 err: ::aws_smithy_runtime_api::client::result::SdkError<
7583 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7584 R,
7585 >,
7586 ) -> Self {
7587 match err {
7588 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7589 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7590 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7591 source: err.into(),
7592 }),
7593 }
7594 }
7595}
7596impl From<crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError> for Error {
7597 fn from(err: crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError) -> Self {
7598 match err {
7599 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError::Unhandled(inner) => Error::Unhandled(inner),
7600 }
7601 }
7602}
7603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>> for Error
7604where
7605 R: Send + Sync + std::fmt::Debug + 'static,
7606{
7607 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>) -> Self {
7608 match err {
7609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7612 source: err.into(),
7613 }),
7614 }
7615 }
7616}
7617impl From<crate::operation::describe_coip_pools::DescribeCoipPoolsError> for Error {
7618 fn from(err: crate::operation::describe_coip_pools::DescribeCoipPoolsError) -> Self {
7619 match err {
7620 crate::operation::describe_coip_pools::DescribeCoipPoolsError::Unhandled(inner) => Error::Unhandled(inner),
7621 }
7622 }
7623}
7624impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>>
7625 for Error
7626where
7627 R: Send + Sync + std::fmt::Debug + 'static,
7628{
7629 fn from(
7630 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>,
7631 ) -> Self {
7632 match err {
7633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7636 source: err.into(),
7637 }),
7638 }
7639 }
7640}
7641impl From<crate::operation::describe_conversion_tasks::DescribeConversionTasksError> for Error {
7642 fn from(err: crate::operation::describe_conversion_tasks::DescribeConversionTasksError) -> Self {
7643 match err {
7644 crate::operation::describe_conversion_tasks::DescribeConversionTasksError::Unhandled(inner) => Error::Unhandled(inner),
7645 }
7646 }
7647}
7648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>>
7649 for Error
7650where
7651 R: Send + Sync + std::fmt::Debug + 'static,
7652{
7653 fn from(
7654 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>,
7655 ) -> Self {
7656 match err {
7657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7660 source: err.into(),
7661 }),
7662 }
7663 }
7664}
7665impl From<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError> for Error {
7666 fn from(err: crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError) -> Self {
7667 match err {
7668 crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7669 }
7670 }
7671}
7672impl<R>
7673 From<
7674 ::aws_smithy_runtime_api::client::result::SdkError<
7675 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7676 R,
7677 >,
7678 > for Error
7679where
7680 R: Send + Sync + std::fmt::Debug + 'static,
7681{
7682 fn from(
7683 err: ::aws_smithy_runtime_api::client::result::SdkError<
7684 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7685 R,
7686 >,
7687 ) -> Self {
7688 match err {
7689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7692 source: err.into(),
7693 }),
7694 }
7695 }
7696}
7697impl From<crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError> for Error {
7698 fn from(err: crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError) -> Self {
7699 match err {
7700 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError::Unhandled(inner) => {
7701 Error::Unhandled(inner)
7702 }
7703 }
7704 }
7705}
7706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>> for Error
7707where
7708 R: Send + Sync + std::fmt::Debug + 'static,
7709{
7710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>) -> Self {
7711 match err {
7712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7715 source: err.into(),
7716 }),
7717 }
7718 }
7719}
7720impl From<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError> for Error {
7721 fn from(err: crate::operation::describe_dhcp_options::DescribeDhcpOptionsError) -> Self {
7722 match err {
7723 crate::operation::describe_dhcp_options::DescribeDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7724 }
7725 }
7726}
7727impl<R>
7728 From<
7729 ::aws_smithy_runtime_api::client::result::SdkError<
7730 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7731 R,
7732 >,
7733 > for Error
7734where
7735 R: Send + Sync + std::fmt::Debug + 'static,
7736{
7737 fn from(
7738 err: ::aws_smithy_runtime_api::client::result::SdkError<
7739 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7740 R,
7741 >,
7742 ) -> Self {
7743 match err {
7744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7747 source: err.into(),
7748 }),
7749 }
7750 }
7751}
7752impl From<crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError> for Error {
7753 fn from(err: crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError) -> Self {
7754 match err {
7755 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError::Unhandled(inner) => {
7756 Error::Unhandled(inner)
7757 }
7758 }
7759 }
7760}
7761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>> for Error
7762where
7763 R: Send + Sync + std::fmt::Debug + 'static,
7764{
7765 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>) -> Self {
7766 match err {
7767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7770 source: err.into(),
7771 }),
7772 }
7773 }
7774}
7775impl From<crate::operation::describe_elastic_gpus::DescribeElasticGpusError> for Error {
7776 fn from(err: crate::operation::describe_elastic_gpus::DescribeElasticGpusError) -> Self {
7777 match err {
7778 crate::operation::describe_elastic_gpus::DescribeElasticGpusError::Unhandled(inner) => Error::Unhandled(inner),
7779 }
7780 }
7781}
7782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>>
7783 for Error
7784where
7785 R: Send + Sync + std::fmt::Debug + 'static,
7786{
7787 fn from(
7788 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>,
7789 ) -> Self {
7790 match err {
7791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7794 source: err.into(),
7795 }),
7796 }
7797 }
7798}
7799impl From<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError> for Error {
7800 fn from(err: crate::operation::describe_export_image_tasks::DescribeExportImageTasksError) -> Self {
7801 match err {
7802 crate::operation::describe_export_image_tasks::DescribeExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7803 }
7804 }
7805}
7806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
7807where
7808 R: Send + Sync + std::fmt::Debug + 'static,
7809{
7810 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
7811 match err {
7812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7815 source: err.into(),
7816 }),
7817 }
7818 }
7819}
7820impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
7821 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
7822 match err {
7823 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
7824 }
7825 }
7826}
7827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>>
7828 for Error
7829where
7830 R: Send + Sync + std::fmt::Debug + 'static,
7831{
7832 fn from(
7833 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>,
7834 ) -> Self {
7835 match err {
7836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7839 source: err.into(),
7840 }),
7841 }
7842 }
7843}
7844impl From<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError> for Error {
7845 fn from(err: crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError) -> Self {
7846 match err {
7847 crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError::Unhandled(inner) => Error::Unhandled(inner),
7848 }
7849 }
7850}
7851impl<R>
7852 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError, R>>
7853 for Error
7854where
7855 R: Send + Sync + std::fmt::Debug + 'static,
7856{
7857 fn from(
7858 err: ::aws_smithy_runtime_api::client::result::SdkError<
7859 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError,
7860 R,
7861 >,
7862 ) -> Self {
7863 match err {
7864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7867 source: err.into(),
7868 }),
7869 }
7870 }
7871}
7872impl From<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError> for Error {
7873 fn from(err: crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError) -> Self {
7874 match err {
7875 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
7876 }
7877 }
7878}
7879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>> for Error
7880where
7881 R: Send + Sync + std::fmt::Debug + 'static,
7882{
7883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>) -> Self {
7884 match err {
7885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7888 source: err.into(),
7889 }),
7890 }
7891 }
7892}
7893impl From<crate::operation::describe_fleet_history::DescribeFleetHistoryError> for Error {
7894 fn from(err: crate::operation::describe_fleet_history::DescribeFleetHistoryError) -> Self {
7895 match err {
7896 crate::operation::describe_fleet_history::DescribeFleetHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7897 }
7898 }
7899}
7900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>> for Error
7901where
7902 R: Send + Sync + std::fmt::Debug + 'static,
7903{
7904 fn from(
7905 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>,
7906 ) -> Self {
7907 match err {
7908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7911 source: err.into(),
7912 }),
7913 }
7914 }
7915}
7916impl From<crate::operation::describe_fleet_instances::DescribeFleetInstancesError> for Error {
7917 fn from(err: crate::operation::describe_fleet_instances::DescribeFleetInstancesError) -> Self {
7918 match err {
7919 crate::operation::describe_fleet_instances::DescribeFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7920 }
7921 }
7922}
7923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
7924where
7925 R: Send + Sync + std::fmt::Debug + 'static,
7926{
7927 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
7928 match err {
7929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7932 source: err.into(),
7933 }),
7934 }
7935 }
7936}
7937impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
7938 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
7939 match err {
7940 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
7941 }
7942 }
7943}
7944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>> for Error
7945where
7946 R: Send + Sync + std::fmt::Debug + 'static,
7947{
7948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>) -> Self {
7949 match err {
7950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7953 source: err.into(),
7954 }),
7955 }
7956 }
7957}
7958impl From<crate::operation::describe_flow_logs::DescribeFlowLogsError> for Error {
7959 fn from(err: crate::operation::describe_flow_logs::DescribeFlowLogsError) -> Self {
7960 match err {
7961 crate::operation::describe_flow_logs::DescribeFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
7962 }
7963 }
7964}
7965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>>
7966 for Error
7967where
7968 R: Send + Sync + std::fmt::Debug + 'static,
7969{
7970 fn from(
7971 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>,
7972 ) -> Self {
7973 match err {
7974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7977 source: err.into(),
7978 }),
7979 }
7980 }
7981}
7982impl From<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError> for Error {
7983 fn from(err: crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError) -> Self {
7984 match err {
7985 crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7986 }
7987 }
7988}
7989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>> for Error
7990where
7991 R: Send + Sync + std::fmt::Debug + 'static,
7992{
7993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>) -> Self {
7994 match err {
7995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7998 source: err.into(),
7999 }),
8000 }
8001 }
8002}
8003impl From<crate::operation::describe_fpga_images::DescribeFpgaImagesError> for Error {
8004 fn from(err: crate::operation::describe_fpga_images::DescribeFpgaImagesError) -> Self {
8005 match err {
8006 crate::operation::describe_fpga_images::DescribeFpgaImagesError::Unhandled(inner) => Error::Unhandled(inner),
8007 }
8008 }
8009}
8010impl<R>
8011 From<
8012 ::aws_smithy_runtime_api::client::result::SdkError<
8013 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
8014 R,
8015 >,
8016 > for Error
8017where
8018 R: Send + Sync + std::fmt::Debug + 'static,
8019{
8020 fn from(
8021 err: ::aws_smithy_runtime_api::client::result::SdkError<
8022 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
8023 R,
8024 >,
8025 ) -> Self {
8026 match err {
8027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8030 source: err.into(),
8031 }),
8032 }
8033 }
8034}
8035impl From<crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError> for Error {
8036 fn from(err: crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError) -> Self {
8037 match err {
8038 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8039 }
8040 }
8041}
8042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>>
8043 for Error
8044where
8045 R: Send + Sync + std::fmt::Debug + 'static,
8046{
8047 fn from(
8048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>,
8049 ) -> Self {
8050 match err {
8051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8054 source: err.into(),
8055 }),
8056 }
8057 }
8058}
8059impl From<crate::operation::describe_host_reservations::DescribeHostReservationsError> for Error {
8060 fn from(err: crate::operation::describe_host_reservations::DescribeHostReservationsError) -> Self {
8061 match err {
8062 crate::operation::describe_host_reservations::DescribeHostReservationsError::Unhandled(inner) => Error::Unhandled(inner),
8063 }
8064 }
8065}
8066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>> for Error
8067where
8068 R: Send + Sync + std::fmt::Debug + 'static,
8069{
8070 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>) -> Self {
8071 match err {
8072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8075 source: err.into(),
8076 }),
8077 }
8078 }
8079}
8080impl From<crate::operation::describe_hosts::DescribeHostsError> for Error {
8081 fn from(err: crate::operation::describe_hosts::DescribeHostsError) -> Self {
8082 match err {
8083 crate::operation::describe_hosts::DescribeHostsError::Unhandled(inner) => Error::Unhandled(inner),
8084 }
8085 }
8086}
8087impl<R>
8088 From<
8089 ::aws_smithy_runtime_api::client::result::SdkError<
8090 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
8091 R,
8092 >,
8093 > for Error
8094where
8095 R: Send + Sync + std::fmt::Debug + 'static,
8096{
8097 fn from(
8098 err: ::aws_smithy_runtime_api::client::result::SdkError<
8099 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
8100 R,
8101 >,
8102 ) -> Self {
8103 match err {
8104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8107 source: err.into(),
8108 }),
8109 }
8110 }
8111}
8112impl From<crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError> for Error {
8113 fn from(err: crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError) -> Self {
8114 match err {
8115 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError::Unhandled(inner) => {
8116 Error::Unhandled(inner)
8117 }
8118 }
8119 }
8120}
8121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>>
8122 for Error
8123where
8124 R: Send + Sync + std::fmt::Debug + 'static,
8125{
8126 fn from(
8127 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>,
8128 ) -> Self {
8129 match err {
8130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8133 source: err.into(),
8134 }),
8135 }
8136 }
8137}
8138impl From<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError> for Error {
8139 fn from(err: crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError) -> Self {
8140 match err {
8141 crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
8142 }
8143 }
8144}
8145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>> for Error
8146where
8147 R: Send + Sync + std::fmt::Debug + 'static,
8148{
8149 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>) -> Self {
8150 match err {
8151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8154 source: err.into(),
8155 }),
8156 }
8157 }
8158}
8159impl From<crate::operation::describe_id_format::DescribeIdFormatError> for Error {
8160 fn from(err: crate::operation::describe_id_format::DescribeIdFormatError) -> Self {
8161 match err {
8162 crate::operation::describe_id_format::DescribeIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
8163 }
8164 }
8165}
8166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>> for Error
8167where
8168 R: Send + Sync + std::fmt::Debug + 'static,
8169{
8170 fn from(
8171 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>,
8172 ) -> Self {
8173 match err {
8174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8177 source: err.into(),
8178 }),
8179 }
8180 }
8181}
8182impl From<crate::operation::describe_image_attribute::DescribeImageAttributeError> for Error {
8183 fn from(err: crate::operation::describe_image_attribute::DescribeImageAttributeError) -> Self {
8184 match err {
8185 crate::operation::describe_image_attribute::DescribeImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8186 }
8187 }
8188}
8189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>>
8190 for Error
8191where
8192 R: Send + Sync + std::fmt::Debug + 'static,
8193{
8194 fn from(
8195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>,
8196 ) -> Self {
8197 match err {
8198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8201 source: err.into(),
8202 }),
8203 }
8204 }
8205}
8206impl From<crate::operation::describe_image_references::DescribeImageReferencesError> for Error {
8207 fn from(err: crate::operation::describe_image_references::DescribeImageReferencesError) -> Self {
8208 match err {
8209 crate::operation::describe_image_references::DescribeImageReferencesError::Unhandled(inner) => Error::Unhandled(inner),
8210 }
8211 }
8212}
8213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
8214where
8215 R: Send + Sync + std::fmt::Debug + 'static,
8216{
8217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
8218 match err {
8219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8222 source: err.into(),
8223 }),
8224 }
8225 }
8226}
8227impl From<crate::operation::describe_images::DescribeImagesError> for Error {
8228 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
8229 match err {
8230 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
8231 }
8232 }
8233}
8234impl<R>
8235 From<
8236 ::aws_smithy_runtime_api::client::result::SdkError<
8237 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
8238 R,
8239 >,
8240 > for Error
8241where
8242 R: Send + Sync + std::fmt::Debug + 'static,
8243{
8244 fn from(
8245 err: ::aws_smithy_runtime_api::client::result::SdkError<
8246 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
8247 R,
8248 >,
8249 ) -> Self {
8250 match err {
8251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8254 source: err.into(),
8255 }),
8256 }
8257 }
8258}
8259impl From<crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError> for Error {
8260 fn from(err: crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError) -> Self {
8261 match err {
8262 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError::Unhandled(inner) => Error::Unhandled(inner),
8263 }
8264 }
8265}
8266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>>
8267 for Error
8268where
8269 R: Send + Sync + std::fmt::Debug + 'static,
8270{
8271 fn from(
8272 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>,
8273 ) -> Self {
8274 match err {
8275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8278 source: err.into(),
8279 }),
8280 }
8281 }
8282}
8283impl From<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError> for Error {
8284 fn from(err: crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError) -> Self {
8285 match err {
8286 crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError::Unhandled(inner) => Error::Unhandled(inner),
8287 }
8288 }
8289}
8290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>>
8291 for Error
8292where
8293 R: Send + Sync + std::fmt::Debug + 'static,
8294{
8295 fn from(
8296 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>,
8297 ) -> Self {
8298 match err {
8299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8302 source: err.into(),
8303 }),
8304 }
8305 }
8306}
8307impl From<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError> for Error {
8308 fn from(err: crate::operation::describe_import_image_tasks::DescribeImportImageTasksError) -> Self {
8309 match err {
8310 crate::operation::describe_import_image_tasks::DescribeImportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
8311 }
8312 }
8313}
8314impl<R>
8315 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError, R>>
8316 for Error
8317where
8318 R: Send + Sync + std::fmt::Debug + 'static,
8319{
8320 fn from(
8321 err: ::aws_smithy_runtime_api::client::result::SdkError<
8322 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError,
8323 R,
8324 >,
8325 ) -> Self {
8326 match err {
8327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8330 source: err.into(),
8331 }),
8332 }
8333 }
8334}
8335impl From<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError> for Error {
8336 fn from(err: crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError) -> Self {
8337 match err {
8338 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError::Unhandled(inner) => Error::Unhandled(inner),
8339 }
8340 }
8341}
8342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
8343 for Error
8344where
8345 R: Send + Sync + std::fmt::Debug + 'static,
8346{
8347 fn from(
8348 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
8349 ) -> 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_instance_attribute::DescribeInstanceAttributeError> for Error {
8360 fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
8361 match err {
8362 crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8363 }
8364 }
8365}
8366impl<R>
8367 From<
8368 ::aws_smithy_runtime_api::client::result::SdkError<
8369 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8370 R,
8371 >,
8372 > for Error
8373where
8374 R: Send + Sync + std::fmt::Debug + 'static,
8375{
8376 fn from(
8377 err: ::aws_smithy_runtime_api::client::result::SdkError<
8378 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8379 R,
8380 >,
8381 ) -> Self {
8382 match err {
8383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8386 source: err.into(),
8387 }),
8388 }
8389 }
8390}
8391impl From<crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError> for Error {
8392 fn from(err: crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError) -> Self {
8393 match err {
8394 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
8395 }
8396 }
8397}
8398impl<R>
8399 From<
8400 ::aws_smithy_runtime_api::client::result::SdkError<
8401 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8402 R,
8403 >,
8404 > for Error
8405where
8406 R: Send + Sync + std::fmt::Debug + 'static,
8407{
8408 fn from(
8409 err: ::aws_smithy_runtime_api::client::result::SdkError<
8410 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8411 R,
8412 >,
8413 ) -> Self {
8414 match err {
8415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8418 source: err.into(),
8419 }),
8420 }
8421 }
8422}
8423impl From<crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError> for Error {
8424 fn from(err: crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError) -> Self {
8425 match err {
8426 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError::Unhandled(inner) => {
8427 Error::Unhandled(inner)
8428 }
8429 }
8430 }
8431}
8432impl<R>
8433 From<
8434 ::aws_smithy_runtime_api::client::result::SdkError<
8435 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8436 R,
8437 >,
8438 > for Error
8439where
8440 R: Send + Sync + std::fmt::Debug + 'static,
8441{
8442 fn from(
8443 err: ::aws_smithy_runtime_api::client::result::SdkError<
8444 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8445 R,
8446 >,
8447 ) -> Self {
8448 match err {
8449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8452 source: err.into(),
8453 }),
8454 }
8455 }
8456}
8457impl From<crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError> for Error {
8458 fn from(err: crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError) -> Self {
8459 match err {
8460 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError::Unhandled(inner) => {
8461 Error::Unhandled(inner)
8462 }
8463 }
8464 }
8465}
8466impl<R>
8467 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError, R>>
8468 for Error
8469where
8470 R: Send + Sync + std::fmt::Debug + 'static,
8471{
8472 fn from(
8473 err: ::aws_smithy_runtime_api::client::result::SdkError<
8474 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError,
8475 R,
8476 >,
8477 ) -> Self {
8478 match err {
8479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8482 source: err.into(),
8483 }),
8484 }
8485 }
8486}
8487impl From<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError> for Error {
8488 fn from(err: crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError) -> Self {
8489 match err {
8490 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError::Unhandled(inner) => Error::Unhandled(inner),
8491 }
8492 }
8493}
8494impl<R>
8495 From<
8496 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError, R>,
8497 > for Error
8498where
8499 R: Send + Sync + std::fmt::Debug + 'static,
8500{
8501 fn from(
8502 err: ::aws_smithy_runtime_api::client::result::SdkError<
8503 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError,
8504 R,
8505 >,
8506 ) -> Self {
8507 match err {
8508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8511 source: err.into(),
8512 }),
8513 }
8514 }
8515}
8516impl From<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError> for Error {
8517 fn from(err: crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError) -> Self {
8518 match err {
8519 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8520 }
8521 }
8522}
8523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>> for Error
8524where
8525 R: Send + Sync + std::fmt::Debug + 'static,
8526{
8527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>) -> Self {
8528 match err {
8529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8532 source: err.into(),
8533 }),
8534 }
8535 }
8536}
8537impl From<crate::operation::describe_instances::DescribeInstancesError> for Error {
8538 fn from(err: crate::operation::describe_instances::DescribeInstancesError) -> Self {
8539 match err {
8540 crate::operation::describe_instances::DescribeInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8541 }
8542 }
8543}
8544impl<R>
8545 From<
8546 ::aws_smithy_runtime_api::client::result::SdkError<
8547 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8548 R,
8549 >,
8550 > for Error
8551where
8552 R: Send + Sync + std::fmt::Debug + 'static,
8553{
8554 fn from(
8555 err: ::aws_smithy_runtime_api::client::result::SdkError<
8556 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError,
8557 R,
8558 >,
8559 ) -> Self {
8560 match err {
8561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8564 source: err.into(),
8565 }),
8566 }
8567 }
8568}
8569impl From<crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError> for Error {
8570 fn from(err: crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError) -> Self {
8571 match err {
8572 crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError::Unhandled(inner) => {
8573 Error::Unhandled(inner)
8574 }
8575 }
8576 }
8577}
8578impl<R>
8579 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError, R>>
8580 for Error
8581where
8582 R: Send + Sync + std::fmt::Debug + 'static,
8583{
8584 fn from(
8585 err: ::aws_smithy_runtime_api::client::result::SdkError<
8586 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError,
8587 R,
8588 >,
8589 ) -> Self {
8590 match err {
8591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8594 source: err.into(),
8595 }),
8596 }
8597 }
8598}
8599impl From<crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError> for Error {
8600 fn from(err: crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError) -> Self {
8601 match err {
8602 crate::operation::describe_instance_sql_ha_states::DescribeInstanceSqlHaStatesError::Unhandled(inner) => Error::Unhandled(inner),
8603 }
8604 }
8605}
8606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>> for Error
8607where
8608 R: Send + Sync + std::fmt::Debug + 'static,
8609{
8610 fn from(
8611 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>,
8612 ) -> Self {
8613 match err {
8614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8617 source: err.into(),
8618 }),
8619 }
8620 }
8621}
8622impl From<crate::operation::describe_instance_status::DescribeInstanceStatusError> for Error {
8623 fn from(err: crate::operation::describe_instance_status::DescribeInstanceStatusError) -> Self {
8624 match err {
8625 crate::operation::describe_instance_status::DescribeInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
8626 }
8627 }
8628}
8629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>>
8630 for Error
8631where
8632 R: Send + Sync + std::fmt::Debug + 'static,
8633{
8634 fn from(
8635 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>,
8636 ) -> Self {
8637 match err {
8638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8641 source: err.into(),
8642 }),
8643 }
8644 }
8645}
8646impl From<crate::operation::describe_instance_topology::DescribeInstanceTopologyError> for Error {
8647 fn from(err: crate::operation::describe_instance_topology::DescribeInstanceTopologyError) -> Self {
8648 match err {
8649 crate::operation::describe_instance_topology::DescribeInstanceTopologyError::Unhandled(inner) => Error::Unhandled(inner),
8650 }
8651 }
8652}
8653impl<R>
8654 From<
8655 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError, R>,
8656 > for Error
8657where
8658 R: Send + Sync + std::fmt::Debug + 'static,
8659{
8660 fn from(
8661 err: ::aws_smithy_runtime_api::client::result::SdkError<
8662 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError,
8663 R,
8664 >,
8665 ) -> Self {
8666 match err {
8667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8670 source: err.into(),
8671 }),
8672 }
8673 }
8674}
8675impl From<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError> for Error {
8676 fn from(err: crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError) -> Self {
8677 match err {
8678 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8679 }
8680 }
8681}
8682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>> for Error
8683where
8684 R: Send + Sync + std::fmt::Debug + 'static,
8685{
8686 fn from(
8687 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>,
8688 ) -> Self {
8689 match err {
8690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8693 source: err.into(),
8694 }),
8695 }
8696 }
8697}
8698impl From<crate::operation::describe_instance_types::DescribeInstanceTypesError> for Error {
8699 fn from(err: crate::operation::describe_instance_types::DescribeInstanceTypesError) -> Self {
8700 match err {
8701 crate::operation::describe_instance_types::DescribeInstanceTypesError::Unhandled(inner) => Error::Unhandled(inner),
8702 }
8703 }
8704}
8705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>>
8706 for Error
8707where
8708 R: Send + Sync + std::fmt::Debug + 'static,
8709{
8710 fn from(
8711 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>,
8712 ) -> Self {
8713 match err {
8714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8717 source: err.into(),
8718 }),
8719 }
8720 }
8721}
8722impl From<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError> for Error {
8723 fn from(err: crate::operation::describe_internet_gateways::DescribeInternetGatewaysError) -> Self {
8724 match err {
8725 crate::operation::describe_internet_gateways::DescribeInternetGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8726 }
8727 }
8728}
8729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>> for Error
8730where
8731 R: Send + Sync + std::fmt::Debug + 'static,
8732{
8733 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>) -> Self {
8734 match err {
8735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8738 source: err.into(),
8739 }),
8740 }
8741 }
8742}
8743impl From<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError> for Error {
8744 fn from(err: crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError) -> Self {
8745 match err {
8746 crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
8747 }
8748 }
8749}
8750impl<R>
8751 From<
8752 ::aws_smithy_runtime_api::client::result::SdkError<
8753 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8754 R,
8755 >,
8756 > for Error
8757where
8758 R: Send + Sync + std::fmt::Debug + 'static,
8759{
8760 fn from(
8761 err: ::aws_smithy_runtime_api::client::result::SdkError<
8762 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8763 R,
8764 >,
8765 ) -> Self {
8766 match err {
8767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8770 source: err.into(),
8771 }),
8772 }
8773 }
8774}
8775impl From<crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError> for Error {
8776 fn from(err: crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError) -> Self {
8777 match err {
8778 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError::Unhandled(
8779 inner,
8780 ) => Error::Unhandled(inner),
8781 }
8782 }
8783}
8784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError, R>> for Error
8785where
8786 R: Send + Sync + std::fmt::Debug + 'static,
8787{
8788 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError, R>) -> Self {
8789 match err {
8790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8793 source: err.into(),
8794 }),
8795 }
8796 }
8797}
8798impl From<crate::operation::describe_ipam_policies::DescribeIpamPoliciesError> for Error {
8799 fn from(err: crate::operation::describe_ipam_policies::DescribeIpamPoliciesError) -> Self {
8800 match err {
8801 crate::operation::describe_ipam_policies::DescribeIpamPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
8802 }
8803 }
8804}
8805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8806where
8807 R: Send + Sync + std::fmt::Debug + 'static,
8808{
8809 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8810 match err {
8811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8814 source: err.into(),
8815 }),
8816 }
8817 }
8818}
8819impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
8820 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
8821 match err {
8822 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
8823 }
8824 }
8825}
8826impl<R>
8827 From<
8828 ::aws_smithy_runtime_api::client::result::SdkError<
8829 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8830 R,
8831 >,
8832 > for Error
8833where
8834 R: Send + Sync + std::fmt::Debug + 'static,
8835{
8836 fn from(
8837 err: ::aws_smithy_runtime_api::client::result::SdkError<
8838 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8839 R,
8840 >,
8841 ) -> Self {
8842 match err {
8843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8846 source: err.into(),
8847 }),
8848 }
8849 }
8850}
8851impl From<crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError> for Error {
8852 fn from(err: crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError) -> Self {
8853 match err {
8854 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError::Unhandled(inner) => Error::Unhandled(inner),
8855 }
8856 }
8857}
8858impl<R>
8859 From<
8860 ::aws_smithy_runtime_api::client::result::SdkError<
8861 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8862 R,
8863 >,
8864 > for Error
8865where
8866 R: Send + Sync + std::fmt::Debug + 'static,
8867{
8868 fn from(
8869 err: ::aws_smithy_runtime_api::client::result::SdkError<
8870 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8871 R,
8872 >,
8873 ) -> Self {
8874 match err {
8875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8878 source: err.into(),
8879 }),
8880 }
8881 }
8882}
8883impl From<crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError> for Error {
8884 fn from(err: crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError) -> Self {
8885 match err {
8886 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError::Unhandled(inner) => {
8887 Error::Unhandled(inner)
8888 }
8889 }
8890 }
8891}
8892impl<R>
8893 From<
8894 ::aws_smithy_runtime_api::client::result::SdkError<
8895 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8896 R,
8897 >,
8898 > for Error
8899where
8900 R: Send + Sync + std::fmt::Debug + 'static,
8901{
8902 fn from(
8903 err: ::aws_smithy_runtime_api::client::result::SdkError<
8904 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8905 R,
8906 >,
8907 ) -> Self {
8908 match err {
8909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8912 source: err.into(),
8913 }),
8914 }
8915 }
8916}
8917impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
8918 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
8919 match err {
8920 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
8921 }
8922 }
8923}
8924impl<R>
8925 From<
8926 ::aws_smithy_runtime_api::client::result::SdkError<
8927 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8928 R,
8929 >,
8930 > for Error
8931where
8932 R: Send + Sync + std::fmt::Debug + 'static,
8933{
8934 fn from(
8935 err: ::aws_smithy_runtime_api::client::result::SdkError<
8936 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8937 R,
8938 >,
8939 ) -> Self {
8940 match err {
8941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8944 source: err.into(),
8945 }),
8946 }
8947 }
8948}
8949impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
8950 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
8951 match err {
8952 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
8953 Error::Unhandled(inner)
8954 }
8955 }
8956 }
8957}
8958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
8959where
8960 R: Send + Sync + std::fmt::Debug + 'static,
8961{
8962 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
8963 match err {
8964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8967 source: err.into(),
8968 }),
8969 }
8970 }
8971}
8972impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
8973 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
8974 match err {
8975 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
8976 }
8977 }
8978}
8979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
8980where
8981 R: Send + Sync + std::fmt::Debug + 'static,
8982{
8983 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
8984 match err {
8985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8988 source: err.into(),
8989 }),
8990 }
8991 }
8992}
8993impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
8994 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
8995 match err {
8996 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
8997 }
8998 }
8999}
9000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
9001where
9002 R: Send + Sync + std::fmt::Debug + 'static,
9003{
9004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
9005 match err {
9006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9009 source: err.into(),
9010 }),
9011 }
9012 }
9013}
9014impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
9015 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
9016 match err {
9017 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9018 }
9019 }
9020}
9021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
9022where
9023 R: Send + Sync + std::fmt::Debug + 'static,
9024{
9025 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> Self {
9026 match err {
9027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9030 source: err.into(),
9031 }),
9032 }
9033 }
9034}
9035impl From<crate::operation::describe_key_pairs::DescribeKeyPairsError> for Error {
9036 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
9037 match err {
9038 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
9039 }
9040 }
9041}
9042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
9043 for Error
9044where
9045 R: Send + Sync + std::fmt::Debug + 'static,
9046{
9047 fn from(
9048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
9049 ) -> 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_launch_templates::DescribeLaunchTemplatesError> for Error {
9060 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
9061 match err {
9062 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
9063 }
9064 }
9065}
9066impl<R>
9067 From<
9068 ::aws_smithy_runtime_api::client::result::SdkError<
9069 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9070 R,
9071 >,
9072 > for Error
9073where
9074 R: Send + Sync + std::fmt::Debug + 'static,
9075{
9076 fn from(
9077 err: ::aws_smithy_runtime_api::client::result::SdkError<
9078 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
9079 R,
9080 >,
9081 ) -> Self {
9082 match err {
9083 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9084 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9085 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9086 source: err.into(),
9087 }),
9088 }
9089 }
9090}
9091impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
9092 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
9093 match err {
9094 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
9095 }
9096 }
9097}
9098impl<R>
9099 From<
9100 ::aws_smithy_runtime_api::client::result::SdkError<
9101 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9102 R,
9103 >,
9104 > for Error
9105where
9106 R: Send + Sync + std::fmt::Debug + 'static,
9107{
9108 fn from(
9109 err: ::aws_smithy_runtime_api::client::result::SdkError<
9110 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
9111 R,
9112 >,
9113 ) -> Self {
9114 match err {
9115 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9116 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9117 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9118 source: err.into(),
9119 }),
9120 }
9121 }
9122}
9123impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
9124 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
9125 match err {
9126 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9127 }
9128 }
9129}
9130impl<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 {
9131 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
9132 match err {
9133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9134 _ => Error::Unhandled(
9135 crate::error::sealed_unhandled::Unhandled {
9136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9137 source: err.into(),
9138 }
9139 ),
9140 }
9141 }
9142}
9143impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
9144 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
9145 match err {
9146 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
9147 }
9148 }
9149}
9150impl<R>
9151 From<
9152 ::aws_smithy_runtime_api::client::result::SdkError<
9153 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9154 R,
9155 >,
9156 > for Error
9157where
9158 R: Send + Sync + std::fmt::Debug + 'static,
9159{
9160 fn from(
9161 err: ::aws_smithy_runtime_api::client::result::SdkError<
9162 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
9163 R,
9164 >,
9165 ) -> Self {
9166 match err {
9167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9170 source: err.into(),
9171 }),
9172 }
9173 }
9174}
9175impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
9176 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
9177 match err {
9178 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
9179 inner,
9180 ) => Error::Unhandled(inner),
9181 }
9182 }
9183}
9184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
9185where
9186 R: Send + Sync + std::fmt::Debug + 'static,
9187{
9188 fn from(
9189 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
9190 ) -> Self {
9191 match err {
9192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9195 source: err.into(),
9196 }),
9197 }
9198 }
9199}
9200impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
9201 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
9202 match err {
9203 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9204 }
9205 }
9206}
9207impl<R>
9208 From<
9209 ::aws_smithy_runtime_api::client::result::SdkError<
9210 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9211 R,
9212 >,
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<
9219 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
9220 R,
9221 >,
9222 ) -> Self {
9223 match err {
9224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9227 source: err.into(),
9228 }),
9229 }
9230 }
9231}
9232impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
9233 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
9234 match err {
9235 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
9236 Error::Unhandled(inner)
9237 }
9238 }
9239 }
9240}
9241impl<R>
9242 From<
9243 ::aws_smithy_runtime_api::client::result::SdkError<
9244 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9245 R,
9246 >,
9247 > for Error
9248where
9249 R: Send + Sync + std::fmt::Debug + 'static,
9250{
9251 fn from(
9252 err: ::aws_smithy_runtime_api::client::result::SdkError<
9253 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
9254 R,
9255 >,
9256 ) -> Self {
9257 match err {
9258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9261 source: err.into(),
9262 }),
9263 }
9264 }
9265}
9266impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
9267 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
9268 match err {
9269 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
9270 Error::Unhandled(inner)
9271 }
9272 }
9273 }
9274}
9275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
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<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
9282 ) -> Self {
9283 match err {
9284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9287 source: err.into(),
9288 }),
9289 }
9290 }
9291}
9292impl From<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError> for Error {
9293 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
9294 match err {
9295 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9296 }
9297 }
9298}
9299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
9300where
9301 R: Send + Sync + std::fmt::Debug + 'static,
9302{
9303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
9304 match err {
9305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9308 source: err.into(),
9309 }),
9310 }
9311 }
9312}
9313impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
9314 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
9315 match err {
9316 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
9317 }
9318 }
9319}
9320impl<R>
9321 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
9322 for Error
9323where
9324 R: Send + Sync + std::fmt::Debug + 'static,
9325{
9326 fn from(
9327 err: ::aws_smithy_runtime_api::client::result::SdkError<
9328 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
9329 R,
9330 >,
9331 ) -> Self {
9332 match err {
9333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9336 source: err.into(),
9337 }),
9338 }
9339 }
9340}
9341impl From<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError> for Error {
9342 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
9343 match err {
9344 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
9345 }
9346 }
9347}
9348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
9349 for Error
9350where
9351 R: Send + Sync + std::fmt::Debug + 'static,
9352{
9353 fn from(
9354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
9355 ) -> Self {
9356 match err {
9357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9360 source: err.into(),
9361 }),
9362 }
9363 }
9364}
9365impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
9366 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
9367 match err {
9368 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9369 }
9370 }
9371}
9372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
9373 for Error
9374where
9375 R: Send + Sync + std::fmt::Debug + 'static,
9376{
9377 fn from(
9378 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
9379 ) -> Self {
9380 match err {
9381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9384 source: err.into(),
9385 }),
9386 }
9387 }
9388}
9389impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
9390 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
9391 match err {
9392 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
9393 }
9394 }
9395}
9396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
9397where
9398 R: Send + Sync + std::fmt::Debug + 'static,
9399{
9400 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
9401 match err {
9402 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9403 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9404 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9405 source: err.into(),
9406 }),
9407 }
9408 }
9409}
9410impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
9411 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
9412 match err {
9413 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9414 }
9415 }
9416}
9417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
9418where
9419 R: Send + Sync + std::fmt::Debug + 'static,
9420{
9421 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
9422 match err {
9423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9426 source: err.into(),
9427 }),
9428 }
9429 }
9430}
9431impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
9432 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
9433 match err {
9434 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
9435 }
9436 }
9437}
9438impl<R>
9439 From<
9440 ::aws_smithy_runtime_api::client::result::SdkError<
9441 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9442 R,
9443 >,
9444 > for Error
9445where
9446 R: Send + Sync + std::fmt::Debug + 'static,
9447{
9448 fn from(
9449 err: ::aws_smithy_runtime_api::client::result::SdkError<
9450 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9451 R,
9452 >,
9453 ) -> Self {
9454 match err {
9455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9458 source: err.into(),
9459 }),
9460 }
9461 }
9462}
9463impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
9464 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
9465 match err {
9466 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
9467 Error::Unhandled(inner)
9468 }
9469 }
9470 }
9471}
9472impl<R>
9473 From<
9474 ::aws_smithy_runtime_api::client::result::SdkError<
9475 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9476 R,
9477 >,
9478 > for Error
9479where
9480 R: Send + Sync + std::fmt::Debug + 'static,
9481{
9482 fn from(
9483 err: ::aws_smithy_runtime_api::client::result::SdkError<
9484 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9485 R,
9486 >,
9487 ) -> Self {
9488 match err {
9489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9492 source: err.into(),
9493 }),
9494 }
9495 }
9496}
9497impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
9498 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
9499 match err {
9500 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
9501 Error::Unhandled(inner)
9502 }
9503 }
9504 }
9505}
9506impl<R>
9507 From<
9508 ::aws_smithy_runtime_api::client::result::SdkError<
9509 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9510 R,
9511 >,
9512 > for Error
9513where
9514 R: Send + Sync + std::fmt::Debug + 'static,
9515{
9516 fn from(
9517 err: ::aws_smithy_runtime_api::client::result::SdkError<
9518 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9519 R,
9520 >,
9521 ) -> Self {
9522 match err {
9523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9526 source: err.into(),
9527 }),
9528 }
9529 }
9530}
9531impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
9532 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
9533 match err {
9534 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
9535 }
9536 }
9537}
9538impl<R>
9539 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
9540 for Error
9541where
9542 R: Send + Sync + std::fmt::Debug + 'static,
9543{
9544 fn from(
9545 err: ::aws_smithy_runtime_api::client::result::SdkError<
9546 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError,
9547 R,
9548 >,
9549 ) -> Self {
9550 match err {
9551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9554 source: err.into(),
9555 }),
9556 }
9557 }
9558}
9559impl From<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError> for Error {
9560 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
9561 match err {
9562 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
9563 }
9564 }
9565}
9566impl<R>
9567 From<
9568 ::aws_smithy_runtime_api::client::result::SdkError<
9569 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9570 R,
9571 >,
9572 > for Error
9573where
9574 R: Send + Sync + std::fmt::Debug + 'static,
9575{
9576 fn from(
9577 err: ::aws_smithy_runtime_api::client::result::SdkError<
9578 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9579 R,
9580 >,
9581 ) -> Self {
9582 match err {
9583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9586 source: err.into(),
9587 }),
9588 }
9589 }
9590}
9591impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
9592 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
9593 match err {
9594 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
9595 Error::Unhandled(inner)
9596 }
9597 }
9598 }
9599}
9600impl<R>
9601 From<
9602 ::aws_smithy_runtime_api::client::result::SdkError<
9603 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9604 R,
9605 >,
9606 > for Error
9607where
9608 R: Send + Sync + std::fmt::Debug + 'static,
9609{
9610 fn from(
9611 err: ::aws_smithy_runtime_api::client::result::SdkError<
9612 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9613 R,
9614 >,
9615 ) -> Self {
9616 match err {
9617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9620 source: err.into(),
9621 }),
9622 }
9623 }
9624}
9625impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9626 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9627 match err {
9628 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9629 Error::Unhandled(inner)
9630 }
9631 }
9632 }
9633}
9634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9635 for Error
9636where
9637 R: Send + Sync + std::fmt::Debug + 'static,
9638{
9639 fn from(
9640 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9641 ) -> Self {
9642 match err {
9643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9646 source: err.into(),
9647 }),
9648 }
9649 }
9650}
9651impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9652 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9653 match err {
9654 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9655 }
9656 }
9657}
9658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9659where
9660 R: Send + Sync + std::fmt::Debug + 'static,
9661{
9662 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9663 match err {
9664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9667 source: err.into(),
9668 }),
9669 }
9670 }
9671}
9672impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9673 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9674 match err {
9675 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9676 }
9677 }
9678}
9679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9680 for Error
9681where
9682 R: Send + Sync + std::fmt::Debug + 'static,
9683{
9684 fn from(
9685 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9686 ) -> Self {
9687 match err {
9688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9691 source: err.into(),
9692 }),
9693 }
9694 }
9695}
9696impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9697 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9698 match err {
9699 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9700 }
9701 }
9702}
9703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9704where
9705 R: Send + Sync + std::fmt::Debug + 'static,
9706{
9707 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9708 match err {
9709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9712 source: err.into(),
9713 }),
9714 }
9715 }
9716}
9717impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9718 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9719 match err {
9720 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9721 }
9722 }
9723}
9724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9725 for Error
9726where
9727 R: Send + Sync + std::fmt::Debug + 'static,
9728{
9729 fn from(
9730 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9731 ) -> Self {
9732 match err {
9733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9736 source: err.into(),
9737 }),
9738 }
9739 }
9740}
9741impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9742 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9743 match err {
9744 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9745 }
9746 }
9747}
9748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9749 for Error
9750where
9751 R: Send + Sync + std::fmt::Debug + 'static,
9752{
9753 fn from(
9754 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9755 ) -> Self {
9756 match err {
9757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9760 source: err.into(),
9761 }),
9762 }
9763 }
9764}
9765impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9766 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9767 match err {
9768 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9769 }
9770 }
9771}
9772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9773where
9774 R: Send + Sync + std::fmt::Debug + 'static,
9775{
9776 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9777 match err {
9778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9781 source: err.into(),
9782 }),
9783 }
9784 }
9785}
9786impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9787 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9788 match err {
9789 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9790 }
9791 }
9792}
9793impl<R>
9794 From<
9795 ::aws_smithy_runtime_api::client::result::SdkError<
9796 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9797 R,
9798 >,
9799 > for Error
9800where
9801 R: Send + Sync + std::fmt::Debug + 'static,
9802{
9803 fn from(
9804 err: ::aws_smithy_runtime_api::client::result::SdkError<
9805 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9806 R,
9807 >,
9808 ) -> Self {
9809 match err {
9810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9813 source: err.into(),
9814 }),
9815 }
9816 }
9817}
9818impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
9819 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
9820 match err {
9821 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
9822 }
9823 }
9824}
9825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
9826 for Error
9827where
9828 R: Send + Sync + std::fmt::Debug + 'static,
9829{
9830 fn from(
9831 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
9832 ) -> Self {
9833 match err {
9834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9837 source: err.into(),
9838 }),
9839 }
9840 }
9841}
9842impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
9843 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
9844 match err {
9845 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9846 }
9847 }
9848}
9849impl<R>
9850 From<
9851 ::aws_smithy_runtime_api::client::result::SdkError<
9852 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9853 R,
9854 >,
9855 > for Error
9856where
9857 R: Send + Sync + std::fmt::Debug + 'static,
9858{
9859 fn from(
9860 err: ::aws_smithy_runtime_api::client::result::SdkError<
9861 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9862 R,
9863 >,
9864 ) -> Self {
9865 match err {
9866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9869 source: err.into(),
9870 }),
9871 }
9872 }
9873}
9874impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
9875 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
9876 match err {
9877 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
9878 Error::Unhandled(inner)
9879 }
9880 }
9881 }
9882}
9883impl<R>
9884 From<
9885 ::aws_smithy_runtime_api::client::result::SdkError<
9886 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9887 R,
9888 >,
9889 > for Error
9890where
9891 R: Send + Sync + std::fmt::Debug + 'static,
9892{
9893 fn from(
9894 err: ::aws_smithy_runtime_api::client::result::SdkError<
9895 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9896 R,
9897 >,
9898 ) -> Self {
9899 match err {
9900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9903 source: err.into(),
9904 }),
9905 }
9906 }
9907}
9908impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
9909 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
9910 match err {
9911 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
9912 Error::Unhandled(inner)
9913 }
9914 }
9915 }
9916}
9917impl<R>
9918 From<
9919 ::aws_smithy_runtime_api::client::result::SdkError<
9920 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9921 R,
9922 >,
9923 > for Error
9924where
9925 R: Send + Sync + std::fmt::Debug + 'static,
9926{
9927 fn from(
9928 err: ::aws_smithy_runtime_api::client::result::SdkError<
9929 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9930 R,
9931 >,
9932 ) -> Self {
9933 match err {
9934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9937 source: err.into(),
9938 }),
9939 }
9940 }
9941}
9942impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
9943 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
9944 match err {
9945 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
9946 Error::Unhandled(inner)
9947 }
9948 }
9949 }
9950}
9951impl<R>
9952 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
9953 for Error
9954where
9955 R: Send + Sync + std::fmt::Debug + 'static,
9956{
9957 fn from(
9958 err: ::aws_smithy_runtime_api::client::result::SdkError<
9959 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError,
9960 R,
9961 >,
9962 ) -> Self {
9963 match err {
9964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9967 source: err.into(),
9968 }),
9969 }
9970 }
9971}
9972impl From<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
9973 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
9974 match err {
9975 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
9976 }
9977 }
9978}
9979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
9980 for Error
9981where
9982 R: Send + Sync + std::fmt::Debug + 'static,
9983{
9984 fn from(
9985 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
9986 ) -> Self {
9987 match err {
9988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9991 source: err.into(),
9992 }),
9993 }
9994 }
9995}
9996impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
9997 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
9998 match err {
9999 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
10000 }
10001 }
10002}
10003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
10004where
10005 R: Send + Sync + std::fmt::Debug + 'static,
10006{
10007 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
10008 match err {
10009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10012 source: err.into(),
10013 }),
10014 }
10015 }
10016}
10017impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
10018 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
10019 match err {
10020 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
10021 }
10022 }
10023}
10024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
10025where
10026 R: Send + Sync + std::fmt::Debug + 'static,
10027{
10028 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
10029 match err {
10030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10033 source: err.into(),
10034 }),
10035 }
10036 }
10037}
10038impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
10039 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
10040 match err {
10041 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
10042 }
10043 }
10044}
10045impl<R>
10046 From<
10047 ::aws_smithy_runtime_api::client::result::SdkError<
10048 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10049 R,
10050 >,
10051 > for Error
10052where
10053 R: Send + Sync + std::fmt::Debug + 'static,
10054{
10055 fn from(
10056 err: ::aws_smithy_runtime_api::client::result::SdkError<
10057 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
10058 R,
10059 >,
10060 ) -> Self {
10061 match err {
10062 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10063 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10064 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10065 source: err.into(),
10066 }),
10067 }
10068 }
10069}
10070impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
10071 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
10072 match err {
10073 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
10074 Error::Unhandled(inner)
10075 }
10076 }
10077 }
10078}
10079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
10080 for Error
10081where
10082 R: Send + Sync + std::fmt::Debug + 'static,
10083{
10084 fn from(
10085 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
10086 ) -> Self {
10087 match err {
10088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10091 source: err.into(),
10092 }),
10093 }
10094 }
10095}
10096impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
10097 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
10098 match err {
10099 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10100 }
10101 }
10102}
10103impl<R>
10104 From<
10105 ::aws_smithy_runtime_api::client::result::SdkError<
10106 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10107 R,
10108 >,
10109 > for Error
10110where
10111 R: Send + Sync + std::fmt::Debug + 'static,
10112{
10113 fn from(
10114 err: ::aws_smithy_runtime_api::client::result::SdkError<
10115 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
10116 R,
10117 >,
10118 ) -> Self {
10119 match err {
10120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10123 source: err.into(),
10124 }),
10125 }
10126 }
10127}
10128impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
10129 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
10130 match err {
10131 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
10132 }
10133 }
10134}
10135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
10136 for Error
10137where
10138 R: Send + Sync + std::fmt::Debug + 'static,
10139{
10140 fn from(
10141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
10142 ) -> Self {
10143 match err {
10144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10147 source: err.into(),
10148 }),
10149 }
10150 }
10151}
10152impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
10153 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
10154 match err {
10155 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
10156 }
10157 }
10158}
10159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
10160where
10161 R: Send + Sync + std::fmt::Debug + 'static,
10162{
10163 fn from(
10164 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
10165 ) -> Self {
10166 match err {
10167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10170 source: err.into(),
10171 }),
10172 }
10173 }
10174}
10175impl From<crate::operation::describe_security_groups::DescribeSecurityGroupsError> for Error {
10176 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
10177 match err {
10178 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10179 }
10180 }
10181}
10182impl<R>
10183 From<
10184 ::aws_smithy_runtime_api::client::result::SdkError<
10185 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10186 R,
10187 >,
10188 > for Error
10189where
10190 R: Send + Sync + std::fmt::Debug + 'static,
10191{
10192 fn from(
10193 err: ::aws_smithy_runtime_api::client::result::SdkError<
10194 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
10195 R,
10196 >,
10197 ) -> Self {
10198 match err {
10199 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10200 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10201 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10202 source: err.into(),
10203 }),
10204 }
10205 }
10206}
10207impl From<crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
10208 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
10209 match err {
10210 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
10211 Error::Unhandled(inner)
10212 }
10213 }
10214 }
10215}
10216impl<R>
10217 From<
10218 ::aws_smithy_runtime_api::client::result::SdkError<
10219 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10220 R,
10221 >,
10222 > for Error
10223where
10224 R: Send + Sync + std::fmt::Debug + 'static,
10225{
10226 fn from(
10227 err: ::aws_smithy_runtime_api::client::result::SdkError<
10228 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
10229 R,
10230 >,
10231 ) -> Self {
10232 match err {
10233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10236 source: err.into(),
10237 }),
10238 }
10239 }
10240}
10241impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
10242 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
10243 match err {
10244 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
10245 Error::Unhandled(inner)
10246 }
10247 }
10248 }
10249}
10250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
10251 for Error
10252where
10253 R: Send + Sync + std::fmt::Debug + 'static,
10254{
10255 fn from(
10256 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
10257 ) -> Self {
10258 match err {
10259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10262 source: err.into(),
10263 }),
10264 }
10265 }
10266}
10267impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
10268 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
10269 match err {
10270 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10271 }
10272 }
10273}
10274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
10275where
10276 R: Send + Sync + std::fmt::Debug + 'static,
10277{
10278 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
10279 match err {
10280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10283 source: err.into(),
10284 }),
10285 }
10286 }
10287}
10288impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
10289 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
10290 match err {
10291 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
10292 }
10293 }
10294}
10295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
10296 for Error
10297where
10298 R: Send + Sync + std::fmt::Debug + 'static,
10299{
10300 fn from(
10301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
10302 ) -> Self {
10303 match err {
10304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10307 source: err.into(),
10308 }),
10309 }
10310 }
10311}
10312impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
10313 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
10314 match err {
10315 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
10316 }
10317 }
10318}
10319impl<R>
10320 From<
10321 ::aws_smithy_runtime_api::client::result::SdkError<
10322 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
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_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
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_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
10345 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
10346 match err {
10347 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
10348 }
10349 }
10350}
10351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
10352 for Error
10353where
10354 R: Send + Sync + std::fmt::Debug + 'static,
10355{
10356 fn from(
10357 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
10358 ) -> Self {
10359 match err {
10360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10363 source: err.into(),
10364 }),
10365 }
10366 }
10367}
10368impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
10369 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
10370 match err {
10371 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10372 }
10373 }
10374}
10375impl<R>
10376 From<
10377 ::aws_smithy_runtime_api::client::result::SdkError<
10378 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10379 R,
10380 >,
10381 > for Error
10382where
10383 R: Send + Sync + std::fmt::Debug + 'static,
10384{
10385 fn from(
10386 err: ::aws_smithy_runtime_api::client::result::SdkError<
10387 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
10388 R,
10389 >,
10390 ) -> Self {
10391 match err {
10392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10395 source: err.into(),
10396 }),
10397 }
10398 }
10399}
10400impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
10401 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
10402 match err {
10403 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10404 }
10405 }
10406}
10407impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
10408 for Error
10409where
10410 R: Send + Sync + std::fmt::Debug + 'static,
10411{
10412 fn from(
10413 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
10414 ) -> Self {
10415 match err {
10416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10419 source: err.into(),
10420 }),
10421 }
10422 }
10423}
10424impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
10425 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
10426 match err {
10427 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10428 }
10429 }
10430}
10431impl<R>
10432 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
10433 for Error
10434where
10435 R: Send + Sync + std::fmt::Debug + 'static,
10436{
10437 fn from(
10438 err: ::aws_smithy_runtime_api::client::result::SdkError<
10439 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
10440 R,
10441 >,
10442 ) -> Self {
10443 match err {
10444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10447 source: err.into(),
10448 }),
10449 }
10450 }
10451}
10452impl From<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError> for Error {
10453 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
10454 match err {
10455 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10456 }
10457 }
10458}
10459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
10460 for Error
10461where
10462 R: Send + Sync + std::fmt::Debug + 'static,
10463{
10464 fn from(
10465 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
10466 ) -> Self {
10467 match err {
10468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10471 source: err.into(),
10472 }),
10473 }
10474 }
10475}
10476impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
10477 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
10478 match err {
10479 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10480 }
10481 }
10482}
10483impl<R>
10484 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
10485 for Error
10486where
10487 R: Send + Sync + std::fmt::Debug + 'static,
10488{
10489 fn from(
10490 err: ::aws_smithy_runtime_api::client::result::SdkError<
10491 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
10492 R,
10493 >,
10494 ) -> Self {
10495 match err {
10496 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10497 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10498 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10499 source: err.into(),
10500 }),
10501 }
10502 }
10503}
10504impl From<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
10505 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
10506 match err {
10507 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10508 }
10509 }
10510}
10511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
10512 for Error
10513where
10514 R: Send + Sync + std::fmt::Debug + 'static,
10515{
10516 fn from(
10517 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
10518 ) -> Self {
10519 match err {
10520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10523 source: err.into(),
10524 }),
10525 }
10526 }
10527}
10528impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
10529 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
10530 match err {
10531 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
10532 }
10533 }
10534}
10535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
10536where
10537 R: Send + Sync + std::fmt::Debug + 'static,
10538{
10539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
10540 match err {
10541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10544 source: err.into(),
10545 }),
10546 }
10547 }
10548}
10549impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
10550 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
10551 match err {
10552 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10553 }
10554 }
10555}
10556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
10557where
10558 R: Send + Sync + std::fmt::Debug + 'static,
10559{
10560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
10561 match err {
10562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10565 source: err.into(),
10566 }),
10567 }
10568 }
10569}
10570impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
10571 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
10572 match err {
10573 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
10574 }
10575 }
10576}
10577impl<R>
10578 From<
10579 ::aws_smithy_runtime_api::client::result::SdkError<
10580 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10581 R,
10582 >,
10583 > for Error
10584where
10585 R: Send + Sync + std::fmt::Debug + 'static,
10586{
10587 fn from(
10588 err: ::aws_smithy_runtime_api::client::result::SdkError<
10589 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10590 R,
10591 >,
10592 ) -> Self {
10593 match err {
10594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10597 source: err.into(),
10598 }),
10599 }
10600 }
10601}
10602impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
10603 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
10604 match err {
10605 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
10606 Error::Unhandled(inner)
10607 }
10608 }
10609 }
10610}
10611impl<R>
10612 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10613 for Error
10614where
10615 R: Send + Sync + std::fmt::Debug + 'static,
10616{
10617 fn from(
10618 err: ::aws_smithy_runtime_api::client::result::SdkError<
10619 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10620 R,
10621 >,
10622 ) -> Self {
10623 match err {
10624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10627 source: err.into(),
10628 }),
10629 }
10630 }
10631}
10632impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10633 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10634 match err {
10635 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10636 }
10637 }
10638}
10639impl<R>
10640 From<
10641 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10642 > for Error
10643where
10644 R: Send + Sync + std::fmt::Debug + 'static,
10645{
10646 fn from(
10647 err: ::aws_smithy_runtime_api::client::result::SdkError<
10648 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10649 R,
10650 >,
10651 ) -> Self {
10652 match err {
10653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10656 source: err.into(),
10657 }),
10658 }
10659 }
10660}
10661impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10662 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10663 match err {
10664 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10665 }
10666 }
10667}
10668impl<R>
10669 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, R>>
10670 for Error
10671where
10672 R: Send + Sync + std::fmt::Debug + 'static,
10673{
10674 fn from(
10675 err: ::aws_smithy_runtime_api::client::result::SdkError<
10676 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError,
10677 R,
10678 >,
10679 ) -> Self {
10680 match err {
10681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10684 source: err.into(),
10685 }),
10686 }
10687 }
10688}
10689impl From<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError> for Error {
10690 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10691 match err {
10692 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10693 }
10694 }
10695}
10696impl<R>
10697 From<
10698 ::aws_smithy_runtime_api::client::result::SdkError<
10699 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10700 R,
10701 >,
10702 > for Error
10703where
10704 R: Send + Sync + std::fmt::Debug + 'static,
10705{
10706 fn from(
10707 err: ::aws_smithy_runtime_api::client::result::SdkError<
10708 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10709 R,
10710 >,
10711 ) -> Self {
10712 match err {
10713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10716 source: err.into(),
10717 }),
10718 }
10719 }
10720}
10721impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10722 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10723 match err {
10724 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10725 Error::Unhandled(inner)
10726 }
10727 }
10728 }
10729}
10730impl<R>
10731 From<
10732 ::aws_smithy_runtime_api::client::result::SdkError<
10733 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10734 R,
10735 >,
10736 > for Error
10737where
10738 R: Send + Sync + std::fmt::Debug + 'static,
10739{
10740 fn from(
10741 err: ::aws_smithy_runtime_api::client::result::SdkError<
10742 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10743 R,
10744 >,
10745 ) -> Self {
10746 match err {
10747 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10748 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10749 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10750 source: err.into(),
10751 }),
10752 }
10753 }
10754}
10755impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
10756 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
10757 match err {
10758 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
10759 Error::Unhandled(inner)
10760 }
10761 }
10762 }
10763}
10764impl<R>
10765 From<
10766 ::aws_smithy_runtime_api::client::result::SdkError<
10767 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10768 R,
10769 >,
10770 > for Error
10771where
10772 R: Send + Sync + std::fmt::Debug + 'static,
10773{
10774 fn from(
10775 err: ::aws_smithy_runtime_api::client::result::SdkError<
10776 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
10777 R,
10778 >,
10779 ) -> Self {
10780 match err {
10781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10784 source: err.into(),
10785 }),
10786 }
10787 }
10788}
10789impl From<crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
10790 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
10791 match err {
10792 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
10793 }
10794 }
10795}
10796impl<R>
10797 From<
10798 ::aws_smithy_runtime_api::client::result::SdkError<
10799 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
10800 R,
10801 >,
10802 > for Error
10803where
10804 R: Send + Sync + std::fmt::Debug + 'static,
10805{
10806 fn from(
10807 err: ::aws_smithy_runtime_api::client::result::SdkError<
10808 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError,
10809 R,
10810 >,
10811 ) -> Self {
10812 match err {
10813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10816 source: err.into(),
10817 }),
10818 }
10819 }
10820}
10821impl From<crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError> for Error {
10822 fn from(err: crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError) -> Self {
10823 match err {
10824 crate::operation::describe_transit_gateway_metering_policies::DescribeTransitGatewayMeteringPoliciesError::Unhandled(inner) => {
10825 Error::Unhandled(inner)
10826 }
10827 }
10828 }
10829}
10830impl<R>
10831 From<
10832 ::aws_smithy_runtime_api::client::result::SdkError<
10833 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10834 R,
10835 >,
10836 > for Error
10837where
10838 R: Send + Sync + std::fmt::Debug + 'static,
10839{
10840 fn from(
10841 err: ::aws_smithy_runtime_api::client::result::SdkError<
10842 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10843 R,
10844 >,
10845 ) -> Self {
10846 match err {
10847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10850 source: err.into(),
10851 }),
10852 }
10853 }
10854}
10855impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
10856 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
10857 match err {
10858 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
10859 Error::Unhandled(inner)
10860 }
10861 }
10862 }
10863}
10864impl<R>
10865 From<
10866 ::aws_smithy_runtime_api::client::result::SdkError<
10867 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10868 R,
10869 >,
10870 > for Error
10871where
10872 R: Send + Sync + std::fmt::Debug + 'static,
10873{
10874 fn from(
10875 err: ::aws_smithy_runtime_api::client::result::SdkError<
10876 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10877 R,
10878 >,
10879 ) -> Self {
10880 match err {
10881 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10882 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10883 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10884 source: err.into(),
10885 }),
10886 }
10887 }
10888}
10889impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
10890 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
10891 match err {
10892 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
10893 Error::Unhandled(inner)
10894 }
10895 }
10896 }
10897}
10898impl<R>
10899 From<
10900 ::aws_smithy_runtime_api::client::result::SdkError<
10901 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10902 R,
10903 >,
10904 > for Error
10905where
10906 R: Send + Sync + std::fmt::Debug + 'static,
10907{
10908 fn from(
10909 err: ::aws_smithy_runtime_api::client::result::SdkError<
10910 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10911 R,
10912 >,
10913 ) -> Self {
10914 match err {
10915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10918 source: err.into(),
10919 }),
10920 }
10921 }
10922}
10923impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
10924 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
10925 match err {
10926 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
10927 Error::Unhandled(inner)
10928 }
10929 }
10930 }
10931}
10932impl<R>
10933 From<
10934 ::aws_smithy_runtime_api::client::result::SdkError<
10935 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10936 R,
10937 >,
10938 > for Error
10939where
10940 R: Send + Sync + std::fmt::Debug + 'static,
10941{
10942 fn from(
10943 err: ::aws_smithy_runtime_api::client::result::SdkError<
10944 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10945 R,
10946 >,
10947 ) -> Self {
10948 match err {
10949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10952 source: err.into(),
10953 }),
10954 }
10955 }
10956}
10957impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
10958 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
10959 match err {
10960 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
10961 inner,
10962 ) => Error::Unhandled(inner),
10963 }
10964 }
10965}
10966impl<R>
10967 From<
10968 ::aws_smithy_runtime_api::client::result::SdkError<
10969 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10970 R,
10971 >,
10972 > for Error
10973where
10974 R: Send + Sync + std::fmt::Debug + 'static,
10975{
10976 fn from(
10977 err: ::aws_smithy_runtime_api::client::result::SdkError<
10978 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10979 R,
10980 >,
10981 ) -> Self {
10982 match err {
10983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10986 source: err.into(),
10987 }),
10988 }
10989 }
10990}
10991impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
10992 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
10993 match err {
10994 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
10995 Error::Unhandled(inner)
10996 }
10997 }
10998 }
10999}
11000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
11001 for Error
11002where
11003 R: Send + Sync + std::fmt::Debug + 'static,
11004{
11005 fn from(
11006 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
11007 ) -> Self {
11008 match err {
11009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11012 source: err.into(),
11013 }),
11014 }
11015 }
11016}
11017impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
11018 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
11019 match err {
11020 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11021 }
11022 }
11023}
11024impl<R>
11025 From<
11026 ::aws_smithy_runtime_api::client::result::SdkError<
11027 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11028 R,
11029 >,
11030 > for Error
11031where
11032 R: Send + Sync + std::fmt::Debug + 'static,
11033{
11034 fn from(
11035 err: ::aws_smithy_runtime_api::client::result::SdkError<
11036 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
11037 R,
11038 >,
11039 ) -> Self {
11040 match err {
11041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11044 source: err.into(),
11045 }),
11046 }
11047 }
11048}
11049impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
11050 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
11051 match err {
11052 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
11053 Error::Unhandled(inner)
11054 }
11055 }
11056 }
11057}
11058impl<R>
11059 From<
11060 ::aws_smithy_runtime_api::client::result::SdkError<
11061 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11062 R,
11063 >,
11064 > for Error
11065where
11066 R: Send + Sync + std::fmt::Debug + 'static,
11067{
11068 fn from(
11069 err: ::aws_smithy_runtime_api::client::result::SdkError<
11070 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
11071 R,
11072 >,
11073 ) -> Self {
11074 match err {
11075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11078 source: err.into(),
11079 }),
11080 }
11081 }
11082}
11083impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
11084 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
11085 match err {
11086 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
11087 Error::Unhandled(inner)
11088 }
11089 }
11090 }
11091}
11092impl<R>
11093 From<
11094 ::aws_smithy_runtime_api::client::result::SdkError<
11095 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11096 R,
11097 >,
11098 > for Error
11099where
11100 R: Send + Sync + std::fmt::Debug + 'static,
11101{
11102 fn from(
11103 err: ::aws_smithy_runtime_api::client::result::SdkError<
11104 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
11105 R,
11106 >,
11107 ) -> Self {
11108 match err {
11109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11112 source: err.into(),
11113 }),
11114 }
11115 }
11116}
11117impl From<crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
11118 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
11119 match err {
11120 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11121 }
11122 }
11123}
11124impl<R>
11125 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
11126 for Error
11127where
11128 R: Send + Sync + std::fmt::Debug + 'static,
11129{
11130 fn from(
11131 err: ::aws_smithy_runtime_api::client::result::SdkError<
11132 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
11133 R,
11134 >,
11135 ) -> Self {
11136 match err {
11137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11140 source: err.into(),
11141 }),
11142 }
11143 }
11144}
11145impl From<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError> for Error {
11146 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
11147 match err {
11148 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
11149 }
11150 }
11151}
11152impl<R>
11153 From<
11154 ::aws_smithy_runtime_api::client::result::SdkError<
11155 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11156 R,
11157 >,
11158 > for Error
11159where
11160 R: Send + Sync + std::fmt::Debug + 'static,
11161{
11162 fn from(
11163 err: ::aws_smithy_runtime_api::client::result::SdkError<
11164 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11165 R,
11166 >,
11167 ) -> Self {
11168 match err {
11169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11172 source: err.into(),
11173 }),
11174 }
11175 }
11176}
11177impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
11178 for Error
11179{
11180 fn from(
11181 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
11182 ) -> Self {
11183 match err {
11184 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
11185 }
11186 }
11187}
11188impl<R>
11189 From<
11190 ::aws_smithy_runtime_api::client::result::SdkError<
11191 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11192 R,
11193 >,
11194 > for Error
11195where
11196 R: Send + Sync + std::fmt::Debug + 'static,
11197{
11198 fn from(
11199 err: ::aws_smithy_runtime_api::client::result::SdkError<
11200 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
11201 R,
11202 >,
11203 ) -> Self {
11204 match err {
11205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11208 source: err.into(),
11209 }),
11210 }
11211 }
11212}
11213impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
11214 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
11215 match err {
11216 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
11217 }
11218 }
11219}
11220impl<R>
11221 From<
11222 ::aws_smithy_runtime_api::client::result::SdkError<
11223 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11224 R,
11225 >,
11226 > for Error
11227where
11228 R: Send + Sync + std::fmt::Debug + 'static,
11229{
11230 fn from(
11231 err: ::aws_smithy_runtime_api::client::result::SdkError<
11232 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
11233 R,
11234 >,
11235 ) -> Self {
11236 match err {
11237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11240 source: err.into(),
11241 }),
11242 }
11243 }
11244}
11245impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
11246 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
11247 match err {
11248 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
11249 Error::Unhandled(inner)
11250 }
11251 }
11252 }
11253}
11254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
11255 for Error
11256where
11257 R: Send + Sync + std::fmt::Debug + 'static,
11258{
11259 fn from(
11260 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
11261 ) -> Self {
11262 match err {
11263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11266 source: err.into(),
11267 }),
11268 }
11269 }
11270}
11271impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
11272 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
11273 match err {
11274 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11275 }
11276 }
11277}
11278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
11279where
11280 R: Send + Sync + std::fmt::Debug + 'static,
11281{
11282 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
11283 match err {
11284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11287 source: err.into(),
11288 }),
11289 }
11290 }
11291}
11292impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
11293 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
11294 match err {
11295 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
11296 }
11297 }
11298}
11299impl<R>
11300 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
11301 for Error
11302where
11303 R: Send + Sync + std::fmt::Debug + 'static,
11304{
11305 fn from(
11306 err: ::aws_smithy_runtime_api::client::result::SdkError<
11307 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
11308 R,
11309 >,
11310 ) -> Self {
11311 match err {
11312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11315 source: err.into(),
11316 }),
11317 }
11318 }
11319}
11320impl From<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError> for Error {
11321 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
11322 match err {
11323 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
11324 }
11325 }
11326}
11327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
11328where
11329 R: Send + Sync + std::fmt::Debug + 'static,
11330{
11331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
11332 match err {
11333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11336 source: err.into(),
11337 }),
11338 }
11339 }
11340}
11341impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
11342 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
11343 match err {
11344 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
11345 }
11346 }
11347}
11348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
11349where
11350 R: Send + Sync + std::fmt::Debug + 'static,
11351{
11352 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
11353 match err {
11354 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11355 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11356 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11357 source: err.into(),
11358 }),
11359 }
11360 }
11361}
11362impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
11363 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
11364 match err {
11365 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
11366 }
11367 }
11368}
11369impl<R>
11370 From<
11371 ::aws_smithy_runtime_api::client::result::SdkError<
11372 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11373 R,
11374 >,
11375 > for Error
11376where
11377 R: Send + Sync + std::fmt::Debug + 'static,
11378{
11379 fn from(
11380 err: ::aws_smithy_runtime_api::client::result::SdkError<
11381 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
11382 R,
11383 >,
11384 ) -> Self {
11385 match err {
11386 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11387 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11388 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11389 source: err.into(),
11390 }),
11391 }
11392 }
11393}
11394impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
11395 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
11396 match err {
11397 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
11398 Error::Unhandled(inner)
11399 }
11400 }
11401 }
11402}
11403impl<R>
11404 From<
11405 ::aws_smithy_runtime_api::client::result::SdkError<
11406 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11407 R,
11408 >,
11409 > for Error
11410where
11411 R: Send + Sync + std::fmt::Debug + 'static,
11412{
11413 fn from(
11414 err: ::aws_smithy_runtime_api::client::result::SdkError<
11415 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
11416 R,
11417 >,
11418 ) -> Self {
11419 match err {
11420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11423 source: err.into(),
11424 }),
11425 }
11426 }
11427}
11428impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
11429 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
11430 match err {
11431 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
11432 Error::Unhandled(inner)
11433 }
11434 }
11435 }
11436}
11437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
11438 for Error
11439where
11440 R: Send + Sync + std::fmt::Debug + 'static,
11441{
11442 fn from(
11443 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
11444 ) -> Self {
11445 match err {
11446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11449 source: err.into(),
11450 }),
11451 }
11452 }
11453}
11454impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
11455 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
11456 match err {
11457 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11458 }
11459 }
11460}
11461impl<R>
11462 From<
11463 ::aws_smithy_runtime_api::client::result::SdkError<
11464 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11465 R,
11466 >,
11467 > for Error
11468where
11469 R: Send + Sync + std::fmt::Debug + 'static,
11470{
11471 fn from(
11472 err: ::aws_smithy_runtime_api::client::result::SdkError<
11473 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11474 R,
11475 >,
11476 ) -> Self {
11477 match err {
11478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11481 source: err.into(),
11482 }),
11483 }
11484 }
11485}
11486impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
11487 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
11488 match err {
11489 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
11490 Error::Unhandled(inner)
11491 }
11492 }
11493 }
11494}
11495impl<R>
11496 From<
11497 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError, R>,
11498 > for Error
11499where
11500 R: Send + Sync + std::fmt::Debug + 'static,
11501{
11502 fn from(
11503 err: ::aws_smithy_runtime_api::client::result::SdkError<
11504 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError,
11505 R,
11506 >,
11507 ) -> Self {
11508 match err {
11509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11512 source: err.into(),
11513 }),
11514 }
11515 }
11516}
11517impl From<crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError> for Error {
11518 fn from(err: crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError) -> Self {
11519 match err {
11520 crate::operation::describe_vpc_encryption_controls::DescribeVpcEncryptionControlsError::Unhandled(inner) => Error::Unhandled(inner),
11521 }
11522 }
11523}
11524impl<R>
11525 From<
11526 ::aws_smithy_runtime_api::client::result::SdkError<
11527 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11528 R,
11529 >,
11530 > for Error
11531where
11532 R: Send + Sync + std::fmt::Debug + 'static,
11533{
11534 fn from(
11535 err: ::aws_smithy_runtime_api::client::result::SdkError<
11536 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11537 R,
11538 >,
11539 ) -> Self {
11540 match err {
11541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11544 source: err.into(),
11545 }),
11546 }
11547 }
11548}
11549impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
11550 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
11551 match err {
11552 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
11553 }
11554 }
11555}
11556impl<R>
11557 From<
11558 ::aws_smithy_runtime_api::client::result::SdkError<
11559 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11560 R,
11561 >,
11562 > for Error
11563where
11564 R: Send + Sync + std::fmt::Debug + 'static,
11565{
11566 fn from(
11567 err: ::aws_smithy_runtime_api::client::result::SdkError<
11568 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11569 R,
11570 >,
11571 ) -> Self {
11572 match err {
11573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11576 source: err.into(),
11577 }),
11578 }
11579 }
11580}
11581impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
11582 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
11583 match err {
11584 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
11585 Error::Unhandled(inner)
11586 }
11587 }
11588 }
11589}
11590impl<R>
11591 From<
11592 ::aws_smithy_runtime_api::client::result::SdkError<
11593 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11594 R,
11595 >,
11596 > for Error
11597where
11598 R: Send + Sync + std::fmt::Debug + 'static,
11599{
11600 fn from(
11601 err: ::aws_smithy_runtime_api::client::result::SdkError<
11602 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11603 R,
11604 >,
11605 ) -> Self {
11606 match err {
11607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11610 source: err.into(),
11611 }),
11612 }
11613 }
11614}
11615impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
11616 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
11617 match err {
11618 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11619 }
11620 }
11621}
11622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
11623where
11624 R: Send + Sync + std::fmt::Debug + 'static,
11625{
11626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
11627 match err {
11628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11631 source: err.into(),
11632 }),
11633 }
11634 }
11635}
11636impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
11637 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
11638 match err {
11639 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11640 }
11641 }
11642}
11643impl<R>
11644 From<
11645 ::aws_smithy_runtime_api::client::result::SdkError<
11646 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11647 R,
11648 >,
11649 > for Error
11650where
11651 R: Send + Sync + std::fmt::Debug + 'static,
11652{
11653 fn from(
11654 err: ::aws_smithy_runtime_api::client::result::SdkError<
11655 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11656 R,
11657 >,
11658 ) -> Self {
11659 match err {
11660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11663 source: err.into(),
11664 }),
11665 }
11666 }
11667}
11668impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
11669 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
11670 match err {
11671 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
11672 Error::Unhandled(inner)
11673 }
11674 }
11675 }
11676}
11677impl<R>
11678 From<
11679 ::aws_smithy_runtime_api::client::result::SdkError<
11680 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11681 R,
11682 >,
11683 > for Error
11684where
11685 R: Send + Sync + std::fmt::Debug + 'static,
11686{
11687 fn from(
11688 err: ::aws_smithy_runtime_api::client::result::SdkError<
11689 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11690 R,
11691 >,
11692 ) -> Self {
11693 match err {
11694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11697 source: err.into(),
11698 }),
11699 }
11700 }
11701}
11702impl From<crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11703 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11704 match err {
11705 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11706 Error::Unhandled(inner)
11707 }
11708 }
11709 }
11710}
11711impl<R>
11712 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11713 for Error
11714where
11715 R: Send + Sync + std::fmt::Debug + 'static,
11716{
11717 fn from(
11718 err: ::aws_smithy_runtime_api::client::result::SdkError<
11719 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11720 R,
11721 >,
11722 ) -> Self {
11723 match err {
11724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11727 source: err.into(),
11728 }),
11729 }
11730 }
11731}
11732impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11733 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11734 match err {
11735 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11736 }
11737 }
11738}
11739impl<R>
11740 From<
11741 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
11742 > for Error
11743where
11744 R: Send + Sync + std::fmt::Debug + 'static,
11745{
11746 fn from(
11747 err: ::aws_smithy_runtime_api::client::result::SdkError<
11748 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
11749 R,
11750 >,
11751 ) -> Self {
11752 match err {
11753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11756 source: err.into(),
11757 }),
11758 }
11759 }
11760}
11761impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
11762 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
11763 match err {
11764 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11765 }
11766 }
11767}
11768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
11769where
11770 R: Send + Sync + std::fmt::Debug + 'static,
11771{
11772 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
11773 match err {
11774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11777 source: err.into(),
11778 }),
11779 }
11780 }
11781}
11782impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
11783 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
11784 match err {
11785 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
11786 }
11787 }
11788}
11789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>>
11790 for Error
11791where
11792 R: Send + Sync + std::fmt::Debug + 'static,
11793{
11794 fn from(
11795 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError, R>,
11796 ) -> Self {
11797 match err {
11798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11801 source: err.into(),
11802 }),
11803 }
11804 }
11805}
11806impl From<crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError> for Error {
11807 fn from(err: crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError) -> Self {
11808 match err {
11809 crate::operation::describe_vpn_concentrators::DescribeVpnConcentratorsError::Unhandled(inner) => Error::Unhandled(inner),
11810 }
11811 }
11812}
11813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
11814where
11815 R: Send + Sync + std::fmt::Debug + 'static,
11816{
11817 fn from(
11818 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
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::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
11830 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
11831 match err {
11832 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11833 }
11834 }
11835}
11836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, 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::describe_vpn_gateways::DescribeVpnGatewaysError, 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::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
11851 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
11852 match err {
11853 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11854 }
11855 }
11856}
11857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
11858where
11859 R: Send + Sync + std::fmt::Debug + 'static,
11860{
11861 fn from(
11862 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
11863 ) -> Self {
11864 match err {
11865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11868 source: err.into(),
11869 }),
11870 }
11871 }
11872}
11873impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
11874 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
11875 match err {
11876 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
11877 }
11878 }
11879}
11880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
11881where
11882 R: Send + Sync + std::fmt::Debug + 'static,
11883{
11884 fn from(
11885 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
11886 ) -> Self {
11887 match err {
11888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11891 source: err.into(),
11892 }),
11893 }
11894 }
11895}
11896impl From<crate::operation::detach_internet_gateway::DetachInternetGatewayError> for Error {
11897 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
11898 match err {
11899 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11900 }
11901 }
11902}
11903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
11904where
11905 R: Send + Sync + std::fmt::Debug + 'static,
11906{
11907 fn from(
11908 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
11909 ) -> Self {
11910 match err {
11911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11914 source: err.into(),
11915 }),
11916 }
11917 }
11918}
11919impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
11920 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
11921 match err {
11922 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
11923 }
11924 }
11925}
11926impl<R>
11927 From<
11928 ::aws_smithy_runtime_api::client::result::SdkError<
11929 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11930 R,
11931 >,
11932 > for Error
11933where
11934 R: Send + Sync + std::fmt::Debug + 'static,
11935{
11936 fn from(
11937 err: ::aws_smithy_runtime_api::client::result::SdkError<
11938 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11939 R,
11940 >,
11941 ) -> Self {
11942 match err {
11943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11946 source: err.into(),
11947 }),
11948 }
11949 }
11950}
11951impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
11952 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
11953 match err {
11954 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
11955 Error::Unhandled(inner)
11956 }
11957 }
11958 }
11959}
11960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
11961where
11962 R: Send + Sync + std::fmt::Debug + 'static,
11963{
11964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
11965 match err {
11966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11969 source: err.into(),
11970 }),
11971 }
11972 }
11973}
11974impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
11975 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
11976 match err {
11977 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
11978 }
11979 }
11980}
11981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
11982where
11983 R: Send + Sync + std::fmt::Debug + 'static,
11984{
11985 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
11986 match err {
11987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11990 source: err.into(),
11991 }),
11992 }
11993 }
11994}
11995impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
11996 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
11997 match err {
11998 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11999 }
12000 }
12001}
12002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
12003where
12004 R: Send + Sync + std::fmt::Debug + 'static,
12005{
12006 fn from(
12007 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
12008 ) -> Self {
12009 match err {
12010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12013 source: err.into(),
12014 }),
12015 }
12016 }
12017}
12018impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
12019 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
12020 match err {
12021 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12022 }
12023 }
12024}
12025impl<R>
12026 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
12027 for Error
12028where
12029 R: Send + Sync + std::fmt::Debug + 'static,
12030{
12031 fn from(
12032 err: ::aws_smithy_runtime_api::client::result::SdkError<
12033 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
12034 R,
12035 >,
12036 ) -> Self {
12037 match err {
12038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12041 source: err.into(),
12042 }),
12043 }
12044 }
12045}
12046impl From<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
12047 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
12048 match err {
12049 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12050 }
12051 }
12052}
12053impl<R>
12054 From<
12055 ::aws_smithy_runtime_api::client::result::SdkError<
12056 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12057 R,
12058 >,
12059 > for Error
12060where
12061 R: Send + Sync + std::fmt::Debug + 'static,
12062{
12063 fn from(
12064 err: ::aws_smithy_runtime_api::client::result::SdkError<
12065 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
12066 R,
12067 >,
12068 ) -> Self {
12069 match err {
12070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12073 source: err.into(),
12074 }),
12075 }
12076 }
12077}
12078impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12079 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12080 match err {
12081 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12082 inner,
12083 ) => Error::Unhandled(inner),
12084 }
12085 }
12086}
12087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
12088where
12089 R: Send + Sync + std::fmt::Debug + 'static,
12090{
12091 fn from(
12092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
12093 ) -> Self {
12094 match err {
12095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12098 source: err.into(),
12099 }),
12100 }
12101 }
12102}
12103impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
12104 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
12105 match err {
12106 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12107 }
12108 }
12109}
12110impl<R>
12111 From<
12112 ::aws_smithy_runtime_api::client::result::SdkError<
12113 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12114 R,
12115 >,
12116 > for Error
12117where
12118 R: Send + Sync + std::fmt::Debug + 'static,
12119{
12120 fn from(
12121 err: ::aws_smithy_runtime_api::client::result::SdkError<
12122 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
12123 R,
12124 >,
12125 ) -> Self {
12126 match err {
12127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12130 source: err.into(),
12131 }),
12132 }
12133 }
12134}
12135impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
12136 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
12137 match err {
12138 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12139 }
12140 }
12141}
12142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
12143where
12144 R: Send + Sync + std::fmt::Debug + 'static,
12145{
12146 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
12147 match err {
12148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12151 source: err.into(),
12152 }),
12153 }
12154 }
12155}
12156impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
12157 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
12158 match err {
12159 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12160 }
12161 }
12162}
12163impl<R>
12164 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
12165 for Error
12166where
12167 R: Send + Sync + std::fmt::Debug + 'static,
12168{
12169 fn from(
12170 err: ::aws_smithy_runtime_api::client::result::SdkError<
12171 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
12172 R,
12173 >,
12174 ) -> Self {
12175 match err {
12176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12179 source: err.into(),
12180 }),
12181 }
12182 }
12183}
12184impl From<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
12185 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
12186 match err {
12187 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12188 }
12189 }
12190}
12191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
12192where
12193 R: Send + Sync + std::fmt::Debug + 'static,
12194{
12195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> 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::disable_image::DisableImageError> for Error {
12206 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
12207 match err {
12208 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
12209 }
12210 }
12211}
12212impl<R>
12213 From<
12214 ::aws_smithy_runtime_api::client::result::SdkError<
12215 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
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::disable_image_block_public_access::DisableImageBlockPublicAccessError,
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::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
12238 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
12239 match err {
12240 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12241 }
12242 }
12243}
12244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
12245 for Error
12246where
12247 R: Send + Sync + std::fmt::Debug + 'static,
12248{
12249 fn from(
12250 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
12251 ) -> Self {
12252 match err {
12253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12256 source: err.into(),
12257 }),
12258 }
12259 }
12260}
12261impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
12262 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
12263 match err {
12264 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
12265 }
12266 }
12267}
12268impl<R>
12269 From<
12270 ::aws_smithy_runtime_api::client::result::SdkError<
12271 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12272 R,
12273 >,
12274 > for Error
12275where
12276 R: Send + Sync + std::fmt::Debug + 'static,
12277{
12278 fn from(
12279 err: ::aws_smithy_runtime_api::client::result::SdkError<
12280 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
12281 R,
12282 >,
12283 ) -> Self {
12284 match err {
12285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12288 source: err.into(),
12289 }),
12290 }
12291 }
12292}
12293impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
12294 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
12295 match err {
12296 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
12297 Error::Unhandled(inner)
12298 }
12299 }
12300 }
12301}
12302impl<R>
12303 From<
12304 ::aws_smithy_runtime_api::client::result::SdkError<
12305 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12306 R,
12307 >,
12308 > for Error
12309where
12310 R: Send + Sync + std::fmt::Debug + 'static,
12311{
12312 fn from(
12313 err: ::aws_smithy_runtime_api::client::result::SdkError<
12314 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError,
12315 R,
12316 >,
12317 ) -> Self {
12318 match err {
12319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12322 source: err.into(),
12323 }),
12324 }
12325 }
12326}
12327impl From<crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError> for Error {
12328 fn from(err: crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError) -> Self {
12329 match err {
12330 crate::operation::disable_instance_sql_ha_standby_detections::DisableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
12331 Error::Unhandled(inner)
12332 }
12333 }
12334 }
12335}
12336impl<R>
12337 From<
12338 ::aws_smithy_runtime_api::client::result::SdkError<
12339 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12340 R,
12341 >,
12342 > for Error
12343where
12344 R: Send + Sync + std::fmt::Debug + 'static,
12345{
12346 fn from(
12347 err: ::aws_smithy_runtime_api::client::result::SdkError<
12348 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
12349 R,
12350 >,
12351 ) -> Self {
12352 match err {
12353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12356 source: err.into(),
12357 }),
12358 }
12359 }
12360}
12361impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
12362 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
12363 match err {
12364 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12365 Error::Unhandled(inner)
12366 }
12367 }
12368 }
12369}
12370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>> for Error
12371where
12372 R: Send + Sync + std::fmt::Debug + 'static,
12373{
12374 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_ipam_policy::DisableIpamPolicyError, R>) -> Self {
12375 match err {
12376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12379 source: err.into(),
12380 }),
12381 }
12382 }
12383}
12384impl From<crate::operation::disable_ipam_policy::DisableIpamPolicyError> for Error {
12385 fn from(err: crate::operation::disable_ipam_policy::DisableIpamPolicyError) -> Self {
12386 match err {
12387 crate::operation::disable_ipam_policy::DisableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
12388 }
12389 }
12390}
12391impl<R>
12392 From<
12393 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
12394 > for Error
12395where
12396 R: Send + Sync + std::fmt::Debug + 'static,
12397{
12398 fn from(
12399 err: ::aws_smithy_runtime_api::client::result::SdkError<
12400 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
12401 R,
12402 >,
12403 ) -> Self {
12404 match err {
12405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12408 source: err.into(),
12409 }),
12410 }
12411 }
12412}
12413impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
12414 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
12415 match err {
12416 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12417 }
12418 }
12419}
12420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
12421 for Error
12422where
12423 R: Send + Sync + std::fmt::Debug + 'static,
12424{
12425 fn from(
12426 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
12427 ) -> Self {
12428 match err {
12429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12432 source: err.into(),
12433 }),
12434 }
12435 }
12436}
12437impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
12438 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
12439 match err {
12440 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12441 }
12442 }
12443}
12444impl<R>
12445 From<
12446 ::aws_smithy_runtime_api::client::result::SdkError<
12447 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12448 R,
12449 >,
12450 > for Error
12451where
12452 R: Send + Sync + std::fmt::Debug + 'static,
12453{
12454 fn from(
12455 err: ::aws_smithy_runtime_api::client::result::SdkError<
12456 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
12457 R,
12458 >,
12459 ) -> Self {
12460 match err {
12461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12464 source: err.into(),
12465 }),
12466 }
12467 }
12468}
12469impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
12470 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
12471 match err {
12472 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
12473 Error::Unhandled(inner)
12474 }
12475 }
12476 }
12477}
12478impl<R>
12479 From<
12480 ::aws_smithy_runtime_api::client::result::SdkError<
12481 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12482 R,
12483 >,
12484 > for Error
12485where
12486 R: Send + Sync + std::fmt::Debug + 'static,
12487{
12488 fn from(
12489 err: ::aws_smithy_runtime_api::client::result::SdkError<
12490 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
12491 R,
12492 >,
12493 ) -> Self {
12494 match err {
12495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12498 source: err.into(),
12499 }),
12500 }
12501 }
12502}
12503impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
12504 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
12505 match err {
12506 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
12507 Error::Unhandled(inner)
12508 }
12509 }
12510 }
12511}
12512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
12513 for Error
12514where
12515 R: Send + Sync + std::fmt::Debug + 'static,
12516{
12517 fn from(
12518 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
12519 ) -> Self {
12520 match err {
12521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12524 source: err.into(),
12525 }),
12526 }
12527 }
12528}
12529impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
12530 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
12531 match err {
12532 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12533 }
12534 }
12535}
12536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
12537where
12538 R: Send + Sync + std::fmt::Debug + 'static,
12539{
12540 fn from(
12541 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
12542 ) -> Self {
12543 match err {
12544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12547 source: err.into(),
12548 }),
12549 }
12550 }
12551}
12552impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
12553 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
12554 match err {
12555 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12556 }
12557 }
12558}
12559impl<R>
12560 From<
12561 ::aws_smithy_runtime_api::client::result::SdkError<
12562 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12563 R,
12564 >,
12565 > for Error
12566where
12567 R: Send + Sync + std::fmt::Debug + 'static,
12568{
12569 fn from(
12570 err: ::aws_smithy_runtime_api::client::result::SdkError<
12571 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12572 R,
12573 >,
12574 ) -> Self {
12575 match err {
12576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12579 source: err.into(),
12580 }),
12581 }
12582 }
12583}
12584impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
12585 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
12586 match err {
12587 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12588 }
12589 }
12590}
12591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
12592where
12593 R: Send + Sync + std::fmt::Debug + 'static,
12594{
12595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
12596 match err {
12597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12600 source: err.into(),
12601 }),
12602 }
12603 }
12604}
12605impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
12606 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
12607 match err {
12608 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
12609 }
12610 }
12611}
12612impl<R>
12613 From<
12614 ::aws_smithy_runtime_api::client::result::SdkError<
12615 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12616 R,
12617 >,
12618 > for Error
12619where
12620 R: Send + Sync + std::fmt::Debug + 'static,
12621{
12622 fn from(
12623 err: ::aws_smithy_runtime_api::client::result::SdkError<
12624 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12625 R,
12626 >,
12627 ) -> Self {
12628 match err {
12629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12632 source: err.into(),
12633 }),
12634 }
12635 }
12636}
12637impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
12638 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
12639 match err {
12640 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
12641 Error::Unhandled(inner)
12642 }
12643 }
12644 }
12645}
12646impl<R>
12647 From<
12648 ::aws_smithy_runtime_api::client::result::SdkError<
12649 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12650 R,
12651 >,
12652 > for Error
12653where
12654 R: Send + Sync + std::fmt::Debug + 'static,
12655{
12656 fn from(
12657 err: ::aws_smithy_runtime_api::client::result::SdkError<
12658 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12659 R,
12660 >,
12661 ) -> Self {
12662 match err {
12663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12666 source: err.into(),
12667 }),
12668 }
12669 }
12670}
12671impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
12672 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
12673 match err {
12674 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
12675 Error::Unhandled(inner)
12676 }
12677 }
12678 }
12679}
12680impl<R>
12681 From<
12682 ::aws_smithy_runtime_api::client::result::SdkError<
12683 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12684 R,
12685 >,
12686 > for Error
12687where
12688 R: Send + Sync + std::fmt::Debug + 'static,
12689{
12690 fn from(
12691 err: ::aws_smithy_runtime_api::client::result::SdkError<
12692 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12693 R,
12694 >,
12695 ) -> Self {
12696 match err {
12697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12700 source: err.into(),
12701 }),
12702 }
12703 }
12704}
12705impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
12706 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
12707 match err {
12708 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
12709 Error::Unhandled(inner)
12710 }
12711 }
12712 }
12713}
12714impl<R>
12715 From<
12716 ::aws_smithy_runtime_api::client::result::SdkError<
12717 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12718 R,
12719 >,
12720 > for Error
12721where
12722 R: Send + Sync + std::fmt::Debug + 'static,
12723{
12724 fn from(
12725 err: ::aws_smithy_runtime_api::client::result::SdkError<
12726 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12727 R,
12728 >,
12729 ) -> Self {
12730 match err {
12731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12734 source: err.into(),
12735 }),
12736 }
12737 }
12738}
12739impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
12740 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
12741 match err {
12742 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
12743 }
12744 }
12745}
12746impl<R>
12747 From<
12748 ::aws_smithy_runtime_api::client::result::SdkError<
12749 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12750 R,
12751 >,
12752 > for Error
12753where
12754 R: Send + Sync + std::fmt::Debug + 'static,
12755{
12756 fn from(
12757 err: ::aws_smithy_runtime_api::client::result::SdkError<
12758 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12759 R,
12760 >,
12761 ) -> Self {
12762 match err {
12763 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12764 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12765 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12766 source: err.into(),
12767 }),
12768 }
12769 }
12770}
12771impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
12772 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
12773 match err {
12774 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
12775 }
12776 }
12777}
12778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
12779where
12780 R: Send + Sync + std::fmt::Debug + 'static,
12781{
12782 fn from(
12783 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
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::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
12795 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
12796 match err {
12797 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
12798 }
12799 }
12800}
12801impl<R>
12802 From<
12803 ::aws_smithy_runtime_api::client::result::SdkError<
12804 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
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::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
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::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
12827 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
12828 match err {
12829 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
12830 Error::Unhandled(inner)
12831 }
12832 }
12833 }
12834}
12835impl<R>
12836 From<
12837 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
12838 > for Error
12839where
12840 R: Send + Sync + std::fmt::Debug + 'static,
12841{
12842 fn from(
12843 err: ::aws_smithy_runtime_api::client::result::SdkError<
12844 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
12845 R,
12846 >,
12847 ) -> Self {
12848 match err {
12849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12852 source: err.into(),
12853 }),
12854 }
12855 }
12856}
12857impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
12858 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
12859 match err {
12860 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
12861 }
12862 }
12863}
12864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
12865 for Error
12866where
12867 R: Send + Sync + std::fmt::Debug + 'static,
12868{
12869 fn from(
12870 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
12871 ) -> Self {
12872 match err {
12873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12876 source: err.into(),
12877 }),
12878 }
12879 }
12880}
12881impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
12882 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
12883 match err {
12884 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
12885 }
12886 }
12887}
12888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
12889where
12890 R: Send + Sync + std::fmt::Debug + 'static,
12891{
12892 fn from(
12893 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
12894 ) -> Self {
12895 match err {
12896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12899 source: err.into(),
12900 }),
12901 }
12902 }
12903}
12904impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
12905 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
12906 match err {
12907 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
12908 }
12909 }
12910}
12911impl<R>
12912 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
12913 for Error
12914where
12915 R: Send + Sync + std::fmt::Debug + 'static,
12916{
12917 fn from(
12918 err: ::aws_smithy_runtime_api::client::result::SdkError<
12919 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
12920 R,
12921 >,
12922 ) -> Self {
12923 match err {
12924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12927 source: err.into(),
12928 }),
12929 }
12930 }
12931}
12932impl From<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
12933 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
12934 match err {
12935 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
12936 }
12937 }
12938}
12939impl<R>
12940 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, R>>
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::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError,
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::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
12961 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
12962 match err {
12963 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12964 }
12965 }
12966}
12967impl<R>
12968 From<
12969 ::aws_smithy_runtime_api::client::result::SdkError<
12970 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12971 R,
12972 >,
12973 > for Error
12974where
12975 R: Send + Sync + std::fmt::Debug + 'static,
12976{
12977 fn from(
12978 err: ::aws_smithy_runtime_api::client::result::SdkError<
12979 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12980 R,
12981 >,
12982 ) -> Self {
12983 match err {
12984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12987 source: err.into(),
12988 }),
12989 }
12990 }
12991}
12992impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
12993 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
12994 match err {
12995 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
12996 Error::Unhandled(inner)
12997 }
12998 }
12999 }
13000}
13001impl<R>
13002 From<
13003 ::aws_smithy_runtime_api::client::result::SdkError<
13004 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13005 R,
13006 >,
13007 > for Error
13008where
13009 R: Send + Sync + std::fmt::Debug + 'static,
13010{
13011 fn from(
13012 err: ::aws_smithy_runtime_api::client::result::SdkError<
13013 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
13014 R,
13015 >,
13016 ) -> Self {
13017 match err {
13018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13021 source: err.into(),
13022 }),
13023 }
13024 }
13025}
13026impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
13027 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
13028 match err {
13029 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
13030 Error::Unhandled(inner)
13031 }
13032 }
13033 }
13034}
13035impl<R>
13036 From<
13037 ::aws_smithy_runtime_api::client::result::SdkError<
13038 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13039 R,
13040 >,
13041 > for Error
13042where
13043 R: Send + Sync + std::fmt::Debug + 'static,
13044{
13045 fn from(
13046 err: ::aws_smithy_runtime_api::client::result::SdkError<
13047 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
13048 R,
13049 >,
13050 ) -> Self {
13051 match err {
13052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13055 source: err.into(),
13056 }),
13057 }
13058 }
13059}
13060impl From<crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
13061 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
13062 match err {
13063 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
13064 Error::Unhandled(inner)
13065 }
13066 }
13067 }
13068}
13069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
13070 for Error
13071where
13072 R: Send + Sync + std::fmt::Debug + 'static,
13073{
13074 fn from(
13075 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
13076 ) -> Self {
13077 match err {
13078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13081 source: err.into(),
13082 }),
13083 }
13084 }
13085}
13086impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
13087 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
13088 match err {
13089 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
13090 }
13091 }
13092}
13093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
13094 for Error
13095where
13096 R: Send + Sync + std::fmt::Debug + 'static,
13097{
13098 fn from(
13099 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
13100 ) -> Self {
13101 match err {
13102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13105 source: err.into(),
13106 }),
13107 }
13108 }
13109}
13110impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
13111 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
13112 match err {
13113 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
13114 }
13115 }
13116}
13117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
13118where
13119 R: Send + Sync + std::fmt::Debug + 'static,
13120{
13121 fn from(
13122 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
13123 ) -> Self {
13124 match err {
13125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13128 source: err.into(),
13129 }),
13130 }
13131 }
13132}
13133impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
13134 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
13135 match err {
13136 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
13137 }
13138 }
13139}
13140impl<R>
13141 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
13142 for Error
13143where
13144 R: Send + Sync + std::fmt::Debug + 'static,
13145{
13146 fn from(
13147 err: ::aws_smithy_runtime_api::client::result::SdkError<
13148 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
13149 R,
13150 >,
13151 ) -> Self {
13152 match err {
13153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13156 source: err.into(),
13157 }),
13158 }
13159 }
13160}
13161impl From<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
13162 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
13163 match err {
13164 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13165 }
13166 }
13167}
13168impl<R>
13169 From<
13170 ::aws_smithy_runtime_api::client::result::SdkError<
13171 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13172 R,
13173 >,
13174 > for Error
13175where
13176 R: Send + Sync + std::fmt::Debug + 'static,
13177{
13178 fn from(
13179 err: ::aws_smithy_runtime_api::client::result::SdkError<
13180 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
13181 R,
13182 >,
13183 ) -> Self {
13184 match err {
13185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13188 source: err.into(),
13189 }),
13190 }
13191 }
13192}
13193impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
13194 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
13195 match err {
13196 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
13197 inner,
13198 ) => Error::Unhandled(inner),
13199 }
13200 }
13201}
13202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
13203where
13204 R: Send + Sync + std::fmt::Debug + 'static,
13205{
13206 fn from(
13207 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
13208 ) -> Self {
13209 match err {
13210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13213 source: err.into(),
13214 }),
13215 }
13216 }
13217}
13218impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
13219 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
13220 match err {
13221 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
13222 }
13223 }
13224}
13225impl<R>
13226 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
13227 for Error
13228where
13229 R: Send + Sync + std::fmt::Debug + 'static,
13230{
13231 fn from(
13232 err: ::aws_smithy_runtime_api::client::result::SdkError<
13233 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
13234 R,
13235 >,
13236 ) -> Self {
13237 match err {
13238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13241 source: err.into(),
13242 }),
13243 }
13244 }
13245}
13246impl From<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
13247 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
13248 match err {
13249 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13250 }
13251 }
13252}
13253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
13254where
13255 R: Send + Sync + std::fmt::Debug + 'static,
13256{
13257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
13258 match err {
13259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13262 source: err.into(),
13263 }),
13264 }
13265 }
13266}
13267impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
13268 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
13269 match err {
13270 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
13271 }
13272 }
13273}
13274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
13275 for Error
13276where
13277 R: Send + Sync + std::fmt::Debug + 'static,
13278{
13279 fn from(
13280 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
13281 ) -> Self {
13282 match err {
13283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13286 source: err.into(),
13287 }),
13288 }
13289 }
13290}
13291impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
13292 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
13293 match err {
13294 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
13295 }
13296 }
13297}
13298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
13299where
13300 R: Send + Sync + std::fmt::Debug + 'static,
13301{
13302 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
13303 match err {
13304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13307 source: err.into(),
13308 }),
13309 }
13310 }
13311}
13312impl From<crate::operation::enable_image::EnableImageError> for Error {
13313 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
13314 match err {
13315 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
13316 }
13317 }
13318}
13319impl<R>
13320 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
13321 for Error
13322where
13323 R: Send + Sync + std::fmt::Debug + 'static,
13324{
13325 fn from(
13326 err: ::aws_smithy_runtime_api::client::result::SdkError<
13327 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
13328 R,
13329 >,
13330 ) -> Self {
13331 match err {
13332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13335 source: err.into(),
13336 }),
13337 }
13338 }
13339}
13340impl From<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError> for Error {
13341 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
13342 match err {
13343 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13344 }
13345 }
13346}
13347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
13348where
13349 R: Send + Sync + std::fmt::Debug + 'static,
13350{
13351 fn from(
13352 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
13353 ) -> Self {
13354 match err {
13355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13358 source: err.into(),
13359 }),
13360 }
13361 }
13362}
13363impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
13364 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
13365 match err {
13366 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
13367 }
13368 }
13369}
13370impl<R>
13371 From<
13372 ::aws_smithy_runtime_api::client::result::SdkError<
13373 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13374 R,
13375 >,
13376 > for Error
13377where
13378 R: Send + Sync + std::fmt::Debug + 'static,
13379{
13380 fn from(
13381 err: ::aws_smithy_runtime_api::client::result::SdkError<
13382 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
13383 R,
13384 >,
13385 ) -> Self {
13386 match err {
13387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13390 source: err.into(),
13391 }),
13392 }
13393 }
13394}
13395impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
13396 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
13397 match err {
13398 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
13399 Error::Unhandled(inner)
13400 }
13401 }
13402 }
13403}
13404impl<R>
13405 From<
13406 ::aws_smithy_runtime_api::client::result::SdkError<
13407 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13408 R,
13409 >,
13410 > for Error
13411where
13412 R: Send + Sync + std::fmt::Debug + 'static,
13413{
13414 fn from(
13415 err: ::aws_smithy_runtime_api::client::result::SdkError<
13416 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError,
13417 R,
13418 >,
13419 ) -> Self {
13420 match err {
13421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13424 source: err.into(),
13425 }),
13426 }
13427 }
13428}
13429impl From<crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError> for Error {
13430 fn from(err: crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError) -> Self {
13431 match err {
13432 crate::operation::enable_instance_sql_ha_standby_detections::EnableInstanceSqlHaStandbyDetectionsError::Unhandled(inner) => {
13433 Error::Unhandled(inner)
13434 }
13435 }
13436 }
13437}
13438impl<R>
13439 From<
13440 ::aws_smithy_runtime_api::client::result::SdkError<
13441 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13442 R,
13443 >,
13444 > for Error
13445where
13446 R: Send + Sync + std::fmt::Debug + 'static,
13447{
13448 fn from(
13449 err: ::aws_smithy_runtime_api::client::result::SdkError<
13450 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
13451 R,
13452 >,
13453 ) -> Self {
13454 match err {
13455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13458 source: err.into(),
13459 }),
13460 }
13461 }
13462}
13463impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
13464 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
13465 match err {
13466 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
13467 Error::Unhandled(inner)
13468 }
13469 }
13470 }
13471}
13472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>> for Error
13473where
13474 R: Send + Sync + std::fmt::Debug + 'static,
13475{
13476 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ipam_policy::EnableIpamPolicyError, R>) -> Self {
13477 match err {
13478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13481 source: err.into(),
13482 }),
13483 }
13484 }
13485}
13486impl From<crate::operation::enable_ipam_policy::EnableIpamPolicyError> for Error {
13487 fn from(err: crate::operation::enable_ipam_policy::EnableIpamPolicyError) -> Self {
13488 match err {
13489 crate::operation::enable_ipam_policy::EnableIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
13490 }
13491 }
13492}
13493impl<R>
13494 From<
13495 ::aws_smithy_runtime_api::client::result::SdkError<
13496 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13497 R,
13498 >,
13499 > for Error
13500where
13501 R: Send + Sync + std::fmt::Debug + 'static,
13502{
13503 fn from(
13504 err: ::aws_smithy_runtime_api::client::result::SdkError<
13505 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
13506 R,
13507 >,
13508 ) -> Self {
13509 match err {
13510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13513 source: err.into(),
13514 }),
13515 }
13516 }
13517}
13518impl From<crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
13519 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
13520 match err {
13521 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
13522 inner,
13523 ) => Error::Unhandled(inner),
13524 }
13525 }
13526}
13527impl<R>
13528 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
13529 for Error
13530where
13531 R: Send + Sync + std::fmt::Debug + 'static,
13532{
13533 fn from(
13534 err: ::aws_smithy_runtime_api::client::result::SdkError<
13535 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
13536 R,
13537 >,
13538 ) -> Self {
13539 match err {
13540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13543 source: err.into(),
13544 }),
13545 }
13546 }
13547}
13548impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
13549 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
13550 match err {
13551 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
13552 }
13553 }
13554}
13555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
13556 for Error
13557where
13558 R: Send + Sync + std::fmt::Debug + 'static,
13559{
13560 fn from(
13561 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
13562 ) -> Self {
13563 match err {
13564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13567 source: err.into(),
13568 }),
13569 }
13570 }
13571}
13572impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
13573 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
13574 match err {
13575 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
13576 }
13577 }
13578}
13579impl<R>
13580 From<
13581 ::aws_smithy_runtime_api::client::result::SdkError<
13582 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13583 R,
13584 >,
13585 > for Error
13586where
13587 R: Send + Sync + std::fmt::Debug + 'static,
13588{
13589 fn from(
13590 err: ::aws_smithy_runtime_api::client::result::SdkError<
13591 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13592 R,
13593 >,
13594 ) -> Self {
13595 match err {
13596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13599 source: err.into(),
13600 }),
13601 }
13602 }
13603}
13604impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
13605 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
13606 match err {
13607 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13608 }
13609 }
13610}
13611impl<R>
13612 From<
13613 ::aws_smithy_runtime_api::client::result::SdkError<
13614 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13615 R,
13616 >,
13617 > for Error
13618where
13619 R: Send + Sync + std::fmt::Debug + 'static,
13620{
13621 fn from(
13622 err: ::aws_smithy_runtime_api::client::result::SdkError<
13623 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13624 R,
13625 >,
13626 ) -> Self {
13627 match err {
13628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13631 source: err.into(),
13632 }),
13633 }
13634 }
13635}
13636impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
13637 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
13638 match err {
13639 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
13640 Error::Unhandled(inner)
13641 }
13642 }
13643 }
13644}
13645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
13646 for Error
13647where
13648 R: Send + Sync + std::fmt::Debug + 'static,
13649{
13650 fn from(
13651 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
13652 ) -> Self {
13653 match err {
13654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13657 source: err.into(),
13658 }),
13659 }
13660 }
13661}
13662impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
13663 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
13664 match err {
13665 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
13666 }
13667 }
13668}
13669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
13670where
13671 R: Send + Sync + std::fmt::Debug + 'static,
13672{
13673 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
13674 match err {
13675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13678 source: err.into(),
13679 }),
13680 }
13681 }
13682}
13683impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
13684 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
13685 match err {
13686 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
13687 }
13688 }
13689}
13690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
13691where
13692 R: Send + Sync + std::fmt::Debug + 'static,
13693{
13694 fn from(
13695 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
13696 ) -> Self {
13697 match err {
13698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13701 source: err.into(),
13702 }),
13703 }
13704 }
13705}
13706impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
13707 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
13708 match err {
13709 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
13710 }
13711 }
13712}
13713impl<R>
13714 From<
13715 ::aws_smithy_runtime_api::client::result::SdkError<
13716 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13717 R,
13718 >,
13719 > for Error
13720where
13721 R: Send + Sync + std::fmt::Debug + 'static,
13722{
13723 fn from(
13724 err: ::aws_smithy_runtime_api::client::result::SdkError<
13725 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13726 R,
13727 >,
13728 ) -> Self {
13729 match err {
13730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13733 source: err.into(),
13734 }),
13735 }
13736 }
13737}
13738impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
13739 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
13740 match err {
13741 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
13742 }
13743 }
13744}
13745impl<R>
13746 From<
13747 ::aws_smithy_runtime_api::client::result::SdkError<
13748 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13749 R,
13750 >,
13751 > for Error
13752where
13753 R: Send + Sync + std::fmt::Debug + 'static,
13754{
13755 fn from(
13756 err: ::aws_smithy_runtime_api::client::result::SdkError<
13757 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13758 R,
13759 >,
13760 ) -> Self {
13761 match err {
13762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13765 source: err.into(),
13766 }),
13767 }
13768 }
13769}
13770impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
13771 fn from(
13772 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13773 ) -> Self {
13774 match err {
13775 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
13776 }
13777 }
13778}
13779impl<R>
13780 From<
13781 ::aws_smithy_runtime_api::client::result::SdkError<
13782 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13783 R,
13784 >,
13785 > for Error
13786where
13787 R: Send + Sync + std::fmt::Debug + 'static,
13788{
13789 fn from(
13790 err: ::aws_smithy_runtime_api::client::result::SdkError<
13791 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13792 R,
13793 >,
13794 ) -> Self {
13795 match err {
13796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13799 source: err.into(),
13800 }),
13801 }
13802 }
13803}
13804impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
13805 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
13806 match err {
13807 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
13808 Error::Unhandled(inner)
13809 }
13810 }
13811 }
13812}
13813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
13814where
13815 R: Send + Sync + std::fmt::Debug + 'static,
13816{
13817 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
13818 match err {
13819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13822 source: err.into(),
13823 }),
13824 }
13825 }
13826}
13827impl From<crate::operation::export_image::ExportImageError> for Error {
13828 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
13829 match err {
13830 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
13831 }
13832 }
13833}
13834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
13835 for Error
13836where
13837 R: Send + Sync + std::fmt::Debug + 'static,
13838{
13839 fn from(
13840 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
13841 ) -> Self {
13842 match err {
13843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13846 source: err.into(),
13847 }),
13848 }
13849 }
13850}
13851impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
13852 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
13853 match err {
13854 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
13855 }
13856 }
13857}
13858impl<R>
13859 From<
13860 ::aws_smithy_runtime_api::client::result::SdkError<
13861 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13862 R,
13863 >,
13864 > for Error
13865where
13866 R: Send + Sync + std::fmt::Debug + 'static,
13867{
13868 fn from(
13869 err: ::aws_smithy_runtime_api::client::result::SdkError<
13870 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13871 R,
13872 >,
13873 ) -> Self {
13874 match err {
13875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13878 source: err.into(),
13879 }),
13880 }
13881 }
13882}
13883impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
13884 fn from(
13885 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13886 ) -> Self {
13887 match err {
13888 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
13889 }
13890 }
13891}
13892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>>
13893 for Error
13894where
13895 R: Send + Sync + std::fmt::Debug + 'static,
13896{
13897 fn from(
13898 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>,
13899 ) -> Self {
13900 match err {
13901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13904 source: err.into(),
13905 }),
13906 }
13907 }
13908}
13909impl From<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
13910 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
13911 match err {
13912 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
13913 }
13914 }
13915}
13916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
13917 for Error
13918where
13919 R: Send + Sync + std::fmt::Debug + 'static,
13920{
13921 fn from(
13922 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
13923 ) -> Self {
13924 match err {
13925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13928 source: err.into(),
13929 }),
13930 }
13931 }
13932}
13933impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
13934 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
13935 match err {
13936 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13937 }
13938 }
13939}
13940impl<R>
13941 From<
13942 ::aws_smithy_runtime_api::client::result::SdkError<
13943 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13944 R,
13945 >,
13946 > for Error
13947where
13948 R: Send + Sync + std::fmt::Debug + 'static,
13949{
13950 fn from(
13951 err: ::aws_smithy_runtime_api::client::result::SdkError<
13952 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13953 R,
13954 >,
13955 ) -> Self {
13956 match err {
13957 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13958 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13959 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13960 source: err.into(),
13961 }),
13962 }
13963 }
13964}
13965impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
13966 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
13967 match err {
13968 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
13969 Error::Unhandled(inner)
13970 }
13971 }
13972 }
13973}
13974impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
13975 for Error
13976where
13977 R: Send + Sync + std::fmt::Debug + 'static,
13978{
13979 fn from(
13980 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
13981 ) -> Self {
13982 match err {
13983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13986 source: err.into(),
13987 }),
13988 }
13989 }
13990}
13991impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
13992 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
13993 match err {
13994 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13995 }
13996 }
13997}
13998impl<R>
13999 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
14000 for Error
14001where
14002 R: Send + Sync + std::fmt::Debug + 'static,
14003{
14004 fn from(
14005 err: ::aws_smithy_runtime_api::client::result::SdkError<
14006 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
14007 R,
14008 >,
14009 ) -> Self {
14010 match err {
14011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14014 source: err.into(),
14015 }),
14016 }
14017 }
14018}
14019impl From<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
14020 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
14021 match err {
14022 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
14023 }
14024 }
14025}
14026impl<R>
14027 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, R>>
14028 for Error
14029where
14030 R: Send + Sync + std::fmt::Debug + 'static,
14031{
14032 fn from(
14033 err: ::aws_smithy_runtime_api::client::result::SdkError<
14034 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError,
14035 R,
14036 >,
14037 ) -> Self {
14038 match err {
14039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14042 source: err.into(),
14043 }),
14044 }
14045 }
14046}
14047impl From<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
14048 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
14049 match err {
14050 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
14051 }
14052 }
14053}
14054impl<R>
14055 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, R>>
14056 for Error
14057where
14058 R: Send + Sync + std::fmt::Debug + 'static,
14059{
14060 fn from(
14061 err: ::aws_smithy_runtime_api::client::result::SdkError<
14062 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError,
14063 R,
14064 >,
14065 ) -> Self {
14066 match err {
14067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14070 source: err.into(),
14071 }),
14072 }
14073 }
14074}
14075impl From<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError> for Error {
14076 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
14077 match err {
14078 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
14079 }
14080 }
14081}
14082impl<R>
14083 From<
14084 ::aws_smithy_runtime_api::client::result::SdkError<
14085 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14086 R,
14087 >,
14088 > for Error
14089where
14090 R: Send + Sync + std::fmt::Debug + 'static,
14091{
14092 fn from(
14093 err: ::aws_smithy_runtime_api::client::result::SdkError<
14094 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
14095 R,
14096 >,
14097 ) -> Self {
14098 match err {
14099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14102 source: err.into(),
14103 }),
14104 }
14105 }
14106}
14107impl From<crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
14108 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
14109 match err {
14110 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
14111 Error::Unhandled(inner)
14112 }
14113 }
14114 }
14115}
14116impl<R>
14117 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
14118 for Error
14119where
14120 R: Send + Sync + std::fmt::Debug + 'static,
14121{
14122 fn from(
14123 err: ::aws_smithy_runtime_api::client::result::SdkError<
14124 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
14125 R,
14126 >,
14127 ) -> Self {
14128 match err {
14129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14132 source: err.into(),
14133 }),
14134 }
14135 }
14136}
14137impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
14138 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
14139 match err {
14140 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
14141 }
14142 }
14143}
14144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
14145where
14146 R: Send + Sync + std::fmt::Debug + 'static,
14147{
14148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
14149 match err {
14150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14153 source: err.into(),
14154 }),
14155 }
14156 }
14157}
14158impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
14159 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
14160 match err {
14161 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
14162 }
14163 }
14164}
14165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
14166where
14167 R: Send + Sync + std::fmt::Debug + 'static,
14168{
14169 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
14170 match err {
14171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14174 source: err.into(),
14175 }),
14176 }
14177 }
14178}
14179impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
14180 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
14181 match err {
14182 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
14183 }
14184 }
14185}
14186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
14187where
14188 R: Send + Sync + std::fmt::Debug + 'static,
14189{
14190 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
14191 match err {
14192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14195 source: err.into(),
14196 }),
14197 }
14198 }
14199}
14200impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
14201 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
14202 match err {
14203 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
14204 }
14205 }
14206}
14207impl<R>
14208 From<
14209 ::aws_smithy_runtime_api::client::result::SdkError<
14210 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14211 R,
14212 >,
14213 > for Error
14214where
14215 R: Send + Sync + std::fmt::Debug + 'static,
14216{
14217 fn from(
14218 err: ::aws_smithy_runtime_api::client::result::SdkError<
14219 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
14220 R,
14221 >,
14222 ) -> Self {
14223 match err {
14224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14227 source: err.into(),
14228 }),
14229 }
14230 }
14231}
14232impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
14233 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
14234 match err {
14235 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
14236 Error::Unhandled(inner)
14237 }
14238 }
14239 }
14240}
14241impl<R>
14242 From<
14243 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
14244 > for Error
14245where
14246 R: Send + Sync + std::fmt::Debug + 'static,
14247{
14248 fn from(
14249 err: ::aws_smithy_runtime_api::client::result::SdkError<
14250 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
14251 R,
14252 >,
14253 ) -> Self {
14254 match err {
14255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14258 source: err.into(),
14259 }),
14260 }
14261 }
14262}
14263impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
14264 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
14265 match err {
14266 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
14267 }
14268 }
14269}
14270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
14271 for Error
14272where
14273 R: Send + Sync + std::fmt::Debug + 'static,
14274{
14275 fn from(
14276 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
14277 ) -> Self {
14278 match err {
14279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14282 source: err.into(),
14283 }),
14284 }
14285 }
14286}
14287impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
14288 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
14289 match err {
14290 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
14291 }
14292 }
14293}
14294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
14295 for Error
14296where
14297 R: Send + Sync + std::fmt::Debug + 'static,
14298{
14299 fn from(
14300 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
14301 ) -> Self {
14302 match err {
14303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14306 source: err.into(),
14307 }),
14308 }
14309 }
14310}
14311impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
14312 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
14313 match err {
14314 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
14315 }
14316 }
14317}
14318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>> for Error
14319where
14320 R: Send + Sync + std::fmt::Debug + 'static,
14321{
14322 fn from(
14323 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError, R>,
14324 ) -> Self {
14325 match err {
14326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14329 source: err.into(),
14330 }),
14331 }
14332 }
14333}
14334impl From<crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError> for Error {
14335 fn from(err: crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError) -> Self {
14336 match err {
14337 crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14338 }
14339 }
14340}
14341impl<R>
14342 From<
14343 ::aws_smithy_runtime_api::client::result::SdkError<
14344 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14345 R,
14346 >,
14347 > for Error
14348where
14349 R: Send + Sync + std::fmt::Debug + 'static,
14350{
14351 fn from(
14352 err: ::aws_smithy_runtime_api::client::result::SdkError<
14353 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
14354 R,
14355 >,
14356 ) -> Self {
14357 match err {
14358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14361 source: err.into(),
14362 }),
14363 }
14364 }
14365}
14366impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
14367 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
14368 match err {
14369 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
14370 }
14371 }
14372}
14373impl<R>
14374 From<
14375 ::aws_smithy_runtime_api::client::result::SdkError<
14376 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14377 R,
14378 >,
14379 > for Error
14380where
14381 R: Send + Sync + std::fmt::Debug + 'static,
14382{
14383 fn from(
14384 err: ::aws_smithy_runtime_api::client::result::SdkError<
14385 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
14386 R,
14387 >,
14388 ) -> Self {
14389 match err {
14390 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14391 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14392 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14393 source: err.into(),
14394 }),
14395 }
14396 }
14397}
14398impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
14399 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
14400 match err {
14401 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
14402 }
14403 }
14404}
14405impl<R>
14406 From<
14407 ::aws_smithy_runtime_api::client::result::SdkError<
14408 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14409 R,
14410 >,
14411 > for Error
14412where
14413 R: Send + Sync + std::fmt::Debug + 'static,
14414{
14415 fn from(
14416 err: ::aws_smithy_runtime_api::client::result::SdkError<
14417 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
14418 R,
14419 >,
14420 ) -> Self {
14421 match err {
14422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14425 source: err.into(),
14426 }),
14427 }
14428 }
14429}
14430impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
14431 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
14432 match err {
14433 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
14434 Error::Unhandled(inner)
14435 }
14436 }
14437 }
14438}
14439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>> for Error
14440where
14441 R: Send + Sync + std::fmt::Debug + 'static,
14442{
14443 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>) -> Self {
14444 match err {
14445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14448 source: err.into(),
14449 }),
14450 }
14451 }
14452}
14453impl From<crate::operation::get_image_ancestry::GetImageAncestryError> for Error {
14454 fn from(err: crate::operation::get_image_ancestry::GetImageAncestryError) -> Self {
14455 match err {
14456 crate::operation::get_image_ancestry::GetImageAncestryError::Unhandled(inner) => Error::Unhandled(inner),
14457 }
14458 }
14459}
14460impl<R>
14461 From<
14462 ::aws_smithy_runtime_api::client::result::SdkError<
14463 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14464 R,
14465 >,
14466 > for Error
14467where
14468 R: Send + Sync + std::fmt::Debug + 'static,
14469{
14470 fn from(
14471 err: ::aws_smithy_runtime_api::client::result::SdkError<
14472 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
14473 R,
14474 >,
14475 ) -> Self {
14476 match err {
14477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14480 source: err.into(),
14481 }),
14482 }
14483 }
14484}
14485impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
14486 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
14487 match err {
14488 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
14489 }
14490 }
14491}
14492impl<R>
14493 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
14494 for Error
14495where
14496 R: Send + Sync + std::fmt::Debug + 'static,
14497{
14498 fn from(
14499 err: ::aws_smithy_runtime_api::client::result::SdkError<
14500 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
14501 R,
14502 >,
14503 ) -> Self {
14504 match err {
14505 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14506 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14507 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14508 source: err.into(),
14509 }),
14510 }
14511 }
14512}
14513impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
14514 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
14515 match err {
14516 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
14517 }
14518 }
14519}
14520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
14521where
14522 R: Send + Sync + std::fmt::Debug + 'static,
14523{
14524 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
14525 match err {
14526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14529 source: err.into(),
14530 }),
14531 }
14532 }
14533}
14534impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
14535 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
14536 match err {
14537 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
14538 }
14539 }
14540}
14541impl<R>
14542 From<
14543 ::aws_smithy_runtime_api::client::result::SdkError<
14544 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14545 R,
14546 >,
14547 > for Error
14548where
14549 R: Send + Sync + std::fmt::Debug + 'static,
14550{
14551 fn from(
14552 err: ::aws_smithy_runtime_api::client::result::SdkError<
14553 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
14554 R,
14555 >,
14556 ) -> Self {
14557 match err {
14558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14561 source: err.into(),
14562 }),
14563 }
14564 }
14565}
14566impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
14567 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
14568 match err {
14569 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
14570 Error::Unhandled(inner)
14571 }
14572 }
14573 }
14574}
14575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
14576where
14577 R: Send + Sync + std::fmt::Debug + 'static,
14578{
14579 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
14580 match err {
14581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14584 source: err.into(),
14585 }),
14586 }
14587 }
14588}
14589impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
14590 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
14591 match err {
14592 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
14593 }
14594 }
14595}
14596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
14597where
14598 R: Send + Sync + std::fmt::Debug + 'static,
14599{
14600 fn from(
14601 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
14602 ) -> Self {
14603 match err {
14604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14607 source: err.into(),
14608 }),
14609 }
14610 }
14611}
14612impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
14613 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
14614 match err {
14615 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
14616 }
14617 }
14618}
14619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
14620 for Error
14621where
14622 R: Send + Sync + std::fmt::Debug + 'static,
14623{
14624 fn from(
14625 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
14626 ) -> Self {
14627 match err {
14628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14631 source: err.into(),
14632 }),
14633 }
14634 }
14635}
14636impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14637 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14638 match err {
14639 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14640 }
14641 }
14642}
14643impl<R>
14644 From<
14645 ::aws_smithy_runtime_api::client::result::SdkError<
14646 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14647 R,
14648 >,
14649 > for Error
14650where
14651 R: Send + Sync + std::fmt::Debug + 'static,
14652{
14653 fn from(
14654 err: ::aws_smithy_runtime_api::client::result::SdkError<
14655 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14656 R,
14657 >,
14658 ) -> Self {
14659 match err {
14660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14663 source: err.into(),
14664 }),
14665 }
14666 }
14667}
14668impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14669 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14670 match err {
14671 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14672 Error::Unhandled(inner)
14673 }
14674 }
14675 }
14676}
14677impl<R>
14678 From<
14679 ::aws_smithy_runtime_api::client::result::SdkError<
14680 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
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_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
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_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14703 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14704 match err {
14705 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14706 }
14707 }
14708}
14709impl<R>
14710 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError, R>>
14711 for Error
14712where
14713 R: Send + Sync + std::fmt::Debug + 'static,
14714{
14715 fn from(
14716 err: ::aws_smithy_runtime_api::client::result::SdkError<
14717 crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError,
14718 R,
14719 >,
14720 ) -> Self {
14721 match err {
14722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14725 source: err.into(),
14726 }),
14727 }
14728 }
14729}
14730impl From<crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError> for Error {
14731 fn from(err: crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError) -> Self {
14732 match err {
14733 crate::operation::get_ipam_policy_allocation_rules::GetIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
14734 }
14735 }
14736}
14737impl<R>
14738 From<
14739 ::aws_smithy_runtime_api::client::result::SdkError<
14740 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
14741 R,
14742 >,
14743 > for Error
14744where
14745 R: Send + Sync + std::fmt::Debug + 'static,
14746{
14747 fn from(
14748 err: ::aws_smithy_runtime_api::client::result::SdkError<
14749 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError,
14750 R,
14751 >,
14752 ) -> Self {
14753 match err {
14754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14757 source: err.into(),
14758 }),
14759 }
14760 }
14761}
14762impl From<crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError> for Error {
14763 fn from(err: crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError) -> Self {
14764 match err {
14765 crate::operation::get_ipam_policy_organization_targets::GetIpamPolicyOrganizationTargetsError::Unhandled(inner) => {
14766 Error::Unhandled(inner)
14767 }
14768 }
14769 }
14770}
14771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
14772 for Error
14773where
14774 R: Send + Sync + std::fmt::Debug + 'static,
14775{
14776 fn from(
14777 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
14778 ) -> Self {
14779 match err {
14780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14783 source: err.into(),
14784 }),
14785 }
14786 }
14787}
14788impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
14789 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
14790 match err {
14791 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
14792 }
14793 }
14794}
14795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
14796where
14797 R: Send + Sync + std::fmt::Debug + 'static,
14798{
14799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
14800 match err {
14801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14804 source: err.into(),
14805 }),
14806 }
14807 }
14808}
14809impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
14810 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
14811 match err {
14812 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14813 }
14814 }
14815}
14816impl<R>
14817 From<
14818 ::aws_smithy_runtime_api::client::result::SdkError<
14819 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14820 R,
14821 >,
14822 > for Error
14823where
14824 R: Send + Sync + std::fmt::Debug + 'static,
14825{
14826 fn from(
14827 err: ::aws_smithy_runtime_api::client::result::SdkError<
14828 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14829 R,
14830 >,
14831 ) -> Self {
14832 match err {
14833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14836 source: err.into(),
14837 }),
14838 }
14839 }
14840}
14841impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
14842 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
14843 match err {
14844 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
14845 }
14846 }
14847}
14848impl<R>
14849 From<
14850 ::aws_smithy_runtime_api::client::result::SdkError<
14851 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14852 R,
14853 >,
14854 > for Error
14855where
14856 R: Send + Sync + std::fmt::Debug + 'static,
14857{
14858 fn from(
14859 err: ::aws_smithy_runtime_api::client::result::SdkError<
14860 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14861 R,
14862 >,
14863 ) -> Self {
14864 match err {
14865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14868 source: err.into(),
14869 }),
14870 }
14871 }
14872}
14873impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
14874 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
14875 match err {
14876 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
14877 Error::Unhandled(inner)
14878 }
14879 }
14880 }
14881}
14882impl<R>
14883 From<
14884 ::aws_smithy_runtime_api::client::result::SdkError<
14885 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14886 R,
14887 >,
14888 > for Error
14889where
14890 R: Send + Sync + std::fmt::Debug + 'static,
14891{
14892 fn from(
14893 err: ::aws_smithy_runtime_api::client::result::SdkError<
14894 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14895 R,
14896 >,
14897 ) -> Self {
14898 match err {
14899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14902 source: err.into(),
14903 }),
14904 }
14905 }
14906}
14907impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
14908 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
14909 match err {
14910 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
14911 Error::Unhandled(inner)
14912 }
14913 }
14914 }
14915}
14916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
14917where
14918 R: Send + Sync + std::fmt::Debug + 'static,
14919{
14920 fn from(
14921 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
14922 ) -> Self {
14923 match err {
14924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14927 source: err.into(),
14928 }),
14929 }
14930 }
14931}
14932impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
14933 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
14934 match err {
14935 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14936 }
14937 }
14938}
14939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
14940where
14941 R: Send + Sync + std::fmt::Debug + 'static,
14942{
14943 fn from(
14944 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
14945 ) -> Self {
14946 match err {
14947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14950 source: err.into(),
14951 }),
14952 }
14953 }
14954}
14955impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
14956 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
14957 match err {
14958 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
14959 }
14960 }
14961}
14962impl<R>
14963 From<
14964 ::aws_smithy_runtime_api::client::result::SdkError<
14965 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14966 R,
14967 >,
14968 > for Error
14969where
14970 R: Send + Sync + std::fmt::Debug + 'static,
14971{
14972 fn from(
14973 err: ::aws_smithy_runtime_api::client::result::SdkError<
14974 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14975 R,
14976 >,
14977 ) -> Self {
14978 match err {
14979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14982 source: err.into(),
14983 }),
14984 }
14985 }
14986}
14987impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
14988 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
14989 match err {
14990 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
14991 Error::Unhandled(inner)
14992 }
14993 }
14994 }
14995}
14996impl<R>
14997 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
14998 for Error
14999where
15000 R: Send + Sync + std::fmt::Debug + 'static,
15001{
15002 fn from(
15003 err: ::aws_smithy_runtime_api::client::result::SdkError<
15004 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
15005 R,
15006 >,
15007 ) -> Self {
15008 match err {
15009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15012 source: err.into(),
15013 }),
15014 }
15015 }
15016}
15017impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
15018 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
15019 match err {
15020 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
15021 }
15022 }
15023}
15024impl<R>
15025 From<
15026 ::aws_smithy_runtime_api::client::result::SdkError<
15027 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15028 R,
15029 >,
15030 > for Error
15031where
15032 R: Send + Sync + std::fmt::Debug + 'static,
15033{
15034 fn from(
15035 err: ::aws_smithy_runtime_api::client::result::SdkError<
15036 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
15037 R,
15038 >,
15039 ) -> Self {
15040 match err {
15041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15044 source: err.into(),
15045 }),
15046 }
15047 }
15048}
15049impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
15050 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
15051 match err {
15052 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
15053 inner,
15054 ) => Error::Unhandled(inner),
15055 }
15056 }
15057}
15058impl<R>
15059 From<
15060 ::aws_smithy_runtime_api::client::result::SdkError<
15061 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15062 R,
15063 >,
15064 > for Error
15065where
15066 R: Send + Sync + std::fmt::Debug + 'static,
15067{
15068 fn from(
15069 err: ::aws_smithy_runtime_api::client::result::SdkError<
15070 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
15071 R,
15072 >,
15073 ) -> Self {
15074 match err {
15075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15078 source: err.into(),
15079 }),
15080 }
15081 }
15082}
15083impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
15084 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
15085 match err {
15086 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
15087 Error::Unhandled(inner)
15088 }
15089 }
15090 }
15091}
15092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
15093where
15094 R: Send + Sync + std::fmt::Debug + 'static,
15095{
15096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
15097 match err {
15098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15101 source: err.into(),
15102 }),
15103 }
15104 }
15105}
15106impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
15107 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
15108 match err {
15109 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
15110 }
15111 }
15112}
15113impl<R>
15114 From<
15115 ::aws_smithy_runtime_api::client::result::SdkError<
15116 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15117 R,
15118 >,
15119 > for Error
15120where
15121 R: Send + Sync + std::fmt::Debug + 'static,
15122{
15123 fn from(
15124 err: ::aws_smithy_runtime_api::client::result::SdkError<
15125 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
15126 R,
15127 >,
15128 ) -> Self {
15129 match err {
15130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15133 source: err.into(),
15134 }),
15135 }
15136 }
15137}
15138impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
15139 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
15140 match err {
15141 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
15142 Error::Unhandled(inner)
15143 }
15144 }
15145 }
15146}
15147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
15148 for Error
15149where
15150 R: Send + Sync + std::fmt::Debug + 'static,
15151{
15152 fn from(
15153 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
15154 ) -> Self {
15155 match err {
15156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15159 source: err.into(),
15160 }),
15161 }
15162 }
15163}
15164impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
15165 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
15166 match err {
15167 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
15168 }
15169 }
15170}
15171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
15172 for Error
15173where
15174 R: Send + Sync + std::fmt::Debug + 'static,
15175{
15176 fn from(
15177 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
15178 ) -> Self {
15179 match err {
15180 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15181 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15182 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15183 source: err.into(),
15184 }),
15185 }
15186 }
15187}
15188impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
15189 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
15190 match err {
15191 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
15192 }
15193 }
15194}
15195impl<R>
15196 From<
15197 ::aws_smithy_runtime_api::client::result::SdkError<
15198 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15199 R,
15200 >,
15201 > for Error
15202where
15203 R: Send + Sync + std::fmt::Debug + 'static,
15204{
15205 fn from(
15206 err: ::aws_smithy_runtime_api::client::result::SdkError<
15207 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
15208 R,
15209 >,
15210 ) -> Self {
15211 match err {
15212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15215 source: err.into(),
15216 }),
15217 }
15218 }
15219}
15220impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
15221 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
15222 match err {
15223 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
15224 }
15225 }
15226}
15227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
15228 for Error
15229where
15230 R: Send + Sync + std::fmt::Debug + 'static,
15231{
15232 fn from(
15233 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
15234 ) -> Self {
15235 match err {
15236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15239 source: err.into(),
15240 }),
15241 }
15242 }
15243}
15244impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
15245 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
15246 match err {
15247 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
15248 }
15249 }
15250}
15251impl<R>
15252 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
15253 for Error
15254where
15255 R: Send + Sync + std::fmt::Debug + 'static,
15256{
15257 fn from(
15258 err: ::aws_smithy_runtime_api::client::result::SdkError<
15259 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
15260 R,
15261 >,
15262 ) -> Self {
15263 match err {
15264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15267 source: err.into(),
15268 }),
15269 }
15270 }
15271}
15272impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
15273 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
15274 match err {
15275 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
15276 }
15277 }
15278}
15279impl<R>
15280 From<
15281 ::aws_smithy_runtime_api::client::result::SdkError<
15282 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15283 R,
15284 >,
15285 > for Error
15286where
15287 R: Send + Sync + std::fmt::Debug + 'static,
15288{
15289 fn from(
15290 err: ::aws_smithy_runtime_api::client::result::SdkError<
15291 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
15292 R,
15293 >,
15294 ) -> Self {
15295 match err {
15296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15299 source: err.into(),
15300 }),
15301 }
15302 }
15303}
15304impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
15305 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
15306 match err {
15307 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
15308 Error::Unhandled(inner)
15309 }
15310 }
15311 }
15312}
15313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
15314 for Error
15315where
15316 R: Send + Sync + std::fmt::Debug + 'static,
15317{
15318 fn from(
15319 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
15320 ) -> Self {
15321 match err {
15322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15325 source: err.into(),
15326 }),
15327 }
15328 }
15329}
15330impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
15331 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
15332 match err {
15333 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
15334 }
15335 }
15336}
15337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
15338 for Error
15339where
15340 R: Send + Sync + std::fmt::Debug + 'static,
15341{
15342 fn from(
15343 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
15344 ) -> Self {
15345 match err {
15346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15349 source: err.into(),
15350 }),
15351 }
15352 }
15353}
15354impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
15355 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
15356 match err {
15357 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
15358 }
15359 }
15360}
15361impl<R>
15362 From<
15363 ::aws_smithy_runtime_api::client::result::SdkError<
15364 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15365 R,
15366 >,
15367 > for Error
15368where
15369 R: Send + Sync + std::fmt::Debug + 'static,
15370{
15371 fn from(
15372 err: ::aws_smithy_runtime_api::client::result::SdkError<
15373 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
15374 R,
15375 >,
15376 ) -> Self {
15377 match err {
15378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15381 source: err.into(),
15382 }),
15383 }
15384 }
15385}
15386impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
15387 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
15388 match err {
15389 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
15390 Error::Unhandled(inner)
15391 }
15392 }
15393 }
15394}
15395impl<R>
15396 From<
15397 ::aws_smithy_runtime_api::client::result::SdkError<
15398 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15399 R,
15400 >,
15401 > for Error
15402where
15403 R: Send + Sync + std::fmt::Debug + 'static,
15404{
15405 fn from(
15406 err: ::aws_smithy_runtime_api::client::result::SdkError<
15407 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError,
15408 R,
15409 >,
15410 ) -> Self {
15411 match err {
15412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15415 source: err.into(),
15416 }),
15417 }
15418 }
15419}
15420impl From<crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError> for Error {
15421 fn from(err: crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError) -> Self {
15422 match err {
15423 crate::operation::get_transit_gateway_metering_policy_entries::GetTransitGatewayMeteringPolicyEntriesError::Unhandled(inner) => {
15424 Error::Unhandled(inner)
15425 }
15426 }
15427 }
15428}
15429impl<R>
15430 From<
15431 ::aws_smithy_runtime_api::client::result::SdkError<
15432 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15433 R,
15434 >,
15435 > for Error
15436where
15437 R: Send + Sync + std::fmt::Debug + 'static,
15438{
15439 fn from(
15440 err: ::aws_smithy_runtime_api::client::result::SdkError<
15441 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
15442 R,
15443 >,
15444 ) -> Self {
15445 match err {
15446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15449 source: err.into(),
15450 }),
15451 }
15452 }
15453}
15454impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
15455 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
15456 match err {
15457 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
15458 inner,
15459 ) => Error::Unhandled(inner),
15460 }
15461 }
15462}
15463impl<R>
15464 From<
15465 ::aws_smithy_runtime_api::client::result::SdkError<
15466 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15467 R,
15468 >,
15469 > for Error
15470where
15471 R: Send + Sync + std::fmt::Debug + 'static,
15472{
15473 fn from(
15474 err: ::aws_smithy_runtime_api::client::result::SdkError<
15475 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
15476 R,
15477 >,
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::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
15489 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
15490 match err {
15491 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
15492 Error::Unhandled(inner)
15493 }
15494 }
15495 }
15496}
15497impl<R>
15498 From<
15499 ::aws_smithy_runtime_api::client::result::SdkError<
15500 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15501 R,
15502 >,
15503 > for Error
15504where
15505 R: Send + Sync + std::fmt::Debug + 'static,
15506{
15507 fn from(
15508 err: ::aws_smithy_runtime_api::client::result::SdkError<
15509 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
15510 R,
15511 >,
15512 ) -> Self {
15513 match err {
15514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15517 source: err.into(),
15518 }),
15519 }
15520 }
15521}
15522impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
15523 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
15524 match err {
15525 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
15526 Error::Unhandled(inner)
15527 }
15528 }
15529 }
15530}
15531impl<R>
15532 From<
15533 ::aws_smithy_runtime_api::client::result::SdkError<
15534 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15535 R,
15536 >,
15537 > for Error
15538where
15539 R: Send + Sync + std::fmt::Debug + 'static,
15540{
15541 fn from(
15542 err: ::aws_smithy_runtime_api::client::result::SdkError<
15543 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
15544 R,
15545 >,
15546 ) -> Self {
15547 match err {
15548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15551 source: err.into(),
15552 }),
15553 }
15554 }
15555}
15556impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
15557 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
15558 match err {
15559 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
15560 Error::Unhandled(inner)
15561 }
15562 }
15563 }
15564}
15565impl<R>
15566 From<
15567 ::aws_smithy_runtime_api::client::result::SdkError<
15568 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15569 R,
15570 >,
15571 > for Error
15572where
15573 R: Send + Sync + std::fmt::Debug + 'static,
15574{
15575 fn from(
15576 err: ::aws_smithy_runtime_api::client::result::SdkError<
15577 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
15578 R,
15579 >,
15580 ) -> Self {
15581 match err {
15582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15585 source: err.into(),
15586 }),
15587 }
15588 }
15589}
15590impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
15591 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
15592 match err {
15593 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
15594 Error::Unhandled(inner)
15595 }
15596 }
15597 }
15598}
15599impl<R>
15600 From<
15601 ::aws_smithy_runtime_api::client::result::SdkError<
15602 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15603 R,
15604 >,
15605 > for Error
15606where
15607 R: Send + Sync + std::fmt::Debug + 'static,
15608{
15609 fn from(
15610 err: ::aws_smithy_runtime_api::client::result::SdkError<
15611 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
15612 R,
15613 >,
15614 ) -> Self {
15615 match err {
15616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15619 source: err.into(),
15620 }),
15621 }
15622 }
15623}
15624impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
15625 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
15626 match err {
15627 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
15628 Error::Unhandled(inner)
15629 }
15630 }
15631 }
15632}
15633impl<R>
15634 From<
15635 ::aws_smithy_runtime_api::client::result::SdkError<
15636 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15637 R,
15638 >,
15639 > for Error
15640where
15641 R: Send + Sync + std::fmt::Debug + 'static,
15642{
15643 fn from(
15644 err: ::aws_smithy_runtime_api::client::result::SdkError<
15645 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
15646 R,
15647 >,
15648 ) -> Self {
15649 match err {
15650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15653 source: err.into(),
15654 }),
15655 }
15656 }
15657}
15658impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
15659 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
15660 match err {
15661 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15662 }
15663 }
15664}
15665impl<R>
15666 From<
15667 ::aws_smithy_runtime_api::client::result::SdkError<
15668 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15669 R,
15670 >,
15671 > for Error
15672where
15673 R: Send + Sync + std::fmt::Debug + 'static,
15674{
15675 fn from(
15676 err: ::aws_smithy_runtime_api::client::result::SdkError<
15677 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
15678 R,
15679 >,
15680 ) -> Self {
15681 match err {
15682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15685 source: err.into(),
15686 }),
15687 }
15688 }
15689}
15690impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
15691 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
15692 match err {
15693 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
15694 Error::Unhandled(inner)
15695 }
15696 }
15697 }
15698}
15699impl<R>
15700 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
15701 for Error
15702where
15703 R: Send + Sync + std::fmt::Debug + 'static,
15704{
15705 fn from(
15706 err: ::aws_smithy_runtime_api::client::result::SdkError<
15707 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
15708 R,
15709 >,
15710 ) -> Self {
15711 match err {
15712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15715 source: err.into(),
15716 }),
15717 }
15718 }
15719}
15720impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
15721 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
15722 match err {
15723 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15724 }
15725 }
15726}
15727impl<R>
15728 From<
15729 ::aws_smithy_runtime_api::client::result::SdkError<
15730 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
15731 R,
15732 >,
15733 > for Error
15734where
15735 R: Send + Sync + std::fmt::Debug + 'static,
15736{
15737 fn from(
15738 err: ::aws_smithy_runtime_api::client::result::SdkError<
15739 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError,
15740 R,
15741 >,
15742 ) -> Self {
15743 match err {
15744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15747 source: err.into(),
15748 }),
15749 }
15750 }
15751}
15752impl From<crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError> for Error {
15753 fn from(err: crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError) -> Self {
15754 match err {
15755 crate::operation::get_vpc_resources_blocking_encryption_enforcement::GetVpcResourcesBlockingEncryptionEnforcementError::Unhandled(
15756 inner,
15757 ) => Error::Unhandled(inner),
15758 }
15759 }
15760}
15761impl<R>
15762 From<
15763 ::aws_smithy_runtime_api::client::result::SdkError<
15764 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15765 R,
15766 >,
15767 > for Error
15768where
15769 R: Send + Sync + std::fmt::Debug + 'static,
15770{
15771 fn from(
15772 err: ::aws_smithy_runtime_api::client::result::SdkError<
15773 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15774 R,
15775 >,
15776 ) -> Self {
15777 match err {
15778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15781 source: err.into(),
15782 }),
15783 }
15784 }
15785}
15786impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
15787 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
15788 match err {
15789 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
15790 Error::Unhandled(inner)
15791 }
15792 }
15793 }
15794}
15795impl<R>
15796 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
15797 for Error
15798where
15799 R: Send + Sync + std::fmt::Debug + 'static,
15800{
15801 fn from(
15802 err: ::aws_smithy_runtime_api::client::result::SdkError<
15803 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
15804 R,
15805 >,
15806 ) -> Self {
15807 match err {
15808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15811 source: err.into(),
15812 }),
15813 }
15814 }
15815}
15816impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
15817 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
15818 match err {
15819 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
15820 }
15821 }
15822}
15823impl<R>
15824 From<
15825 ::aws_smithy_runtime_api::client::result::SdkError<
15826 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15827 R,
15828 >,
15829 > for Error
15830where
15831 R: Send + Sync + std::fmt::Debug + 'static,
15832{
15833 fn from(
15834 err: ::aws_smithy_runtime_api::client::result::SdkError<
15835 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15836 R,
15837 >,
15838 ) -> Self {
15839 match err {
15840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15843 source: err.into(),
15844 }),
15845 }
15846 }
15847}
15848impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
15849 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
15850 match err {
15851 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
15852 }
15853 }
15854}
15855impl<R>
15856 From<
15857 ::aws_smithy_runtime_api::client::result::SdkError<
15858 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15859 R,
15860 >,
15861 > for Error
15862where
15863 R: Send + Sync + std::fmt::Debug + 'static,
15864{
15865 fn from(
15866 err: ::aws_smithy_runtime_api::client::result::SdkError<
15867 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15868 R,
15869 >,
15870 ) -> Self {
15871 match err {
15872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15875 source: err.into(),
15876 }),
15877 }
15878 }
15879}
15880impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
15881 fn from(
15882 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15883 ) -> Self {
15884 match err {
15885 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
15886 }
15887 }
15888}
15889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
15890where
15891 R: Send + Sync + std::fmt::Debug + 'static,
15892{
15893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
15894 match err {
15895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15898 source: err.into(),
15899 }),
15900 }
15901 }
15902}
15903impl From<crate::operation::import_image::ImportImageError> for Error {
15904 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
15905 match err {
15906 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
15907 }
15908 }
15909}
15910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
15911where
15912 R: Send + Sync + std::fmt::Debug + 'static,
15913{
15914 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
15915 match err {
15916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15919 source: err.into(),
15920 }),
15921 }
15922 }
15923}
15924impl From<crate::operation::import_instance::ImportInstanceError> for Error {
15925 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
15926 match err {
15927 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
15928 }
15929 }
15930}
15931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
15932where
15933 R: Send + Sync + std::fmt::Debug + 'static,
15934{
15935 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
15936 match err {
15937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15940 source: err.into(),
15941 }),
15942 }
15943 }
15944}
15945impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
15946 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
15947 match err {
15948 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
15949 }
15950 }
15951}
15952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
15953where
15954 R: Send + Sync + std::fmt::Debug + 'static,
15955{
15956 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
15957 match err {
15958 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15959 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15960 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15961 source: err.into(),
15962 }),
15963 }
15964 }
15965}
15966impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
15967 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
15968 match err {
15969 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15970 }
15971 }
15972}
15973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
15974where
15975 R: Send + Sync + std::fmt::Debug + 'static,
15976{
15977 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
15978 match err {
15979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15982 source: err.into(),
15983 }),
15984 }
15985 }
15986}
15987impl From<crate::operation::import_volume::ImportVolumeError> for Error {
15988 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
15989 match err {
15990 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
15991 }
15992 }
15993}
15994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
15995 for Error
15996where
15997 R: Send + Sync + std::fmt::Debug + 'static,
15998{
15999 fn from(
16000 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
16001 ) -> Self {
16002 match err {
16003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16006 source: err.into(),
16007 }),
16008 }
16009 }
16010}
16011impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
16012 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
16013 match err {
16014 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16015 }
16016 }
16017}
16018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
16019 for Error
16020where
16021 R: Send + Sync + std::fmt::Debug + 'static,
16022{
16023 fn from(
16024 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
16025 ) -> Self {
16026 match err {
16027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16030 source: err.into(),
16031 }),
16032 }
16033 }
16034}
16035impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
16036 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
16037 match err {
16038 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16039 }
16040 }
16041}
16042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>>
16043 for Error
16044where
16045 R: Send + Sync + std::fmt::Debug + 'static,
16046{
16047 fn from(
16048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError, R>,
16049 ) -> Self {
16050 match err {
16051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16054 source: err.into(),
16055 }),
16056 }
16057 }
16058}
16059impl From<crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError> for Error {
16060 fn from(err: crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError) -> Self {
16061 match err {
16062 crate::operation::list_volumes_in_recycle_bin::ListVolumesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
16063 }
16064 }
16065}
16066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
16067where
16068 R: Send + Sync + std::fmt::Debug + 'static,
16069{
16070 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
16071 match err {
16072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16075 source: err.into(),
16076 }),
16077 }
16078 }
16079}
16080impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
16081 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
16082 match err {
16083 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
16084 }
16085 }
16086}
16087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
16088where
16089 R: Send + Sync + std::fmt::Debug + 'static,
16090{
16091 fn from(
16092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
16093 ) -> Self {
16094 match err {
16095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16098 source: err.into(),
16099 }),
16100 }
16101 }
16102}
16103impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
16104 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
16105 match err {
16106 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16107 }
16108 }
16109}
16110impl<R>
16111 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
16112 for Error
16113where
16114 R: Send + Sync + std::fmt::Debug + 'static,
16115{
16116 fn from(
16117 err: ::aws_smithy_runtime_api::client::result::SdkError<
16118 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
16119 R,
16120 >,
16121 ) -> Self {
16122 match err {
16123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16126 source: err.into(),
16127 }),
16128 }
16129 }
16130}
16131impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
16132 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
16133 match err {
16134 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
16135 }
16136 }
16137}
16138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
16139 for Error
16140where
16141 R: Send + Sync + std::fmt::Debug + 'static,
16142{
16143 fn from(
16144 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
16145 ) -> Self {
16146 match err {
16147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16150 source: err.into(),
16151 }),
16152 }
16153 }
16154}
16155impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
16156 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
16157 match err {
16158 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
16159 }
16160 }
16161}
16162impl<R>
16163 From<
16164 ::aws_smithy_runtime_api::client::result::SdkError<
16165 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16166 R,
16167 >,
16168 > for Error
16169where
16170 R: Send + Sync + std::fmt::Debug + 'static,
16171{
16172 fn from(
16173 err: ::aws_smithy_runtime_api::client::result::SdkError<
16174 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
16175 R,
16176 >,
16177 ) -> Self {
16178 match err {
16179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16182 source: err.into(),
16183 }),
16184 }
16185 }
16186}
16187impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
16188 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
16189 match err {
16190 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
16191 }
16192 }
16193}
16194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
16195 for Error
16196where
16197 R: Send + Sync + std::fmt::Debug + 'static,
16198{
16199 fn from(
16200 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
16201 ) -> Self {
16202 match err {
16203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16206 source: err.into(),
16207 }),
16208 }
16209 }
16210}
16211impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
16212 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
16213 match err {
16214 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16215 }
16216 }
16217}
16218impl<R>
16219 From<
16220 ::aws_smithy_runtime_api::client::result::SdkError<
16221 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16222 R,
16223 >,
16224 > for Error
16225where
16226 R: Send + Sync + std::fmt::Debug + 'static,
16227{
16228 fn from(
16229 err: ::aws_smithy_runtime_api::client::result::SdkError<
16230 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
16231 R,
16232 >,
16233 ) -> Self {
16234 match err {
16235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16238 source: err.into(),
16239 }),
16240 }
16241 }
16242}
16243impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
16244 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
16245 match err {
16246 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
16247 }
16248 }
16249}
16250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
16251 for Error
16252where
16253 R: Send + Sync + std::fmt::Debug + 'static,
16254{
16255 fn from(
16256 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
16257 ) -> Self {
16258 match err {
16259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16262 source: err.into(),
16263 }),
16264 }
16265 }
16266}
16267impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
16268 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
16269 match err {
16270 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
16271 }
16272 }
16273}
16274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
16275where
16276 R: Send + Sync + std::fmt::Debug + 'static,
16277{
16278 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
16279 match err {
16280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16283 source: err.into(),
16284 }),
16285 }
16286 }
16287}
16288impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
16289 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
16290 match err {
16291 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
16292 }
16293 }
16294}
16295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
16296 for Error
16297where
16298 R: Send + Sync + std::fmt::Debug + 'static,
16299{
16300 fn from(
16301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
16302 ) -> Self {
16303 match err {
16304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16307 source: err.into(),
16308 }),
16309 }
16310 }
16311}
16312impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
16313 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
16314 match err {
16315 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16316 }
16317 }
16318}
16319impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
16320where
16321 R: Send + Sync + std::fmt::Debug + 'static,
16322{
16323 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
16324 match err {
16325 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16326 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16327 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16328 source: err.into(),
16329 }),
16330 }
16331 }
16332}
16333impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
16334 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
16335 match err {
16336 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
16337 }
16338 }
16339}
16340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
16341 for Error
16342where
16343 R: Send + Sync + std::fmt::Debug + 'static,
16344{
16345 fn from(
16346 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
16347 ) -> Self {
16348 match err {
16349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16352 source: err.into(),
16353 }),
16354 }
16355 }
16356}
16357impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
16358 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
16359 match err {
16360 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16361 }
16362 }
16363}
16364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
16365where
16366 R: Send + Sync + std::fmt::Debug + 'static,
16367{
16368 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
16369 match err {
16370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16373 source: err.into(),
16374 }),
16375 }
16376 }
16377}
16378impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
16379 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
16380 match err {
16381 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
16382 }
16383 }
16384}
16385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
16386where
16387 R: Send + Sync + std::fmt::Debug + 'static,
16388{
16389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
16390 match err {
16391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16394 source: err.into(),
16395 }),
16396 }
16397 }
16398}
16399impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
16400 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
16401 match err {
16402 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16403 }
16404 }
16405}
16406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
16407 for Error
16408where
16409 R: Send + Sync + std::fmt::Debug + 'static,
16410{
16411 fn from(
16412 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
16413 ) -> Self {
16414 match err {
16415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16418 source: err.into(),
16419 }),
16420 }
16421 }
16422}
16423impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
16424 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
16425 match err {
16426 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16427 }
16428 }
16429}
16430impl<R>
16431 From<
16432 ::aws_smithy_runtime_api::client::result::SdkError<
16433 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16434 R,
16435 >,
16436 > for Error
16437where
16438 R: Send + Sync + std::fmt::Debug + 'static,
16439{
16440 fn from(
16441 err: ::aws_smithy_runtime_api::client::result::SdkError<
16442 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
16443 R,
16444 >,
16445 ) -> Self {
16446 match err {
16447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16450 source: err.into(),
16451 }),
16452 }
16453 }
16454}
16455impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
16456 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
16457 match err {
16458 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
16459 Error::Unhandled(inner)
16460 }
16461 }
16462 }
16463}
16464impl<R>
16465 From<
16466 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
16467 > for Error
16468where
16469 R: Send + Sync + std::fmt::Debug + 'static,
16470{
16471 fn from(
16472 err: ::aws_smithy_runtime_api::client::result::SdkError<
16473 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
16474 R,
16475 >,
16476 ) -> Self {
16477 match err {
16478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16481 source: err.into(),
16482 }),
16483 }
16484 }
16485}
16486impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
16487 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
16488 match err {
16489 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16490 }
16491 }
16492}
16493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
16494 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_instance_cpu_options::ModifyInstanceCpuOptionsError, 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_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
16511 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
16512 match err {
16513 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16514 }
16515 }
16516}
16517impl<R>
16518 From<
16519 ::aws_smithy_runtime_api::client::result::SdkError<
16520 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16521 R,
16522 >,
16523 > for Error
16524where
16525 R: Send + Sync + std::fmt::Debug + 'static,
16526{
16527 fn from(
16528 err: ::aws_smithy_runtime_api::client::result::SdkError<
16529 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
16530 R,
16531 >,
16532 ) -> Self {
16533 match err {
16534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16537 source: err.into(),
16538 }),
16539 }
16540 }
16541}
16542impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
16543 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
16544 match err {
16545 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
16546 Error::Unhandled(inner)
16547 }
16548 }
16549 }
16550}
16551impl<R>
16552 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
16553 for Error
16554where
16555 R: Send + Sync + std::fmt::Debug + 'static,
16556{
16557 fn from(
16558 err: ::aws_smithy_runtime_api::client::result::SdkError<
16559 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
16560 R,
16561 >,
16562 ) -> Self {
16563 match err {
16564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16567 source: err.into(),
16568 }),
16569 }
16570 }
16571}
16572impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
16573 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
16574 match err {
16575 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
16576 }
16577 }
16578}
16579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
16580 for Error
16581where
16582 R: Send + Sync + std::fmt::Debug + 'static,
16583{
16584 fn from(
16585 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
16586 ) -> Self {
16587 match err {
16588 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16589 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16590 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16591 source: err.into(),
16592 }),
16593 }
16594 }
16595}
16596impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
16597 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
16598 match err {
16599 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
16600 }
16601 }
16602}
16603impl<R>
16604 From<
16605 ::aws_smithy_runtime_api::client::result::SdkError<
16606 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16607 R,
16608 >,
16609 > for Error
16610where
16611 R: Send + Sync + std::fmt::Debug + 'static,
16612{
16613 fn from(
16614 err: ::aws_smithy_runtime_api::client::result::SdkError<
16615 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
16616 R,
16617 >,
16618 ) -> Self {
16619 match err {
16620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16623 source: err.into(),
16624 }),
16625 }
16626 }
16627}
16628impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
16629 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
16630 match err {
16631 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16632 }
16633 }
16634}
16635impl<R>
16636 From<
16637 ::aws_smithy_runtime_api::client::result::SdkError<
16638 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16639 R,
16640 >,
16641 > for Error
16642where
16643 R: Send + Sync + std::fmt::Debug + 'static,
16644{
16645 fn from(
16646 err: ::aws_smithy_runtime_api::client::result::SdkError<
16647 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
16648 R,
16649 >,
16650 ) -> Self {
16651 match err {
16652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16655 source: err.into(),
16656 }),
16657 }
16658 }
16659}
16660impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
16661 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
16662 match err {
16663 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
16664 }
16665 }
16666}
16667impl<R>
16668 From<
16669 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
16670 > for Error
16671where
16672 R: Send + Sync + std::fmt::Debug + 'static,
16673{
16674 fn from(
16675 err: ::aws_smithy_runtime_api::client::result::SdkError<
16676 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
16677 R,
16678 >,
16679 ) -> Self {
16680 match err {
16681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16684 source: err.into(),
16685 }),
16686 }
16687 }
16688}
16689impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
16690 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
16691 match err {
16692 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16693 }
16694 }
16695}
16696impl<R>
16697 From<
16698 ::aws_smithy_runtime_api::client::result::SdkError<
16699 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
16700 R,
16701 >,
16702 > for Error
16703where
16704 R: Send + Sync + std::fmt::Debug + 'static,
16705{
16706 fn from(
16707 err: ::aws_smithy_runtime_api::client::result::SdkError<
16708 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
16709 R,
16710 >,
16711 ) -> Self {
16712 match err {
16713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16716 source: err.into(),
16717 }),
16718 }
16719 }
16720}
16721impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
16722 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
16723 match err {
16724 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
16725 Error::Unhandled(inner)
16726 }
16727 }
16728 }
16729}
16730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
16731 for Error
16732where
16733 R: Send + Sync + std::fmt::Debug + 'static,
16734{
16735 fn from(
16736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
16737 ) -> Self {
16738 match err {
16739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16742 source: err.into(),
16743 }),
16744 }
16745 }
16746}
16747impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
16748 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
16749 match err {
16750 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
16751 }
16752 }
16753}
16754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
16755where
16756 R: Send + Sync + std::fmt::Debug + 'static,
16757{
16758 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
16759 match err {
16760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16763 source: err.into(),
16764 }),
16765 }
16766 }
16767}
16768impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
16769 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
16770 match err {
16771 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
16772 }
16773 }
16774}
16775impl<R>
16776 From<
16777 ::aws_smithy_runtime_api::client::result::SdkError<
16778 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
16779 R,
16780 >,
16781 > for Error
16782where
16783 R: Send + Sync + std::fmt::Debug + 'static,
16784{
16785 fn from(
16786 err: ::aws_smithy_runtime_api::client::result::SdkError<
16787 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError,
16788 R,
16789 >,
16790 ) -> Self {
16791 match err {
16792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16795 source: err.into(),
16796 }),
16797 }
16798 }
16799}
16800impl From<crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError> for Error {
16801 fn from(err: crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError) -> Self {
16802 match err {
16803 crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError::Unhandled(inner) => Error::Unhandled(inner),
16804 }
16805 }
16806}
16807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
16808where
16809 R: Send + Sync + std::fmt::Debug + 'static,
16810{
16811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
16812 match err {
16813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16816 source: err.into(),
16817 }),
16818 }
16819 }
16820}
16821impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
16822 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
16823 match err {
16824 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
16825 }
16826 }
16827}
16828impl<R>
16829 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
16830 for Error
16831where
16832 R: Send + Sync + std::fmt::Debug + 'static,
16833{
16834 fn from(
16835 err: ::aws_smithy_runtime_api::client::result::SdkError<
16836 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
16837 R,
16838 >,
16839 ) -> Self {
16840 match err {
16841 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16842 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16843 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16844 source: err.into(),
16845 }),
16846 }
16847 }
16848}
16849impl From<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
16850 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
16851 match err {
16852 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
16853 }
16854 }
16855}
16856impl<R>
16857 From<
16858 ::aws_smithy_runtime_api::client::result::SdkError<
16859 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16860 R,
16861 >,
16862 > for Error
16863where
16864 R: Send + Sync + std::fmt::Debug + 'static,
16865{
16866 fn from(
16867 err: ::aws_smithy_runtime_api::client::result::SdkError<
16868 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16869 R,
16870 >,
16871 ) -> Self {
16872 match err {
16873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16876 source: err.into(),
16877 }),
16878 }
16879 }
16880}
16881impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
16882 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
16883 match err {
16884 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
16885 Error::Unhandled(inner)
16886 }
16887 }
16888 }
16889}
16890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
16891 for Error
16892where
16893 R: Send + Sync + std::fmt::Debug + 'static,
16894{
16895 fn from(
16896 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
16897 ) -> Self {
16898 match err {
16899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16902 source: err.into(),
16903 }),
16904 }
16905 }
16906}
16907impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
16908 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
16909 match err {
16910 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
16911 }
16912 }
16913}
16914impl<R>
16915 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
16916 for Error
16917where
16918 R: Send + Sync + std::fmt::Debug + 'static,
16919{
16920 fn from(
16921 err: ::aws_smithy_runtime_api::client::result::SdkError<
16922 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
16923 R,
16924 >,
16925 ) -> Self {
16926 match err {
16927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16930 source: err.into(),
16931 }),
16932 }
16933 }
16934}
16935impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
16936 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
16937 match err {
16938 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
16939 }
16940 }
16941}
16942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
16943where
16944 R: Send + Sync + std::fmt::Debug + 'static,
16945{
16946 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
16947 match err {
16948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16951 source: err.into(),
16952 }),
16953 }
16954 }
16955}
16956impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
16957 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
16958 match err {
16959 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
16960 }
16961 }
16962}
16963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
16964where
16965 R: Send + Sync + std::fmt::Debug + 'static,
16966{
16967 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
16968 match err {
16969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16972 source: err.into(),
16973 }),
16974 }
16975 }
16976}
16977impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
16978 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
16979 match err {
16980 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
16981 }
16982 }
16983}
16984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
16985 for Error
16986where
16987 R: Send + Sync + std::fmt::Debug + 'static,
16988{
16989 fn from(
16990 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
16991 ) -> Self {
16992 match err {
16993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16996 source: err.into(),
16997 }),
16998 }
16999 }
17000}
17001impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
17002 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
17003 match err {
17004 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
17005 }
17006 }
17007}
17008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
17009 for Error
17010where
17011 R: Send + Sync + std::fmt::Debug + 'static,
17012{
17013 fn from(
17014 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
17015 ) -> Self {
17016 match err {
17017 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17018 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17019 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17020 source: err.into(),
17021 }),
17022 }
17023 }
17024}
17025impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
17026 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
17027 match err {
17028 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
17029 }
17030 }
17031}
17032impl<R>
17033 From<
17034 ::aws_smithy_runtime_api::client::result::SdkError<
17035 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17036 R,
17037 >,
17038 > for Error
17039where
17040 R: Send + Sync + std::fmt::Debug + 'static,
17041{
17042 fn from(
17043 err: ::aws_smithy_runtime_api::client::result::SdkError<
17044 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
17045 R,
17046 >,
17047 ) -> Self {
17048 match err {
17049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17052 source: err.into(),
17053 }),
17054 }
17055 }
17056}
17057impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
17058 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
17059 match err {
17060 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17061 }
17062 }
17063}
17064impl<R>
17065 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
17066 for Error
17067where
17068 R: Send + Sync + std::fmt::Debug + 'static,
17069{
17070 fn from(
17071 err: ::aws_smithy_runtime_api::client::result::SdkError<
17072 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
17073 R,
17074 >,
17075 ) -> Self {
17076 match err {
17077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17080 source: err.into(),
17081 }),
17082 }
17083 }
17084}
17085impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
17086 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
17087 match err {
17088 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17089 }
17090 }
17091}
17092impl<R>
17093 From<
17094 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
17095 > for Error
17096where
17097 R: Send + Sync + std::fmt::Debug + 'static,
17098{
17099 fn from(
17100 err: ::aws_smithy_runtime_api::client::result::SdkError<
17101 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
17102 R,
17103 >,
17104 ) -> Self {
17105 match err {
17106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17109 source: err.into(),
17110 }),
17111 }
17112 }
17113}
17114impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
17115 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
17116 match err {
17117 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17118 }
17119 }
17120}
17121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
17122 for Error
17123where
17124 R: Send + Sync + std::fmt::Debug + 'static,
17125{
17126 fn from(
17127 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
17128 ) -> Self {
17129 match err {
17130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17133 source: err.into(),
17134 }),
17135 }
17136 }
17137}
17138impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
17139 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
17140 match err {
17141 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17142 }
17143 }
17144}
17145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
17146where
17147 R: Send + Sync + std::fmt::Debug + 'static,
17148{
17149 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
17150 match err {
17151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17154 source: err.into(),
17155 }),
17156 }
17157 }
17158}
17159impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
17160 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
17161 match err {
17162 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
17163 }
17164 }
17165}
17166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
17167 for Error
17168where
17169 R: Send + Sync + std::fmt::Debug + 'static,
17170{
17171 fn from(
17172 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
17173 ) -> Self {
17174 match err {
17175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17178 source: err.into(),
17179 }),
17180 }
17181 }
17182}
17183impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
17184 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
17185 match err {
17186 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
17187 }
17188 }
17189}
17190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
17191 for Error
17192where
17193 R: Send + Sync + std::fmt::Debug + 'static,
17194{
17195 fn from(
17196 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
17197 ) -> Self {
17198 match err {
17199 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17200 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17201 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17202 source: err.into(),
17203 }),
17204 }
17205 }
17206}
17207impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
17208 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
17209 match err {
17210 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17211 }
17212 }
17213}
17214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
17215where
17216 R: Send + Sync + std::fmt::Debug + 'static,
17217{
17218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
17219 match err {
17220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17223 source: err.into(),
17224 }),
17225 }
17226 }
17227}
17228impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
17229 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
17230 match err {
17231 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
17232 }
17233 }
17234}
17235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
17236 for Error
17237where
17238 R: Send + Sync + std::fmt::Debug + 'static,
17239{
17240 fn from(
17241 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
17242 ) -> Self {
17243 match err {
17244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17247 source: err.into(),
17248 }),
17249 }
17250 }
17251}
17252impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
17253 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
17254 match err {
17255 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
17256 }
17257 }
17258}
17259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
17260where
17261 R: Send + Sync + std::fmt::Debug + 'static,
17262{
17263 fn from(
17264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
17265 ) -> Self {
17266 match err {
17267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17270 source: err.into(),
17271 }),
17272 }
17273 }
17274}
17275impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
17276 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
17277 match err {
17278 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17279 }
17280 }
17281}
17282impl<R>
17283 From<
17284 ::aws_smithy_runtime_api::client::result::SdkError<
17285 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17286 R,
17287 >,
17288 > for Error
17289where
17290 R: Send + Sync + std::fmt::Debug + 'static,
17291{
17292 fn from(
17293 err: ::aws_smithy_runtime_api::client::result::SdkError<
17294 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
17295 R,
17296 >,
17297 ) -> Self {
17298 match err {
17299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17302 source: err.into(),
17303 }),
17304 }
17305 }
17306}
17307impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
17308 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
17309 match err {
17310 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
17311 Error::Unhandled(inner)
17312 }
17313 }
17314 }
17315}
17316impl<R>
17317 From<
17318 ::aws_smithy_runtime_api::client::result::SdkError<
17319 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17320 R,
17321 >,
17322 > for Error
17323where
17324 R: Send + Sync + std::fmt::Debug + 'static,
17325{
17326 fn from(
17327 err: ::aws_smithy_runtime_api::client::result::SdkError<
17328 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
17329 R,
17330 >,
17331 ) -> Self {
17332 match err {
17333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17336 source: err.into(),
17337 }),
17338 }
17339 }
17340}
17341impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
17342 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
17343 match err {
17344 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
17345 }
17346 }
17347}
17348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
17349 for Error
17350where
17351 R: Send + Sync + std::fmt::Debug + 'static,
17352{
17353 fn from(
17354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
17355 ) -> Self {
17356 match err {
17357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17360 source: err.into(),
17361 }),
17362 }
17363 }
17364}
17365impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
17366 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
17367 match err {
17368 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
17369 }
17370 }
17371}
17372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
17373where
17374 R: Send + Sync + std::fmt::Debug + 'static,
17375{
17376 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> Self {
17377 match err {
17378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17381 source: err.into(),
17382 }),
17383 }
17384 }
17385}
17386impl From<crate::operation::modify_transit_gateway::ModifyTransitGatewayError> for Error {
17387 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
17388 match err {
17389 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
17390 }
17391 }
17392}
17393impl<R>
17394 From<
17395 ::aws_smithy_runtime_api::client::result::SdkError<
17396 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17397 R,
17398 >,
17399 > for Error
17400where
17401 R: Send + Sync + std::fmt::Debug + 'static,
17402{
17403 fn from(
17404 err: ::aws_smithy_runtime_api::client::result::SdkError<
17405 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError,
17406 R,
17407 >,
17408 ) -> Self {
17409 match err {
17410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17413 source: err.into(),
17414 }),
17415 }
17416 }
17417}
17418impl From<crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError> for Error {
17419 fn from(err: crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError) -> Self {
17420 match err {
17421 crate::operation::modify_transit_gateway_metering_policy::ModifyTransitGatewayMeteringPolicyError::Unhandled(inner) => {
17422 Error::Unhandled(inner)
17423 }
17424 }
17425 }
17426}
17427impl<R>
17428 From<
17429 ::aws_smithy_runtime_api::client::result::SdkError<
17430 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17431 R,
17432 >,
17433 > for Error
17434where
17435 R: Send + Sync + std::fmt::Debug + 'static,
17436{
17437 fn from(
17438 err: ::aws_smithy_runtime_api::client::result::SdkError<
17439 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
17440 R,
17441 >,
17442 ) -> Self {
17443 match err {
17444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17447 source: err.into(),
17448 }),
17449 }
17450 }
17451}
17452impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
17453 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
17454 match err {
17455 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
17456 Error::Unhandled(inner)
17457 }
17458 }
17459 }
17460}
17461impl<R>
17462 From<
17463 ::aws_smithy_runtime_api::client::result::SdkError<
17464 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17465 R,
17466 >,
17467 > for Error
17468where
17469 R: Send + Sync + std::fmt::Debug + 'static,
17470{
17471 fn from(
17472 err: ::aws_smithy_runtime_api::client::result::SdkError<
17473 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
17474 R,
17475 >,
17476 ) -> Self {
17477 match err {
17478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17481 source: err.into(),
17482 }),
17483 }
17484 }
17485}
17486impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
17487 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
17488 match err {
17489 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17490 Error::Unhandled(inner)
17491 }
17492 }
17493 }
17494}
17495impl<R>
17496 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
17497 for Error
17498where
17499 R: Send + Sync + std::fmt::Debug + 'static,
17500{
17501 fn from(
17502 err: ::aws_smithy_runtime_api::client::result::SdkError<
17503 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
17504 R,
17505 >,
17506 ) -> Self {
17507 match err {
17508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17511 source: err.into(),
17512 }),
17513 }
17514 }
17515}
17516impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
17517 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
17518 match err {
17519 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17520 }
17521 }
17522}
17523impl<R>
17524 From<
17525 ::aws_smithy_runtime_api::client::result::SdkError<
17526 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17527 R,
17528 >,
17529 > for Error
17530where
17531 R: Send + Sync + std::fmt::Debug + 'static,
17532{
17533 fn from(
17534 err: ::aws_smithy_runtime_api::client::result::SdkError<
17535 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
17536 R,
17537 >,
17538 ) -> Self {
17539 match err {
17540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17543 source: err.into(),
17544 }),
17545 }
17546 }
17547}
17548impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
17549 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
17550 match err {
17551 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
17552 Error::Unhandled(inner)
17553 }
17554 }
17555 }
17556}
17557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
17558 for Error
17559where
17560 R: Send + Sync + std::fmt::Debug + 'static,
17561{
17562 fn from(
17563 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
17564 ) -> Self {
17565 match err {
17566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17569 source: err.into(),
17570 }),
17571 }
17572 }
17573}
17574impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
17575 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
17576 match err {
17577 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
17578 }
17579 }
17580}
17581impl<R>
17582 From<
17583 ::aws_smithy_runtime_api::client::result::SdkError<
17584 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17585 R,
17586 >,
17587 > for Error
17588where
17589 R: Send + Sync + std::fmt::Debug + 'static,
17590{
17591 fn from(
17592 err: ::aws_smithy_runtime_api::client::result::SdkError<
17593 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
17594 R,
17595 >,
17596 ) -> Self {
17597 match err {
17598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17601 source: err.into(),
17602 }),
17603 }
17604 }
17605}
17606impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
17607 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
17608 match err {
17609 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
17610 }
17611 }
17612}
17613impl<R>
17614 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
17615 for Error
17616where
17617 R: Send + Sync + std::fmt::Debug + 'static,
17618{
17619 fn from(
17620 err: ::aws_smithy_runtime_api::client::result::SdkError<
17621 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
17622 R,
17623 >,
17624 ) -> Self {
17625 match err {
17626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17629 source: err.into(),
17630 }),
17631 }
17632 }
17633}
17634impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
17635 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
17636 match err {
17637 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
17638 }
17639 }
17640}
17641impl<R>
17642 From<
17643 ::aws_smithy_runtime_api::client::result::SdkError<
17644 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17645 R,
17646 >,
17647 > for Error
17648where
17649 R: Send + Sync + std::fmt::Debug + 'static,
17650{
17651 fn from(
17652 err: ::aws_smithy_runtime_api::client::result::SdkError<
17653 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17654 R,
17655 >,
17656 ) -> Self {
17657 match err {
17658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17661 source: err.into(),
17662 }),
17663 }
17664 }
17665}
17666impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
17667 fn from(
17668 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
17669 ) -> Self {
17670 match err {
17671 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
17672 }
17673 }
17674}
17675impl<R>
17676 From<
17677 ::aws_smithy_runtime_api::client::result::SdkError<
17678 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
17679 R,
17680 >,
17681 > for Error
17682where
17683 R: Send + Sync + std::fmt::Debug + 'static,
17684{
17685 fn from(
17686 err: ::aws_smithy_runtime_api::client::result::SdkError<
17687 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
17688 R,
17689 >,
17690 ) -> Self {
17691 match err {
17692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17695 source: err.into(),
17696 }),
17697 }
17698 }
17699}
17700impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
17701 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
17702 match err {
17703 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
17704 Error::Unhandled(inner)
17705 }
17706 }
17707 }
17708}
17709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
17710where
17711 R: Send + Sync + std::fmt::Debug + 'static,
17712{
17713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> 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::modify_volume::ModifyVolumeError> for Error {
17724 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
17725 match err {
17726 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
17727 }
17728 }
17729}
17730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
17731where
17732 R: Send + Sync + std::fmt::Debug + 'static,
17733{
17734 fn from(
17735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
17736 ) -> Self {
17737 match err {
17738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17741 source: err.into(),
17742 }),
17743 }
17744 }
17745}
17746impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
17747 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
17748 match err {
17749 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17750 }
17751 }
17752}
17753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
17754where
17755 R: Send + Sync + std::fmt::Debug + 'static,
17756{
17757 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
17758 match err {
17759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17762 source: err.into(),
17763 }),
17764 }
17765 }
17766}
17767impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
17768 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
17769 match err {
17770 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
17771 }
17772 }
17773}
17774impl<R>
17775 From<
17776 ::aws_smithy_runtime_api::client::result::SdkError<
17777 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
17778 R,
17779 >,
17780 > for Error
17781where
17782 R: Send + Sync + std::fmt::Debug + 'static,
17783{
17784 fn from(
17785 err: ::aws_smithy_runtime_api::client::result::SdkError<
17786 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
17787 R,
17788 >,
17789 ) -> Self {
17790 match err {
17791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17794 source: err.into(),
17795 }),
17796 }
17797 }
17798}
17799impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
17800 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
17801 match err {
17802 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
17803 Error::Unhandled(inner)
17804 }
17805 }
17806 }
17807}
17808impl<R>
17809 From<
17810 ::aws_smithy_runtime_api::client::result::SdkError<
17811 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
17812 R,
17813 >,
17814 > for Error
17815where
17816 R: Send + Sync + std::fmt::Debug + 'static,
17817{
17818 fn from(
17819 err: ::aws_smithy_runtime_api::client::result::SdkError<
17820 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
17821 R,
17822 >,
17823 ) -> Self {
17824 match err {
17825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17828 source: err.into(),
17829 }),
17830 }
17831 }
17832}
17833impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
17834 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
17835 match err {
17836 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
17837 Error::Unhandled(inner)
17838 }
17839 }
17840 }
17841}
17842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>>
17843 for Error
17844where
17845 R: Send + Sync + std::fmt::Debug + 'static,
17846{
17847 fn from(
17848 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError, R>,
17849 ) -> Self {
17850 match err {
17851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17854 source: err.into(),
17855 }),
17856 }
17857 }
17858}
17859impl From<crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError> for Error {
17860 fn from(err: crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError) -> Self {
17861 match err {
17862 crate::operation::modify_vpc_encryption_control::ModifyVpcEncryptionControlError::Unhandled(inner) => Error::Unhandled(inner),
17863 }
17864 }
17865}
17866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
17867where
17868 R: Send + Sync + std::fmt::Debug + 'static,
17869{
17870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
17871 match err {
17872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17875 source: err.into(),
17876 }),
17877 }
17878 }
17879}
17880impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
17881 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
17882 match err {
17883 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17884 }
17885 }
17886}
17887impl<R>
17888 From<
17889 ::aws_smithy_runtime_api::client::result::SdkError<
17890 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17891 R,
17892 >,
17893 > for Error
17894where
17895 R: Send + Sync + std::fmt::Debug + 'static,
17896{
17897 fn from(
17898 err: ::aws_smithy_runtime_api::client::result::SdkError<
17899 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17900 R,
17901 >,
17902 ) -> Self {
17903 match err {
17904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17907 source: err.into(),
17908 }),
17909 }
17910 }
17911}
17912impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
17913 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
17914 match err {
17915 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
17916 Error::Unhandled(inner)
17917 }
17918 }
17919 }
17920}
17921impl<R>
17922 From<
17923 ::aws_smithy_runtime_api::client::result::SdkError<
17924 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17925 R,
17926 >,
17927 > for Error
17928where
17929 R: Send + Sync + std::fmt::Debug + 'static,
17930{
17931 fn from(
17932 err: ::aws_smithy_runtime_api::client::result::SdkError<
17933 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17934 R,
17935 >,
17936 ) -> Self {
17937 match err {
17938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17941 source: err.into(),
17942 }),
17943 }
17944 }
17945}
17946impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
17947 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
17948 match err {
17949 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
17950 Error::Unhandled(inner)
17951 }
17952 }
17953 }
17954}
17955impl<R>
17956 From<
17957 ::aws_smithy_runtime_api::client::result::SdkError<
17958 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17959 R,
17960 >,
17961 > for Error
17962where
17963 R: Send + Sync + std::fmt::Debug + 'static,
17964{
17965 fn from(
17966 err: ::aws_smithy_runtime_api::client::result::SdkError<
17967 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17968 R,
17969 >,
17970 ) -> Self {
17971 match err {
17972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17975 source: err.into(),
17976 }),
17977 }
17978 }
17979}
17980impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
17981 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
17982 match err {
17983 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
17984 inner,
17985 ) => Error::Unhandled(inner),
17986 }
17987 }
17988}
17989impl<R>
17990 From<
17991 ::aws_smithy_runtime_api::client::result::SdkError<
17992 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17993 R,
17994 >,
17995 > for Error
17996where
17997 R: Send + Sync + std::fmt::Debug + 'static,
17998{
17999 fn from(
18000 err: ::aws_smithy_runtime_api::client::result::SdkError<
18001 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
18002 R,
18003 >,
18004 ) -> Self {
18005 match err {
18006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18009 source: err.into(),
18010 }),
18011 }
18012 }
18013}
18014impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
18015 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
18016 match err {
18017 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
18018 Error::Unhandled(inner)
18019 }
18020 }
18021 }
18022}
18023impl<R>
18024 From<
18025 ::aws_smithy_runtime_api::client::result::SdkError<
18026 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18027 R,
18028 >,
18029 > for Error
18030where
18031 R: Send + Sync + std::fmt::Debug + 'static,
18032{
18033 fn from(
18034 err: ::aws_smithy_runtime_api::client::result::SdkError<
18035 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
18036 R,
18037 >,
18038 ) -> Self {
18039 match err {
18040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18043 source: err.into(),
18044 }),
18045 }
18046 }
18047}
18048impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
18049 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
18050 match err {
18051 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
18052 Error::Unhandled(inner)
18053 }
18054 }
18055 }
18056}
18057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
18058where
18059 R: Send + Sync + std::fmt::Debug + 'static,
18060{
18061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
18062 match err {
18063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18066 source: err.into(),
18067 }),
18068 }
18069 }
18070}
18071impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
18072 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
18073 match err {
18074 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
18075 }
18076 }
18077}
18078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
18079where
18080 R: Send + Sync + std::fmt::Debug + 'static,
18081{
18082 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
18083 match err {
18084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18087 source: err.into(),
18088 }),
18089 }
18090 }
18091}
18092impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
18093 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
18094 match err {
18095 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
18096 }
18097 }
18098}
18099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
18100 for Error
18101where
18102 R: Send + Sync + std::fmt::Debug + 'static,
18103{
18104 fn from(
18105 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
18106 ) -> Self {
18107 match err {
18108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18111 source: err.into(),
18112 }),
18113 }
18114 }
18115}
18116impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
18117 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
18118 match err {
18119 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18120 }
18121 }
18122}
18123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
18124 for Error
18125where
18126 R: Send + Sync + std::fmt::Debug + 'static,
18127{
18128 fn from(
18129 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
18130 ) -> Self {
18131 match err {
18132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18135 source: err.into(),
18136 }),
18137 }
18138 }
18139}
18140impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
18141 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
18142 match err {
18143 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
18144 }
18145 }
18146}
18147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
18148 for Error
18149where
18150 R: Send + Sync + std::fmt::Debug + 'static,
18151{
18152 fn from(
18153 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
18154 ) -> Self {
18155 match err {
18156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18159 source: err.into(),
18160 }),
18161 }
18162 }
18163}
18164impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
18165 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
18166 match err {
18167 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
18168 }
18169 }
18170}
18171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
18172where
18173 R: Send + Sync + std::fmt::Debug + 'static,
18174{
18175 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
18176 match err {
18177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18180 source: err.into(),
18181 }),
18182 }
18183 }
18184}
18185impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
18186 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
18187 match err {
18188 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18189 }
18190 }
18191}
18192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
18193where
18194 R: Send + Sync + std::fmt::Debug + 'static,
18195{
18196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
18197 match err {
18198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18201 source: err.into(),
18202 }),
18203 }
18204 }
18205}
18206impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
18207 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
18208 match err {
18209 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
18210 }
18211 }
18212}
18213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
18214where
18215 R: Send + Sync + std::fmt::Debug + 'static,
18216{
18217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
18218 match err {
18219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18222 source: err.into(),
18223 }),
18224 }
18225 }
18226}
18227impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
18228 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
18229 match err {
18230 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
18231 }
18232 }
18233}
18234impl<R>
18235 From<
18236 ::aws_smithy_runtime_api::client::result::SdkError<
18237 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18238 R,
18239 >,
18240 > for Error
18241where
18242 R: Send + Sync + std::fmt::Debug + 'static,
18243{
18244 fn from(
18245 err: ::aws_smithy_runtime_api::client::result::SdkError<
18246 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
18247 R,
18248 >,
18249 ) -> Self {
18250 match err {
18251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18254 source: err.into(),
18255 }),
18256 }
18257 }
18258}
18259impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
18260 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
18261 match err {
18262 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18263 }
18264 }
18265}
18266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
18267where
18268 R: Send + Sync + std::fmt::Debug + 'static,
18269{
18270 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
18271 match err {
18272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18275 source: err.into(),
18276 }),
18277 }
18278 }
18279}
18280impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
18281 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
18282 match err {
18283 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
18284 }
18285 }
18286}
18287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
18288where
18289 R: Send + Sync + std::fmt::Debug + 'static,
18290{
18291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
18292 match err {
18293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18296 source: err.into(),
18297 }),
18298 }
18299 }
18300}
18301impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
18302 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
18303 match err {
18304 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
18305 }
18306 }
18307}
18308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
18309where
18310 R: Send + Sync + std::fmt::Debug + 'static,
18311{
18312 fn from(
18313 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
18314 ) -> Self {
18315 match err {
18316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18319 source: err.into(),
18320 }),
18321 }
18322 }
18323}
18324impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
18325 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
18326 match err {
18327 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18328 }
18329 }
18330}
18331impl<R>
18332 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
18333 for Error
18334where
18335 R: Send + Sync + std::fmt::Debug + 'static,
18336{
18337 fn from(
18338 err: ::aws_smithy_runtime_api::client::result::SdkError<
18339 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
18340 R,
18341 >,
18342 ) -> Self {
18343 match err {
18344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18347 source: err.into(),
18348 }),
18349 }
18350 }
18351}
18352impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
18353 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
18354 match err {
18355 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
18356 }
18357 }
18358}
18359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
18360where
18361 R: Send + Sync + std::fmt::Debug + 'static,
18362{
18363 fn from(
18364 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
18365 ) -> Self {
18366 match err {
18367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18370 source: err.into(),
18371 }),
18372 }
18373 }
18374}
18375impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
18376 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
18377 match err {
18378 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
18379 }
18380 }
18381}
18382impl<R>
18383 From<
18384 ::aws_smithy_runtime_api::client::result::SdkError<
18385 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18386 R,
18387 >,
18388 > for Error
18389where
18390 R: Send + Sync + std::fmt::Debug + 'static,
18391{
18392 fn from(
18393 err: ::aws_smithy_runtime_api::client::result::SdkError<
18394 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
18395 R,
18396 >,
18397 ) -> Self {
18398 match err {
18399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18402 source: err.into(),
18403 }),
18404 }
18405 }
18406}
18407impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
18408 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
18409 match err {
18410 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
18411 }
18412 }
18413}
18414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
18415 for Error
18416where
18417 R: Send + Sync + std::fmt::Debug + 'static,
18418{
18419 fn from(
18420 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
18421 ) -> Self {
18422 match err {
18423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18426 source: err.into(),
18427 }),
18428 }
18429 }
18430}
18431impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
18432 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
18433 match err {
18434 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
18435 }
18436 }
18437}
18438impl<R>
18439 From<
18440 ::aws_smithy_runtime_api::client::result::SdkError<
18441 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18442 R,
18443 >,
18444 > for Error
18445where
18446 R: Send + Sync + std::fmt::Debug + 'static,
18447{
18448 fn from(
18449 err: ::aws_smithy_runtime_api::client::result::SdkError<
18450 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
18451 R,
18452 >,
18453 ) -> Self {
18454 match err {
18455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18458 source: err.into(),
18459 }),
18460 }
18461 }
18462}
18463impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
18464 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
18465 match err {
18466 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
18467 Error::Unhandled(inner)
18468 }
18469 }
18470 }
18471}
18472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
18473 for Error
18474where
18475 R: Send + Sync + std::fmt::Debug + 'static,
18476{
18477 fn from(
18478 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
18479 ) -> Self {
18480 match err {
18481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18484 source: err.into(),
18485 }),
18486 }
18487 }
18488}
18489impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
18490 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
18491 match err {
18492 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18493 }
18494 }
18495}
18496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
18497where
18498 R: Send + Sync + std::fmt::Debug + 'static,
18499{
18500 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
18501 match err {
18502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18505 source: err.into(),
18506 }),
18507 }
18508 }
18509}
18510impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
18511 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
18512 match err {
18513 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18514 }
18515 }
18516}
18517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
18518where
18519 R: Send + Sync + std::fmt::Debug + 'static,
18520{
18521 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
18522 match err {
18523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18526 source: err.into(),
18527 }),
18528 }
18529 }
18530}
18531impl From<crate::operation::register_image::RegisterImageError> for Error {
18532 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
18533 match err {
18534 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
18535 }
18536 }
18537}
18538impl<R>
18539 From<
18540 ::aws_smithy_runtime_api::client::result::SdkError<
18541 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18542 R,
18543 >,
18544 > for Error
18545where
18546 R: Send + Sync + std::fmt::Debug + 'static,
18547{
18548 fn from(
18549 err: ::aws_smithy_runtime_api::client::result::SdkError<
18550 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
18551 R,
18552 >,
18553 ) -> Self {
18554 match err {
18555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18558 source: err.into(),
18559 }),
18560 }
18561 }
18562}
18563impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
18564 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
18565 match err {
18566 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
18567 Error::Unhandled(inner)
18568 }
18569 }
18570 }
18571}
18572impl<R>
18573 From<
18574 ::aws_smithy_runtime_api::client::result::SdkError<
18575 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18576 R,
18577 >,
18578 > for Error
18579where
18580 R: Send + Sync + std::fmt::Debug + 'static,
18581{
18582 fn from(
18583 err: ::aws_smithy_runtime_api::client::result::SdkError<
18584 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
18585 R,
18586 >,
18587 ) -> Self {
18588 match err {
18589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18592 source: err.into(),
18593 }),
18594 }
18595 }
18596}
18597impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
18598 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
18599 match err {
18600 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
18601 inner,
18602 ) => Error::Unhandled(inner),
18603 }
18604 }
18605}
18606impl<R>
18607 From<
18608 ::aws_smithy_runtime_api::client::result::SdkError<
18609 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18610 R,
18611 >,
18612 > for Error
18613where
18614 R: Send + Sync + std::fmt::Debug + 'static,
18615{
18616 fn from(
18617 err: ::aws_smithy_runtime_api::client::result::SdkError<
18618 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
18619 R,
18620 >,
18621 ) -> Self {
18622 match err {
18623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18626 source: err.into(),
18627 }),
18628 }
18629 }
18630}
18631impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
18632 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
18633 match err {
18634 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
18635 inner,
18636 ) => Error::Unhandled(inner),
18637 }
18638 }
18639}
18640impl<R>
18641 From<
18642 ::aws_smithy_runtime_api::client::result::SdkError<
18643 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
18644 R,
18645 >,
18646 > for Error
18647where
18648 R: Send + Sync + std::fmt::Debug + 'static,
18649{
18650 fn from(
18651 err: ::aws_smithy_runtime_api::client::result::SdkError<
18652 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
18653 R,
18654 >,
18655 ) -> Self {
18656 match err {
18657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18660 source: err.into(),
18661 }),
18662 }
18663 }
18664}
18665impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
18666 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
18667 match err {
18668 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
18669 Error::Unhandled(inner)
18670 }
18671 }
18672 }
18673}
18674impl<R>
18675 From<
18676 ::aws_smithy_runtime_api::client::result::SdkError<
18677 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18678 R,
18679 >,
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<
18686 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18687 R,
18688 >,
18689 ) -> Self {
18690 match err {
18691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18694 source: err.into(),
18695 }),
18696 }
18697 }
18698}
18699impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
18700 fn from(
18701 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
18702 ) -> Self {
18703 match err {
18704 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
18705 }
18706 }
18707}
18708impl<R>
18709 From<
18710 ::aws_smithy_runtime_api::client::result::SdkError<
18711 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
18712 R,
18713 >,
18714 > for Error
18715where
18716 R: Send + Sync + std::fmt::Debug + 'static,
18717{
18718 fn from(
18719 err: ::aws_smithy_runtime_api::client::result::SdkError<
18720 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
18721 R,
18722 >,
18723 ) -> Self {
18724 match err {
18725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18728 source: err.into(),
18729 }),
18730 }
18731 }
18732}
18733impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
18734 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
18735 match err {
18736 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
18737 Error::Unhandled(inner)
18738 }
18739 }
18740 }
18741}
18742impl<R>
18743 From<
18744 ::aws_smithy_runtime_api::client::result::SdkError<
18745 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
18746 R,
18747 >,
18748 > for Error
18749where
18750 R: Send + Sync + std::fmt::Debug + 'static,
18751{
18752 fn from(
18753 err: ::aws_smithy_runtime_api::client::result::SdkError<
18754 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
18755 R,
18756 >,
18757 ) -> Self {
18758 match err {
18759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18762 source: err.into(),
18763 }),
18764 }
18765 }
18766}
18767impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
18768 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
18769 match err {
18770 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
18771 Error::Unhandled(inner)
18772 }
18773 }
18774 }
18775}
18776impl<R>
18777 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
18778 for Error
18779where
18780 R: Send + Sync + std::fmt::Debug + 'static,
18781{
18782 fn from(
18783 err: ::aws_smithy_runtime_api::client::result::SdkError<
18784 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
18785 R,
18786 >,
18787 ) -> Self {
18788 match err {
18789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18792 source: err.into(),
18793 }),
18794 }
18795 }
18796}
18797impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
18798 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
18799 match err {
18800 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
18801 }
18802 }
18803}
18804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
18805 for Error
18806where
18807 R: Send + Sync + std::fmt::Debug + 'static,
18808{
18809 fn from(
18810 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
18811 ) -> Self {
18812 match err {
18813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18816 source: err.into(),
18817 }),
18818 }
18819 }
18820}
18821impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
18822 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
18823 match err {
18824 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
18825 }
18826 }
18827}
18828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
18829where
18830 R: Send + Sync + std::fmt::Debug + 'static,
18831{
18832 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
18833 match err {
18834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18837 source: err.into(),
18838 }),
18839 }
18840 }
18841}
18842impl From<crate::operation::release_address::ReleaseAddressError> for Error {
18843 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
18844 match err {
18845 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
18846 }
18847 }
18848}
18849impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
18850where
18851 R: Send + Sync + std::fmt::Debug + 'static,
18852{
18853 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
18854 match err {
18855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18858 source: err.into(),
18859 }),
18860 }
18861 }
18862}
18863impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
18864 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
18865 match err {
18866 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
18867 }
18868 }
18869}
18870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
18871 for Error
18872where
18873 R: Send + Sync + std::fmt::Debug + 'static,
18874{
18875 fn from(
18876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
18877 ) -> Self {
18878 match err {
18879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18882 source: err.into(),
18883 }),
18884 }
18885 }
18886}
18887impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
18888 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
18889 match err {
18890 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
18891 }
18892 }
18893}
18894impl<R>
18895 From<
18896 ::aws_smithy_runtime_api::client::result::SdkError<
18897 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18898 R,
18899 >,
18900 > for Error
18901where
18902 R: Send + Sync + std::fmt::Debug + 'static,
18903{
18904 fn from(
18905 err: ::aws_smithy_runtime_api::client::result::SdkError<
18906 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18907 R,
18908 >,
18909 ) -> Self {
18910 match err {
18911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18914 source: err.into(),
18915 }),
18916 }
18917 }
18918}
18919impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
18920 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
18921 match err {
18922 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
18923 Error::Unhandled(inner)
18924 }
18925 }
18926 }
18927}
18928impl<R>
18929 From<
18930 ::aws_smithy_runtime_api::client::result::SdkError<
18931 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18932 R,
18933 >,
18934 > for Error
18935where
18936 R: Send + Sync + std::fmt::Debug + 'static,
18937{
18938 fn from(
18939 err: ::aws_smithy_runtime_api::client::result::SdkError<
18940 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18941 R,
18942 >,
18943 ) -> Self {
18944 match err {
18945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18948 source: err.into(),
18949 }),
18950 }
18951 }
18952}
18953impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
18954 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
18955 match err {
18956 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
18957 inner,
18958 ) => Error::Unhandled(inner),
18959 }
18960 }
18961}
18962impl<R>
18963 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
18964 for Error
18965where
18966 R: Send + Sync + std::fmt::Debug + 'static,
18967{
18968 fn from(
18969 err: ::aws_smithy_runtime_api::client::result::SdkError<
18970 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
18971 R,
18972 >,
18973 ) -> Self {
18974 match err {
18975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18978 source: err.into(),
18979 }),
18980 }
18981 }
18982}
18983impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
18984 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
18985 match err {
18986 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18987 }
18988 }
18989}
18990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
18991 for Error
18992where
18993 R: Send + Sync + std::fmt::Debug + 'static,
18994{
18995 fn from(
18996 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
18997 ) -> Self {
18998 match err {
18999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19002 source: err.into(),
19003 }),
19004 }
19005 }
19006}
19007impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
19008 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
19009 match err {
19010 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
19011 }
19012 }
19013}
19014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
19015where
19016 R: Send + Sync + std::fmt::Debug + 'static,
19017{
19018 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
19019 match err {
19020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19023 source: err.into(),
19024 }),
19025 }
19026 }
19027}
19028impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
19029 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
19030 match err {
19031 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
19032 }
19033 }
19034}
19035impl<R>
19036 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
19037 for Error
19038where
19039 R: Send + Sync + std::fmt::Debug + 'static,
19040{
19041 fn from(
19042 err: ::aws_smithy_runtime_api::client::result::SdkError<
19043 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
19044 R,
19045 >,
19046 ) -> Self {
19047 match err {
19048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19051 source: err.into(),
19052 }),
19053 }
19054 }
19055}
19056impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
19057 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
19058 match err {
19059 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
19060 }
19061 }
19062}
19063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
19064 for Error
19065where
19066 R: Send + Sync + std::fmt::Debug + 'static,
19067{
19068 fn from(
19069 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
19070 ) -> Self {
19071 match err {
19072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19075 source: err.into(),
19076 }),
19077 }
19078 }
19079}
19080impl From<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
19081 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
19082 match err {
19083 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
19084 }
19085 }
19086}
19087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
19088where
19089 R: Send + Sync + std::fmt::Debug + 'static,
19090{
19091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
19092 match err {
19093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19096 source: err.into(),
19097 }),
19098 }
19099 }
19100}
19101impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
19102 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
19103 match err {
19104 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
19105 }
19106 }
19107}
19108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
19109where
19110 R: Send + Sync + std::fmt::Debug + 'static,
19111{
19112 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
19113 match err {
19114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19117 source: err.into(),
19118 }),
19119 }
19120 }
19121}
19122impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
19123 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
19124 match err {
19125 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
19126 }
19127 }
19128}
19129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
19130where
19131 R: Send + Sync + std::fmt::Debug + 'static,
19132{
19133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> Self {
19134 match err {
19135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19138 source: err.into(),
19139 }),
19140 }
19141 }
19142}
19143impl From<crate::operation::request_spot_fleet::RequestSpotFleetError> for Error {
19144 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
19145 match err {
19146 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
19147 }
19148 }
19149}
19150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>> for Error
19151where
19152 R: Send + Sync + std::fmt::Debug + 'static,
19153{
19154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>) -> Self {
19155 match err {
19156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19159 source: err.into(),
19160 }),
19161 }
19162 }
19163}
19164impl From<crate::operation::request_spot_instances::RequestSpotInstancesError> for Error {
19165 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
19166 match err {
19167 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19168 }
19169 }
19170}
19171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
19172where
19173 R: Send + Sync + std::fmt::Debug + 'static,
19174{
19175 fn from(
19176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
19177 ) -> Self {
19178 match err {
19179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19182 source: err.into(),
19183 }),
19184 }
19185 }
19186}
19187impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
19188 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
19189 match err {
19190 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19191 }
19192 }
19193}
19194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
19195 for Error
19196where
19197 R: Send + Sync + std::fmt::Debug + 'static,
19198{
19199 fn from(
19200 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
19201 ) -> Self {
19202 match err {
19203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19206 source: err.into(),
19207 }),
19208 }
19209 }
19210}
19211impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
19212 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
19213 match err {
19214 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
19215 }
19216 }
19217}
19218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
19219 for Error
19220where
19221 R: Send + Sync + std::fmt::Debug + 'static,
19222{
19223 fn from(
19224 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
19225 ) -> Self {
19226 match err {
19227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19230 source: err.into(),
19231 }),
19232 }
19233 }
19234}
19235impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
19236 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
19237 match err {
19238 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19239 }
19240 }
19241}
19242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
19243where
19244 R: Send + Sync + std::fmt::Debug + 'static,
19245{
19246 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
19247 match err {
19248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19251 source: err.into(),
19252 }),
19253 }
19254 }
19255}
19256impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
19257 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
19258 match err {
19259 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19260 }
19261 }
19262}
19263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
19264where
19265 R: Send + Sync + std::fmt::Debug + 'static,
19266{
19267 fn from(
19268 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
19269 ) -> Self {
19270 match err {
19271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19274 source: err.into(),
19275 }),
19276 }
19277 }
19278}
19279impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
19280 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
19281 match err {
19282 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19283 }
19284 }
19285}
19286impl<R>
19287 From<
19288 ::aws_smithy_runtime_api::client::result::SdkError<
19289 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19290 R,
19291 >,
19292 > for Error
19293where
19294 R: Send + Sync + std::fmt::Debug + 'static,
19295{
19296 fn from(
19297 err: ::aws_smithy_runtime_api::client::result::SdkError<
19298 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
19299 R,
19300 >,
19301 ) -> Self {
19302 match err {
19303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19306 source: err.into(),
19307 }),
19308 }
19309 }
19310}
19311impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
19312 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
19313 match err {
19314 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19315 }
19316 }
19317}
19318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
19319where
19320 R: Send + Sync + std::fmt::Debug + 'static,
19321{
19322 fn from(
19323 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
19324 ) -> Self {
19325 match err {
19326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19329 source: err.into(),
19330 }),
19331 }
19332 }
19333}
19334impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
19335 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
19336 match err {
19337 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
19338 }
19339 }
19340}
19341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
19342 for Error
19343where
19344 R: Send + Sync + std::fmt::Debug + 'static,
19345{
19346 fn from(
19347 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
19348 ) -> Self {
19349 match err {
19350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19353 source: err.into(),
19354 }),
19355 }
19356 }
19357}
19358impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
19359 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
19360 match err {
19361 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
19362 }
19363 }
19364}
19365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
19366 for Error
19367where
19368 R: Send + Sync + std::fmt::Debug + 'static,
19369{
19370 fn from(
19371 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
19372 ) -> Self {
19373 match err {
19374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19377 source: err.into(),
19378 }),
19379 }
19380 }
19381}
19382impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
19383 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
19384 match err {
19385 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19386 }
19387 }
19388}
19389impl<R>
19390 From<
19391 ::aws_smithy_runtime_api::client::result::SdkError<
19392 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19393 R,
19394 >,
19395 > for Error
19396where
19397 R: Send + Sync + std::fmt::Debug + 'static,
19398{
19399 fn from(
19400 err: ::aws_smithy_runtime_api::client::result::SdkError<
19401 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
19402 R,
19403 >,
19404 ) -> Self {
19405 match err {
19406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19409 source: err.into(),
19410 }),
19411 }
19412 }
19413}
19414impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
19415 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
19416 match err {
19417 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
19418 }
19419 }
19420}
19421impl<R>
19422 From<
19423 ::aws_smithy_runtime_api::client::result::SdkError<
19424 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19425 R,
19426 >,
19427 > for Error
19428where
19429 R: Send + Sync + std::fmt::Debug + 'static,
19430{
19431 fn from(
19432 err: ::aws_smithy_runtime_api::client::result::SdkError<
19433 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
19434 R,
19435 >,
19436 ) -> Self {
19437 match err {
19438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19441 source: err.into(),
19442 }),
19443 }
19444 }
19445}
19446impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
19447 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
19448 match err {
19449 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19450 }
19451 }
19452}
19453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
19454where
19455 R: Send + Sync + std::fmt::Debug + 'static,
19456{
19457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
19458 match err {
19459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19462 source: err.into(),
19463 }),
19464 }
19465 }
19466}
19467impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
19468 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
19469 match err {
19470 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
19471 }
19472 }
19473}
19474impl<R>
19475 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError, R>>
19476 for Error
19477where
19478 R: Send + Sync + std::fmt::Debug + 'static,
19479{
19480 fn from(
19481 err: ::aws_smithy_runtime_api::client::result::SdkError<
19482 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError,
19483 R,
19484 >,
19485 ) -> Self {
19486 match err {
19487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19490 source: err.into(),
19491 }),
19492 }
19493 }
19494}
19495impl From<crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError> for Error {
19496 fn from(err: crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError) -> Self {
19497 match err {
19498 crate::operation::restore_volume_from_recycle_bin::RestoreVolumeFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
19499 }
19500 }
19501}
19502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
19503 for Error
19504where
19505 R: Send + Sync + std::fmt::Debug + 'static,
19506{
19507 fn from(
19508 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
19509 ) -> Self {
19510 match err {
19511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19514 source: err.into(),
19515 }),
19516 }
19517 }
19518}
19519impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
19520 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
19521 match err {
19522 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
19523 }
19524 }
19525}
19526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
19527 for Error
19528where
19529 R: Send + Sync + std::fmt::Debug + 'static,
19530{
19531 fn from(
19532 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
19533 ) -> Self {
19534 match err {
19535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19538 source: err.into(),
19539 }),
19540 }
19541 }
19542}
19543impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
19544 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
19545 match err {
19546 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
19547 }
19548 }
19549}
19550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
19551 for Error
19552where
19553 R: Send + Sync + std::fmt::Debug + 'static,
19554{
19555 fn from(
19556 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
19557 ) -> Self {
19558 match err {
19559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19562 source: err.into(),
19563 }),
19564 }
19565 }
19566}
19567impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
19568 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
19569 match err {
19570 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
19571 }
19572 }
19573}
19574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
19575where
19576 R: Send + Sync + std::fmt::Debug + 'static,
19577{
19578 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> Self {
19579 match err {
19580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19583 source: err.into(),
19584 }),
19585 }
19586 }
19587}
19588impl From<crate::operation::run_instances::RunInstancesError> for Error {
19589 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
19590 match err {
19591 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19592 }
19593 }
19594}
19595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
19596where
19597 R: Send + Sync + std::fmt::Debug + 'static,
19598{
19599 fn from(
19600 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
19601 ) -> Self {
19602 match err {
19603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19606 source: err.into(),
19607 }),
19608 }
19609 }
19610}
19611impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
19612 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
19613 match err {
19614 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19615 }
19616 }
19617}
19618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
19619 for Error
19620where
19621 R: Send + Sync + std::fmt::Debug + 'static,
19622{
19623 fn from(
19624 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
19625 ) -> Self {
19626 match err {
19627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19630 source: err.into(),
19631 }),
19632 }
19633 }
19634}
19635impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
19636 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
19637 match err {
19638 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
19639 }
19640 }
19641}
19642impl<R>
19643 From<
19644 ::aws_smithy_runtime_api::client::result::SdkError<
19645 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
19646 R,
19647 >,
19648 > for Error
19649where
19650 R: Send + Sync + std::fmt::Debug + 'static,
19651{
19652 fn from(
19653 err: ::aws_smithy_runtime_api::client::result::SdkError<
19654 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
19655 R,
19656 >,
19657 ) -> Self {
19658 match err {
19659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19662 source: err.into(),
19663 }),
19664 }
19665 }
19666}
19667impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
19668 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
19669 match err {
19670 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
19671 Error::Unhandled(inner)
19672 }
19673 }
19674 }
19675}
19676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
19677 for Error
19678where
19679 R: Send + Sync + std::fmt::Debug + 'static,
19680{
19681 fn from(
19682 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
19683 ) -> Self {
19684 match err {
19685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19688 source: err.into(),
19689 }),
19690 }
19691 }
19692}
19693impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
19694 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
19695 match err {
19696 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
19697 }
19698 }
19699}
19700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
19701 for Error
19702where
19703 R: Send + Sync + std::fmt::Debug + 'static,
19704{
19705 fn from(
19706 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
19707 ) -> Self {
19708 match err {
19709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19712 source: err.into(),
19713 }),
19714 }
19715 }
19716}
19717impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
19718 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
19719 match err {
19720 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
19721 }
19722 }
19723}
19724impl<R>
19725 From<
19726 ::aws_smithy_runtime_api::client::result::SdkError<
19727 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
19728 R,
19729 >,
19730 > for Error
19731where
19732 R: Send + Sync + std::fmt::Debug + 'static,
19733{
19734 fn from(
19735 err: ::aws_smithy_runtime_api::client::result::SdkError<
19736 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
19737 R,
19738 >,
19739 ) -> Self {
19740 match err {
19741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19744 source: err.into(),
19745 }),
19746 }
19747 }
19748}
19749impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
19750 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
19751 match err {
19752 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
19753 }
19754 }
19755}
19756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
19757where
19758 R: Send + Sync + std::fmt::Debug + 'static,
19759{
19760 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
19761 match err {
19762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19765 source: err.into(),
19766 }),
19767 }
19768 }
19769}
19770impl From<crate::operation::start_instances::StartInstancesError> for Error {
19771 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
19772 match err {
19773 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19774 }
19775 }
19776}
19777impl<R>
19778 From<
19779 ::aws_smithy_runtime_api::client::result::SdkError<
19780 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
19781 R,
19782 >,
19783 > for Error
19784where
19785 R: Send + Sync + std::fmt::Debug + 'static,
19786{
19787 fn from(
19788 err: ::aws_smithy_runtime_api::client::result::SdkError<
19789 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
19790 R,
19791 >,
19792 ) -> Self {
19793 match err {
19794 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19795 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19796 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19797 source: err.into(),
19798 }),
19799 }
19800 }
19801}
19802impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
19803 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
19804 match err {
19805 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
19806 Error::Unhandled(inner)
19807 }
19808 }
19809 }
19810}
19811impl<R>
19812 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
19813 for Error
19814where
19815 R: Send + Sync + std::fmt::Debug + 'static,
19816{
19817 fn from(
19818 err: ::aws_smithy_runtime_api::client::result::SdkError<
19819 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
19820 R,
19821 >,
19822 ) -> Self {
19823 match err {
19824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19827 source: err.into(),
19828 }),
19829 }
19830 }
19831}
19832impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
19833 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
19834 match err {
19835 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
19836 }
19837 }
19838}
19839impl<R>
19840 From<
19841 ::aws_smithy_runtime_api::client::result::SdkError<
19842 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
19843 R,
19844 >,
19845 > for Error
19846where
19847 R: Send + Sync + std::fmt::Debug + 'static,
19848{
19849 fn from(
19850 err: ::aws_smithy_runtime_api::client::result::SdkError<
19851 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
19852 R,
19853 >,
19854 ) -> Self {
19855 match err {
19856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19859 source: err.into(),
19860 }),
19861 }
19862 }
19863}
19864impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
19865 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
19866 match err {
19867 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
19868 inner,
19869 ) => Error::Unhandled(inner),
19870 }
19871 }
19872}
19873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
19874where
19875 R: Send + Sync + std::fmt::Debug + 'static,
19876{
19877 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
19878 match err {
19879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19882 source: err.into(),
19883 }),
19884 }
19885 }
19886}
19887impl From<crate::operation::stop_instances::StopInstancesError> for Error {
19888 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
19889 match err {
19890 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19891 }
19892 }
19893}
19894impl<R>
19895 From<
19896 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
19897 > for Error
19898where
19899 R: Send + Sync + std::fmt::Debug + 'static,
19900{
19901 fn from(
19902 err: ::aws_smithy_runtime_api::client::result::SdkError<
19903 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
19904 R,
19905 >,
19906 ) -> Self {
19907 match err {
19908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19911 source: err.into(),
19912 }),
19913 }
19914 }
19915}
19916impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
19917 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
19918 match err {
19919 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19920 }
19921 }
19922}
19923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
19924where
19925 R: Send + Sync + std::fmt::Debug + 'static,
19926{
19927 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> Self {
19928 match err {
19929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19932 source: err.into(),
19933 }),
19934 }
19935 }
19936}
19937impl From<crate::operation::terminate_instances::TerminateInstancesError> for Error {
19938 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
19939 match err {
19940 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19941 }
19942 }
19943}
19944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
19945where
19946 R: Send + Sync + std::fmt::Debug + 'static,
19947{
19948 fn from(
19949 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
19950 ) -> Self {
19951 match err {
19952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19955 source: err.into(),
19956 }),
19957 }
19958 }
19959}
19960impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
19961 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
19962 match err {
19963 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
19964 }
19965 }
19966}
19967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
19968 for Error
19969where
19970 R: Send + Sync + std::fmt::Debug + 'static,
19971{
19972 fn from(
19973 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
19974 ) -> Self {
19975 match err {
19976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19979 source: err.into(),
19980 }),
19981 }
19982 }
19983}
19984impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
19985 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
19986 match err {
19987 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
19988 }
19989 }
19990}
19991impl<R>
19992 From<
19993 ::aws_smithy_runtime_api::client::result::SdkError<
19994 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19995 R,
19996 >,
19997 > for Error
19998where
19999 R: Send + Sync + std::fmt::Debug + 'static,
20000{
20001 fn from(
20002 err: ::aws_smithy_runtime_api::client::result::SdkError<
20003 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
20004 R,
20005 >,
20006 ) -> Self {
20007 match err {
20008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20011 source: err.into(),
20012 }),
20013 }
20014 }
20015}
20016impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
20017 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
20018 match err {
20019 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
20020 Error::Unhandled(inner)
20021 }
20022 }
20023 }
20024}
20025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
20026where
20027 R: Send + Sync + std::fmt::Debug + 'static,
20028{
20029 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
20030 match err {
20031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20034 source: err.into(),
20035 }),
20036 }
20037 }
20038}
20039impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
20040 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
20041 match err {
20042 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
20043 }
20044 }
20045}
20046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
20047where
20048 R: Send + Sync + std::fmt::Debug + 'static,
20049{
20050 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
20051 match err {
20052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20055 source: err.into(),
20056 }),
20057 }
20058 }
20059}
20060impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
20061 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
20062 match err {
20063 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
20064 }
20065 }
20066}
20067impl<R>
20068 From<
20069 ::aws_smithy_runtime_api::client::result::SdkError<
20070 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20071 R,
20072 >,
20073 > for Error
20074where
20075 R: Send + Sync + std::fmt::Debug + 'static,
20076{
20077 fn from(
20078 err: ::aws_smithy_runtime_api::client::result::SdkError<
20079 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
20080 R,
20081 >,
20082 ) -> Self {
20083 match err {
20084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20087 source: err.into(),
20088 }),
20089 }
20090 }
20091}
20092impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
20093 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
20094 match err {
20095 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
20096 Error::Unhandled(inner)
20097 }
20098 }
20099 }
20100}
20101impl<R>
20102 From<
20103 ::aws_smithy_runtime_api::client::result::SdkError<
20104 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20105 R,
20106 >,
20107 > for Error
20108where
20109 R: Send + Sync + std::fmt::Debug + 'static,
20110{
20111 fn from(
20112 err: ::aws_smithy_runtime_api::client::result::SdkError<
20113 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20114 R,
20115 >,
20116 ) -> Self {
20117 match err {
20118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20121 source: err.into(),
20122 }),
20123 }
20124 }
20125}
20126impl From<crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError> for Error {
20127 fn from(
20128 err: crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError,
20129 ) -> Self {
20130 match err {
20131 crate::operation::update_interruptible_capacity_reservation_allocation::UpdateInterruptibleCapacityReservationAllocationError::Unhandled(inner) => Error::Unhandled(inner),
20132 }
20133 }
20134}
20135impl<R>
20136 From<
20137 ::aws_smithy_runtime_api::client::result::SdkError<
20138 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20139 R,
20140 >,
20141 > for Error
20142where
20143 R: Send + Sync + std::fmt::Debug + 'static,
20144{
20145 fn from(
20146 err: ::aws_smithy_runtime_api::client::result::SdkError<
20147 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
20148 R,
20149 >,
20150 ) -> Self {
20151 match err {
20152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20155 source: err.into(),
20156 }),
20157 }
20158 }
20159}
20160impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
20161 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
20162 match err {
20163 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
20164 Error::Unhandled(inner)
20165 }
20166 }
20167 }
20168}
20169impl<R>
20170 From<
20171 ::aws_smithy_runtime_api::client::result::SdkError<
20172 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20173 R,
20174 >,
20175 > for Error
20176where
20177 R: Send + Sync + std::fmt::Debug + 'static,
20178{
20179 fn from(
20180 err: ::aws_smithy_runtime_api::client::result::SdkError<
20181 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
20182 R,
20183 >,
20184 ) -> Self {
20185 match err {
20186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20189 source: err.into(),
20190 }),
20191 }
20192 }
20193}
20194impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
20195 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
20196 match err {
20197 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
20198 Error::Unhandled(inner)
20199 }
20200 }
20201 }
20202}
20203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
20204where
20205 R: Send + Sync + std::fmt::Debug + 'static,
20206{
20207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
20208 match err {
20209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
20210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
20212 source: err.into(),
20213 }),
20214 }
20215 }
20216}
20217impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
20218 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
20219 match err {
20220 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
20221 }
20222 }
20223}
20224impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
20225where
20226 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
20227 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
20228{
20229 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
20230 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
20231 meta: ::std::default::Default::default(),
20232 source: err.into(),
20233 })
20234 }
20235}
20236impl ::std::error::Error for Error {
20237 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
20238 match self {
20239 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
20240 }
20241 }
20242}
20243impl ::aws_types::request_id::RequestId for Error {
20244 fn request_id(&self) -> Option<&str> {
20245 match self {
20246 Self::Unhandled(e) => e.meta.request_id(),
20247 }
20248 }
20249}