1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
8 variable wildcard pattern and check `.code()`:
9 \
10 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
11 \
12 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
13 Unhandled(crate::error::sealed_unhandled::Unhandled),
14}
15impl ::std::fmt::Display for Error {
16 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
17 match self {
18 Error::Unhandled(_) => {
19 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
20 write!(f, "unhandled error ({code})")
21 } else {
22 f.write_str("unhandled error")
23 }
24 }
25 }
26 }
27}
28impl From<::aws_smithy_types::error::operation::BuildError> for Error {
29 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
30 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
31 source: value.into(),
32 meta: ::std::default::Default::default(),
33 })
34 }
35}
36impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
37 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
38 match self {
39 Self::Unhandled(inner) => &inner.meta,
40 }
41 }
42}
43impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_address_transfer::AcceptAddressTransferError, R>> for Error
44where
45 R: Send + Sync + std::fmt::Debug + 'static,
46{
47 fn from(
48 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_address_transfer::AcceptAddressTransferError, R>,
49 ) -> Self {
50 match err {
51 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
52 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
53 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
54 source: err.into(),
55 }),
56 }
57 }
58}
59impl From<crate::operation::accept_address_transfer::AcceptAddressTransferError> for Error {
60 fn from(err: crate::operation::accept_address_transfer::AcceptAddressTransferError) -> Self {
61 match err {
62 crate::operation::accept_address_transfer::AcceptAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
63 }
64 }
65}
66impl<R>
67 From<
68 ::aws_smithy_runtime_api::client::result::SdkError<
69 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError,
70 R,
71 >,
72 > for Error
73where
74 R: Send + Sync + std::fmt::Debug + 'static,
75{
76 fn from(
77 err: ::aws_smithy_runtime_api::client::result::SdkError<
78 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError,
79 R,
80 >,
81 ) -> Self {
82 match err {
83 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
84 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
85 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
86 source: err.into(),
87 }),
88 }
89 }
90}
91impl From<crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError> for Error {
92 fn from(err: crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError) -> Self {
93 match err {
94 crate::operation::accept_capacity_reservation_billing_ownership::AcceptCapacityReservationBillingOwnershipError::Unhandled(inner) => {
95 Error::Unhandled(inner)
96 }
97 }
98 }
99}
100impl<R>
101 From<
102 ::aws_smithy_runtime_api::client::result::SdkError<
103 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError,
104 R,
105 >,
106 > for Error
107where
108 R: Send + Sync + std::fmt::Debug + 'static,
109{
110 fn from(
111 err: ::aws_smithy_runtime_api::client::result::SdkError<
112 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError,
113 R,
114 >,
115 ) -> Self {
116 match err {
117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
120 source: err.into(),
121 }),
122 }
123 }
124}
125impl From<crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError> for Error {
126 fn from(err: crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError) -> Self {
127 match err {
128 crate::operation::accept_reserved_instances_exchange_quote::AcceptReservedInstancesExchangeQuoteError::Unhandled(inner) => {
129 Error::Unhandled(inner)
130 }
131 }
132 }
133}
134impl<R>
135 From<
136 ::aws_smithy_runtime_api::client::result::SdkError<
137 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
138 R,
139 >,
140 > for Error
141where
142 R: Send + Sync + std::fmt::Debug + 'static,
143{
144 fn from(
145 err: ::aws_smithy_runtime_api::client::result::SdkError<
146 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
147 R,
148 >,
149 ) -> Self {
150 match err {
151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
154 source: err.into(),
155 }),
156 }
157 }
158}
159impl From<crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError> for Error {
160 fn from(
161 err: crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError,
162 ) -> Self {
163 match err {
164 crate::operation::accept_transit_gateway_multicast_domain_associations::AcceptTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
165 }
166 }
167}
168impl<R>
169 From<
170 ::aws_smithy_runtime_api::client::result::SdkError<
171 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
172 R,
173 >,
174 > for Error
175where
176 R: Send + Sync + std::fmt::Debug + 'static,
177{
178 fn from(
179 err: ::aws_smithy_runtime_api::client::result::SdkError<
180 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError,
181 R,
182 >,
183 ) -> Self {
184 match err {
185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188 source: err.into(),
189 }),
190 }
191 }
192}
193impl From<crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError> for Error {
194 fn from(err: crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError) -> Self {
195 match err {
196 crate::operation::accept_transit_gateway_peering_attachment::AcceptTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
197 Error::Unhandled(inner)
198 }
199 }
200 }
201}
202impl<R>
203 From<
204 ::aws_smithy_runtime_api::client::result::SdkError<
205 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
206 R,
207 >,
208 > for Error
209where
210 R: Send + Sync + std::fmt::Debug + 'static,
211{
212 fn from(
213 err: ::aws_smithy_runtime_api::client::result::SdkError<
214 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError,
215 R,
216 >,
217 ) -> Self {
218 match err {
219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
222 source: err.into(),
223 }),
224 }
225 }
226}
227impl From<crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError> for Error {
228 fn from(err: crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError) -> Self {
229 match err {
230 crate::operation::accept_transit_gateway_vpc_attachment::AcceptTransitGatewayVpcAttachmentError::Unhandled(inner) => {
231 Error::Unhandled(inner)
232 }
233 }
234 }
235}
236impl<R>
237 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError, R>>
238 for Error
239where
240 R: Send + Sync + std::fmt::Debug + 'static,
241{
242 fn from(
243 err: ::aws_smithy_runtime_api::client::result::SdkError<
244 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError,
245 R,
246 >,
247 ) -> Self {
248 match err {
249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
252 source: err.into(),
253 }),
254 }
255 }
256}
257impl From<crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError> for Error {
258 fn from(err: crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError) -> Self {
259 match err {
260 crate::operation::accept_vpc_endpoint_connections::AcceptVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
261 }
262 }
263}
264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>>
265 for Error
266where
267 R: Send + Sync + std::fmt::Debug + 'static,
268{
269 fn from(
270 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError, R>,
271 ) -> Self {
272 match err {
273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
276 source: err.into(),
277 }),
278 }
279 }
280}
281impl From<crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError> for Error {
282 fn from(err: crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError) -> Self {
283 match err {
284 crate::operation::accept_vpc_peering_connection::AcceptVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
285 }
286 }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>> for Error
289where
290 R: Send + Sync + std::fmt::Debug + 'static,
291{
292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>) -> Self {
293 match err {
294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297 source: err.into(),
298 }),
299 }
300 }
301}
302impl From<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError> for Error {
303 fn from(err: crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError) -> Self {
304 match err {
305 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
306 }
307 }
308}
309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>> for Error
310where
311 R: Send + Sync + std::fmt::Debug + 'static,
312{
313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_address::AllocateAddressError, R>) -> Self {
314 match err {
315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318 source: err.into(),
319 }),
320 }
321 }
322}
323impl From<crate::operation::allocate_address::AllocateAddressError> for Error {
324 fn from(err: crate::operation::allocate_address::AllocateAddressError) -> Self {
325 match err {
326 crate::operation::allocate_address::AllocateAddressError::Unhandled(inner) => Error::Unhandled(inner),
327 }
328 }
329}
330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>> for Error
331where
332 R: Send + Sync + std::fmt::Debug + 'static,
333{
334 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosts::AllocateHostsError, R>) -> Self {
335 match err {
336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
339 source: err.into(),
340 }),
341 }
342 }
343}
344impl From<crate::operation::allocate_hosts::AllocateHostsError> for Error {
345 fn from(err: crate::operation::allocate_hosts::AllocateHostsError) -> Self {
346 match err {
347 crate::operation::allocate_hosts::AllocateHostsError::Unhandled(inner) => Error::Unhandled(inner),
348 }
349 }
350}
351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>> for Error
352where
353 R: Send + Sync + std::fmt::Debug + 'static,
354{
355 fn from(
356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError, R>,
357 ) -> Self {
358 match err {
359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
362 source: err.into(),
363 }),
364 }
365 }
366}
367impl From<crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError> for Error {
368 fn from(err: crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError) -> Self {
369 match err {
370 crate::operation::allocate_ipam_pool_cidr::AllocateIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
371 }
372 }
373}
374impl<R>
375 From<
376 ::aws_smithy_runtime_api::client::result::SdkError<
377 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
378 R,
379 >,
380 > for Error
381where
382 R: Send + Sync + std::fmt::Debug + 'static,
383{
384 fn from(
385 err: ::aws_smithy_runtime_api::client::result::SdkError<
386 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError,
387 R,
388 >,
389 ) -> Self {
390 match err {
391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394 source: err.into(),
395 }),
396 }
397 }
398}
399impl From<crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError> for Error {
400 fn from(err: crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError) -> Self {
401 match err {
402 crate::operation::apply_security_groups_to_client_vpn_target_network::ApplySecurityGroupsToClientVpnTargetNetworkError::Unhandled(
403 inner,
404 ) => Error::Unhandled(inner),
405 }
406 }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>> for Error
409where
410 R: Send + Sync + std::fmt::Debug + 'static,
411{
412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError, R>) -> Self {
413 match err {
414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
417 source: err.into(),
418 }),
419 }
420 }
421}
422impl From<crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError> for Error {
423 fn from(err: crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError) -> Self {
424 match err {
425 crate::operation::assign_ipv6_addresses::AssignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
426 }
427 }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>>
430 for Error
431where
432 R: Send + Sync + std::fmt::Debug + 'static,
433{
434 fn from(
435 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError, R>,
436 ) -> Self {
437 match err {
438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441 source: err.into(),
442 }),
443 }
444 }
445}
446impl From<crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError> for Error {
447 fn from(err: crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError) -> Self {
448 match err {
449 crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
450 }
451 }
452}
453impl<R>
454 From<
455 ::aws_smithy_runtime_api::client::result::SdkError<
456 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
457 R,
458 >,
459 > for Error
460where
461 R: Send + Sync + std::fmt::Debug + 'static,
462{
463 fn from(
464 err: ::aws_smithy_runtime_api::client::result::SdkError<
465 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError,
466 R,
467 >,
468 ) -> Self {
469 match err {
470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473 source: err.into(),
474 }),
475 }
476 }
477}
478impl From<crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError> for Error {
479 fn from(err: crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError) -> Self {
480 match err {
481 crate::operation::assign_private_nat_gateway_address::AssignPrivateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
482 }
483 }
484}
485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>> for Error
486where
487 R: Send + Sync + std::fmt::Debug + 'static,
488{
489 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_address::AssociateAddressError, R>) -> Self {
490 match err {
491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
494 source: err.into(),
495 }),
496 }
497 }
498}
499impl From<crate::operation::associate_address::AssociateAddressError> for Error {
500 fn from(err: crate::operation::associate_address::AssociateAddressError) -> Self {
501 match err {
502 crate::operation::associate_address::AssociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
503 }
504 }
505}
506impl<R>
507 From<
508 ::aws_smithy_runtime_api::client::result::SdkError<
509 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
510 R,
511 >,
512 > for Error
513where
514 R: Send + Sync + std::fmt::Debug + 'static,
515{
516 fn from(
517 err: ::aws_smithy_runtime_api::client::result::SdkError<
518 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError,
519 R,
520 >,
521 ) -> Self {
522 match err {
523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
526 source: err.into(),
527 }),
528 }
529 }
530}
531impl From<crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError> for Error {
532 fn from(err: crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError) -> Self {
533 match err {
534 crate::operation::associate_capacity_reservation_billing_owner::AssociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
535 Error::Unhandled(inner)
536 }
537 }
538 }
539}
540impl<R>
541 From<
542 ::aws_smithy_runtime_api::client::result::SdkError<
543 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
544 R,
545 >,
546 > for Error
547where
548 R: Send + Sync + std::fmt::Debug + 'static,
549{
550 fn from(
551 err: ::aws_smithy_runtime_api::client::result::SdkError<
552 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError,
553 R,
554 >,
555 ) -> Self {
556 match err {
557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
560 source: err.into(),
561 }),
562 }
563 }
564}
565impl From<crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError> for Error {
566 fn from(err: crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError) -> Self {
567 match err {
568 crate::operation::associate_client_vpn_target_network::AssociateClientVpnTargetNetworkError::Unhandled(inner) => Error::Unhandled(inner),
569 }
570 }
571}
572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError, R>> for Error
573where
574 R: Send + Sync + std::fmt::Debug + 'static,
575{
576 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError, R>) -> Self {
577 match err {
578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581 source: err.into(),
582 }),
583 }
584 }
585}
586impl From<crate::operation::associate_dhcp_options::AssociateDhcpOptionsError> for Error {
587 fn from(err: crate::operation::associate_dhcp_options::AssociateDhcpOptionsError) -> Self {
588 match err {
589 crate::operation::associate_dhcp_options::AssociateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R>
594 From<
595 ::aws_smithy_runtime_api::client::result::SdkError<
596 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
597 R,
598 >,
599 > for Error
600where
601 R: Send + Sync + std::fmt::Debug + 'static,
602{
603 fn from(
604 err: ::aws_smithy_runtime_api::client::result::SdkError<
605 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
606 R,
607 >,
608 ) -> Self {
609 match err {
610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613 source: err.into(),
614 }),
615 }
616 }
617}
618impl From<crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError> for Error {
619 fn from(err: crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError) -> Self {
620 match err {
621 crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
622 Error::Unhandled(inner)
623 }
624 }
625 }
626}
627impl<R>
628 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError, R>>
629 for Error
630where
631 R: Send + Sync + std::fmt::Debug + 'static,
632{
633 fn from(
634 err: ::aws_smithy_runtime_api::client::result::SdkError<
635 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError,
636 R,
637 >,
638 ) -> Self {
639 match err {
640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643 source: err.into(),
644 }),
645 }
646 }
647}
648impl From<crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError> for Error {
649 fn from(err: crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError) -> Self {
650 match err {
651 crate::operation::associate_iam_instance_profile::AssociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
652 }
653 }
654}
655impl<R>
656 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError, R>>
657 for Error
658where
659 R: Send + Sync + std::fmt::Debug + 'static,
660{
661 fn from(
662 err: ::aws_smithy_runtime_api::client::result::SdkError<
663 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError,
664 R,
665 >,
666 ) -> Self {
667 match err {
668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671 source: err.into(),
672 }),
673 }
674 }
675}
676impl From<crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError> for Error {
677 fn from(err: crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError) -> Self {
678 match err {
679 crate::operation::associate_instance_event_window::AssociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
680 }
681 }
682}
683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>> for Error
684where
685 R: Send + Sync + std::fmt::Debug + 'static,
686{
687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError, R>) -> Self {
688 match err {
689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
692 source: err.into(),
693 }),
694 }
695 }
696}
697impl From<crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError> for Error {
698 fn from(err: crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError) -> Self {
699 match err {
700 crate::operation::associate_ipam_byoasn::AssociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
701 }
702 }
703}
704impl<R>
705 From<
706 ::aws_smithy_runtime_api::client::result::SdkError<
707 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
708 R,
709 >,
710 > for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(
715 err: ::aws_smithy_runtime_api::client::result::SdkError<
716 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError,
717 R,
718 >,
719 ) -> Self {
720 match err {
721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724 source: err.into(),
725 }),
726 }
727 }
728}
729impl From<crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError> for Error {
730 fn from(err: crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError) -> Self {
731 match err {
732 crate::operation::associate_ipam_resource_discovery::AssociateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
733 }
734 }
735}
736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>>
737 for Error
738where
739 R: Send + Sync + std::fmt::Debug + 'static,
740{
741 fn from(
742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError, R>,
743 ) -> Self {
744 match err {
745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748 source: err.into(),
749 }),
750 }
751 }
752}
753impl From<crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError> for Error {
754 fn from(err: crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError) -> Self {
755 match err {
756 crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
757 }
758 }
759}
760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>> for Error
761where
762 R: Send + Sync + std::fmt::Debug + 'static,
763{
764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_server::AssociateRouteServerError, R>) -> Self {
765 match err {
766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
769 source: err.into(),
770 }),
771 }
772 }
773}
774impl From<crate::operation::associate_route_server::AssociateRouteServerError> for Error {
775 fn from(err: crate::operation::associate_route_server::AssociateRouteServerError) -> Self {
776 match err {
777 crate::operation::associate_route_server::AssociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
778 }
779 }
780}
781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>> for Error
782where
783 R: Send + Sync + std::fmt::Debug + 'static,
784{
785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_route_table::AssociateRouteTableError, R>) -> Self {
786 match err {
787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
790 source: err.into(),
791 }),
792 }
793 }
794}
795impl From<crate::operation::associate_route_table::AssociateRouteTableError> for Error {
796 fn from(err: crate::operation::associate_route_table::AssociateRouteTableError) -> Self {
797 match err {
798 crate::operation::associate_route_table::AssociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
799 }
800 }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>>
803 for Error
804where
805 R: Send + Sync + std::fmt::Debug + 'static,
806{
807 fn from(
808 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError, R>,
809 ) -> Self {
810 match err {
811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814 source: err.into(),
815 }),
816 }
817 }
818}
819impl From<crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError> for Error {
820 fn from(err: crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError) -> Self {
821 match err {
822 crate::operation::associate_security_group_vpc::AssociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
823 }
824 }
825}
826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>>
827 for Error
828where
829 R: Send + Sync + std::fmt::Debug + 'static,
830{
831 fn from(
832 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError, R>,
833 ) -> Self {
834 match err {
835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838 source: err.into(),
839 }),
840 }
841 }
842}
843impl From<crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError> for Error {
844 fn from(err: crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError) -> Self {
845 match err {
846 crate::operation::associate_subnet_cidr_block::AssociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
847 }
848 }
849}
850impl<R>
851 From<
852 ::aws_smithy_runtime_api::client::result::SdkError<
853 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
854 R,
855 >,
856 > for Error
857where
858 R: Send + Sync + std::fmt::Debug + 'static,
859{
860 fn from(
861 err: ::aws_smithy_runtime_api::client::result::SdkError<
862 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError,
863 R,
864 >,
865 ) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError> for Error {
876 fn from(err: crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError) -> Self {
877 match err {
878 crate::operation::associate_transit_gateway_multicast_domain::AssociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
879 Error::Unhandled(inner)
880 }
881 }
882 }
883}
884impl<R>
885 From<
886 ::aws_smithy_runtime_api::client::result::SdkError<
887 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError,
888 R,
889 >,
890 > for Error
891where
892 R: Send + Sync + std::fmt::Debug + 'static,
893{
894 fn from(
895 err: ::aws_smithy_runtime_api::client::result::SdkError<
896 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError,
897 R,
898 >,
899 ) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError> for Error {
910 fn from(err: crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError) -> Self {
911 match err {
912 crate::operation::associate_transit_gateway_policy_table::AssociateTransitGatewayPolicyTableError::Unhandled(inner) => {
913 Error::Unhandled(inner)
914 }
915 }
916 }
917}
918impl<R>
919 From<
920 ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError,
922 R,
923 >,
924 > for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<
930 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError,
931 R,
932 >,
933 ) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError> for Error {
944 fn from(err: crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError) -> Self {
945 match err {
946 crate::operation::associate_transit_gateway_route_table::AssociateTransitGatewayRouteTableError::Unhandled(inner) => {
947 Error::Unhandled(inner)
948 }
949 }
950 }
951}
952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>>
953 for Error
954where
955 R: Send + Sync + std::fmt::Debug + 'static,
956{
957 fn from(
958 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError, R>,
959 ) -> Self {
960 match err {
961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964 source: err.into(),
965 }),
966 }
967 }
968}
969impl From<crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError> for Error {
970 fn from(err: crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError) -> Self {
971 match err {
972 crate::operation::associate_trunk_interface::AssociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
973 }
974 }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>> for Error
977where
978 R: Send + Sync + std::fmt::Debug + 'static,
979{
980 fn from(
981 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError, R>,
982 ) -> Self {
983 match err {
984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987 source: err.into(),
988 }),
989 }
990 }
991}
992impl From<crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError> for Error {
993 fn from(err: crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError) -> Self {
994 match err {
995 crate::operation::associate_vpc_cidr_block::AssociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>> for Error
1000where
1001 R: Send + Sync + std::fmt::Debug + 'static,
1002{
1003 fn from(
1004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError, R>,
1005 ) -> Self {
1006 match err {
1007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1010 source: err.into(),
1011 }),
1012 }
1013 }
1014}
1015impl From<crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError> for Error {
1016 fn from(err: crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError) -> Self {
1017 match err {
1018 crate::operation::attach_classic_link_vpc::AttachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>> for Error
1023where
1024 R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026 fn from(
1027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_internet_gateway::AttachInternetGatewayError, R>,
1028 ) -> Self {
1029 match err {
1030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1033 source: err.into(),
1034 }),
1035 }
1036 }
1037}
1038impl From<crate::operation::attach_internet_gateway::AttachInternetGatewayError> for Error {
1039 fn from(err: crate::operation::attach_internet_gateway::AttachInternetGatewayError) -> Self {
1040 match err {
1041 crate::operation::attach_internet_gateway::AttachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1042 }
1043 }
1044}
1045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>> for Error
1046where
1047 R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049 fn from(
1050 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_network_interface::AttachNetworkInterfaceError, R>,
1051 ) -> Self {
1052 match err {
1053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1056 source: err.into(),
1057 }),
1058 }
1059 }
1060}
1061impl From<crate::operation::attach_network_interface::AttachNetworkInterfaceError> for Error {
1062 fn from(err: crate::operation::attach_network_interface::AttachNetworkInterfaceError) -> Self {
1063 match err {
1064 crate::operation::attach_network_interface::AttachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
1065 }
1066 }
1067}
1068impl<R>
1069 From<
1070 ::aws_smithy_runtime_api::client::result::SdkError<
1071 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1072 R,
1073 >,
1074 > for Error
1075where
1076 R: Send + Sync + std::fmt::Debug + 'static,
1077{
1078 fn from(
1079 err: ::aws_smithy_runtime_api::client::result::SdkError<
1080 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
1081 R,
1082 >,
1083 ) -> Self {
1084 match err {
1085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1088 source: err.into(),
1089 }),
1090 }
1091 }
1092}
1093impl From<crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError> for Error {
1094 fn from(err: crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError) -> Self {
1095 match err {
1096 crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError::Unhandled(inner) => {
1097 Error::Unhandled(inner)
1098 }
1099 }
1100 }
1101}
1102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>> for Error
1103where
1104 R: Send + Sync + std::fmt::Debug + 'static,
1105{
1106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_volume::AttachVolumeError, R>) -> Self {
1107 match err {
1108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1111 source: err.into(),
1112 }),
1113 }
1114 }
1115}
1116impl From<crate::operation::attach_volume::AttachVolumeError> for Error {
1117 fn from(err: crate::operation::attach_volume::AttachVolumeError) -> Self {
1118 match err {
1119 crate::operation::attach_volume::AttachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
1120 }
1121 }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>> for Error
1124where
1125 R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_vpn_gateway::AttachVpnGatewayError, R>) -> Self {
1128 match err {
1129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132 source: err.into(),
1133 }),
1134 }
1135 }
1136}
1137impl From<crate::operation::attach_vpn_gateway::AttachVpnGatewayError> for Error {
1138 fn from(err: crate::operation::attach_vpn_gateway::AttachVpnGatewayError) -> Self {
1139 match err {
1140 crate::operation::attach_vpn_gateway::AttachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1141 }
1142 }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>>
1145 for Error
1146where
1147 R: Send + Sync + std::fmt::Debug + 'static,
1148{
1149 fn from(
1150 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError, R>,
1151 ) -> Self {
1152 match err {
1153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156 source: err.into(),
1157 }),
1158 }
1159 }
1160}
1161impl From<crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError> for Error {
1162 fn from(err: crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError) -> Self {
1163 match err {
1164 crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
1165 }
1166 }
1167}
1168impl<R>
1169 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError, R>>
1170 for Error
1171where
1172 R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174 fn from(
1175 err: ::aws_smithy_runtime_api::client::result::SdkError<
1176 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError,
1177 R,
1178 >,
1179 ) -> Self {
1180 match err {
1181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1184 source: err.into(),
1185 }),
1186 }
1187 }
1188}
1189impl From<crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError> for Error {
1190 fn from(err: crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError) -> Self {
1191 match err {
1192 crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
1193 }
1194 }
1195}
1196impl<R>
1197 From<
1198 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError, R>,
1199 > for Error
1200where
1201 R: Send + Sync + std::fmt::Debug + 'static,
1202{
1203 fn from(
1204 err: ::aws_smithy_runtime_api::client::result::SdkError<
1205 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError,
1206 R,
1207 >,
1208 ) -> Self {
1209 match err {
1210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213 source: err.into(),
1214 }),
1215 }
1216 }
1217}
1218impl From<crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError> for Error {
1219 fn from(err: crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError) -> Self {
1220 match err {
1221 crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
1222 }
1223 }
1224}
1225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>> for Error
1226where
1227 R: Send + Sync + std::fmt::Debug + 'static,
1228{
1229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bundle_instance::BundleInstanceError, R>) -> Self {
1230 match err {
1231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1234 source: err.into(),
1235 }),
1236 }
1237 }
1238}
1239impl From<crate::operation::bundle_instance::BundleInstanceError> for Error {
1240 fn from(err: crate::operation::bundle_instance::BundleInstanceError) -> Self {
1241 match err {
1242 crate::operation::bundle_instance::BundleInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1243 }
1244 }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>> for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_bundle_task::CancelBundleTaskError, R>) -> Self {
1251 match err {
1252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255 source: err.into(),
1256 }),
1257 }
1258 }
1259}
1260impl From<crate::operation::cancel_bundle_task::CancelBundleTaskError> for Error {
1261 fn from(err: crate::operation::cancel_bundle_task::CancelBundleTaskError) -> Self {
1262 match err {
1263 crate::operation::cancel_bundle_task::CancelBundleTaskError::Unhandled(inner) => Error::Unhandled(inner),
1264 }
1265 }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>>
1268 for Error
1269where
1270 R: Send + Sync + std::fmt::Debug + 'static,
1271{
1272 fn from(
1273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError, R>,
1274 ) -> Self {
1275 match err {
1276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1279 source: err.into(),
1280 }),
1281 }
1282 }
1283}
1284impl From<crate::operation::cancel_capacity_reservation::CancelCapacityReservationError> for Error {
1285 fn from(err: crate::operation::cancel_capacity_reservation::CancelCapacityReservationError) -> Self {
1286 match err {
1287 crate::operation::cancel_capacity_reservation::CancelCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1288 }
1289 }
1290}
1291impl<R>
1292 From<
1293 ::aws_smithy_runtime_api::client::result::SdkError<
1294 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1295 R,
1296 >,
1297 > for Error
1298where
1299 R: Send + Sync + std::fmt::Debug + 'static,
1300{
1301 fn from(
1302 err: ::aws_smithy_runtime_api::client::result::SdkError<
1303 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
1304 R,
1305 >,
1306 ) -> Self {
1307 match err {
1308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1311 source: err.into(),
1312 }),
1313 }
1314 }
1315}
1316impl From<crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError> for Error {
1317 fn from(err: crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError) -> Self {
1318 match err {
1319 crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1320 }
1321 }
1322}
1323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>> for Error
1324where
1325 R: Send + Sync + std::fmt::Debug + 'static,
1326{
1327 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_conversion_task::CancelConversionTaskError, R>) -> Self {
1328 match err {
1329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1332 source: err.into(),
1333 }),
1334 }
1335 }
1336}
1337impl From<crate::operation::cancel_conversion_task::CancelConversionTaskError> for Error {
1338 fn from(err: crate::operation::cancel_conversion_task::CancelConversionTaskError) -> Self {
1339 match err {
1340 crate::operation::cancel_conversion_task::CancelConversionTaskError::Unhandled(inner) => Error::Unhandled(inner),
1341 }
1342 }
1343}
1344impl<R>
1345 From<
1346 ::aws_smithy_runtime_api::client::result::SdkError<
1347 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1348 R,
1349 >,
1350 > for Error
1351where
1352 R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354 fn from(
1355 err: ::aws_smithy_runtime_api::client::result::SdkError<
1356 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError,
1357 R,
1358 >,
1359 ) -> Self {
1360 match err {
1361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1364 source: err.into(),
1365 }),
1366 }
1367 }
1368}
1369impl From<crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError> for Error {
1370 fn from(err: crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError) -> Self {
1371 match err {
1372 crate::operation::cancel_declarative_policies_report::CancelDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
1373 }
1374 }
1375}
1376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>> for Error
1377where
1378 R: Send + Sync + std::fmt::Debug + 'static,
1379{
1380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>) -> Self {
1381 match err {
1382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385 source: err.into(),
1386 }),
1387 }
1388 }
1389}
1390impl From<crate::operation::cancel_export_task::CancelExportTaskError> for Error {
1391 fn from(err: crate::operation::cancel_export_task::CancelExportTaskError) -> Self {
1392 match err {
1393 crate::operation::cancel_export_task::CancelExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1394 }
1395 }
1396}
1397impl<R>
1398 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError, R>>
1399 for Error
1400where
1401 R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403 fn from(
1404 err: ::aws_smithy_runtime_api::client::result::SdkError<
1405 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError,
1406 R,
1407 >,
1408 ) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError> for Error {
1419 fn from(err: crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError) -> Self {
1420 match err {
1421 crate::operation::cancel_image_launch_permission::CancelImageLaunchPermissionError::Unhandled(inner) => Error::Unhandled(inner),
1422 }
1423 }
1424}
1425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>> for Error
1426where
1427 R: Send + Sync + std::fmt::Debug + 'static,
1428{
1429 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>) -> Self {
1430 match err {
1431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1434 source: err.into(),
1435 }),
1436 }
1437 }
1438}
1439impl From<crate::operation::cancel_import_task::CancelImportTaskError> for Error {
1440 fn from(err: crate::operation::cancel_import_task::CancelImportTaskError) -> Self {
1441 match err {
1442 crate::operation::cancel_import_task::CancelImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1443 }
1444 }
1445}
1446impl<R>
1447 From<
1448 ::aws_smithy_runtime_api::client::result::SdkError<
1449 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1450 R,
1451 >,
1452 > for Error
1453where
1454 R: Send + Sync + std::fmt::Debug + 'static,
1455{
1456 fn from(
1457 err: ::aws_smithy_runtime_api::client::result::SdkError<
1458 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError,
1459 R,
1460 >,
1461 ) -> Self {
1462 match err {
1463 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466 source: err.into(),
1467 }),
1468 }
1469 }
1470}
1471impl From<crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError> for Error {
1472 fn from(err: crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError) -> Self {
1473 match err {
1474 crate::operation::cancel_reserved_instances_listing::CancelReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
1475 }
1476 }
1477}
1478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>>
1479 for Error
1480where
1481 R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483 fn from(
1484 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError, R>,
1485 ) -> Self {
1486 match err {
1487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1490 source: err.into(),
1491 }),
1492 }
1493 }
1494}
1495impl From<crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError> for Error {
1496 fn from(err: crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError) -> Self {
1497 match err {
1498 crate::operation::cancel_spot_fleet_requests::CancelSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1499 }
1500 }
1501}
1502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>>
1503 for Error
1504where
1505 R: Send + Sync + std::fmt::Debug + 'static,
1506{
1507 fn from(
1508 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError, R>,
1509 ) -> Self {
1510 match err {
1511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514 source: err.into(),
1515 }),
1516 }
1517 }
1518}
1519impl From<crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError> for Error {
1520 fn from(err: crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError) -> Self {
1521 match err {
1522 crate::operation::cancel_spot_instance_requests::CancelSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
1523 }
1524 }
1525}
1526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>> for Error
1527where
1528 R: Send + Sync + std::fmt::Debug + 'static,
1529{
1530 fn from(
1531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_product_instance::ConfirmProductInstanceError, R>,
1532 ) -> Self {
1533 match err {
1534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1537 source: err.into(),
1538 }),
1539 }
1540 }
1541}
1542impl From<crate::operation::confirm_product_instance::ConfirmProductInstanceError> for Error {
1543 fn from(err: crate::operation::confirm_product_instance::ConfirmProductInstanceError) -> Self {
1544 match err {
1545 crate::operation::confirm_product_instance::ConfirmProductInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1546 }
1547 }
1548}
1549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>> for Error
1550where
1551 R: Send + Sync + std::fmt::Debug + 'static,
1552{
1553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_fpga_image::CopyFpgaImageError, R>) -> Self {
1554 match err {
1555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1558 source: err.into(),
1559 }),
1560 }
1561 }
1562}
1563impl From<crate::operation::copy_fpga_image::CopyFpgaImageError> for Error {
1564 fn from(err: crate::operation::copy_fpga_image::CopyFpgaImageError) -> Self {
1565 match err {
1566 crate::operation::copy_fpga_image::CopyFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
1567 }
1568 }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>> for Error
1571where
1572 R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>) -> Self {
1575 match err {
1576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579 source: err.into(),
1580 }),
1581 }
1582 }
1583}
1584impl From<crate::operation::copy_image::CopyImageError> for Error {
1585 fn from(err: crate::operation::copy_image::CopyImageError) -> Self {
1586 match err {
1587 crate::operation::copy_image::CopyImageError::Unhandled(inner) => Error::Unhandled(inner),
1588 }
1589 }
1590}
1591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>> for Error
1592where
1593 R: Send + Sync + std::fmt::Debug + 'static,
1594{
1595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot::CopySnapshotError, R>) -> Self {
1596 match err {
1597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1600 source: err.into(),
1601 }),
1602 }
1603 }
1604}
1605impl From<crate::operation::copy_snapshot::CopySnapshotError> for Error {
1606 fn from(err: crate::operation::copy_snapshot::CopySnapshotError) -> Self {
1607 match err {
1608 crate::operation::copy_snapshot::CopySnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1609 }
1610 }
1611}
1612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>> for Error
1613where
1614 R: Send + Sync + std::fmt::Debug + 'static,
1615{
1616 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_volumes::CopyVolumesError, R>) -> Self {
1617 match err {
1618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1621 source: err.into(),
1622 }),
1623 }
1624 }
1625}
1626impl From<crate::operation::copy_volumes::CopyVolumesError> for Error {
1627 fn from(err: crate::operation::copy_volumes::CopyVolumesError) -> Self {
1628 match err {
1629 crate::operation::copy_volumes::CopyVolumesError::Unhandled(inner) => Error::Unhandled(inner),
1630 }
1631 }
1632}
1633impl<R>
1634 From<
1635 ::aws_smithy_runtime_api::client::result::SdkError<
1636 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1637 R,
1638 >,
1639 > for Error
1640where
1641 R: Send + Sync + std::fmt::Debug + 'static,
1642{
1643 fn from(
1644 err: ::aws_smithy_runtime_api::client::result::SdkError<
1645 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError,
1646 R,
1647 >,
1648 ) -> Self {
1649 match err {
1650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1653 source: err.into(),
1654 }),
1655 }
1656 }
1657}
1658impl From<crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError> for Error {
1659 fn from(err: crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError) -> Self {
1660 match err {
1661 crate::operation::create_capacity_manager_data_export::CreateCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
1662 }
1663 }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>>
1666 for Error
1667where
1668 R: Send + Sync + std::fmt::Debug + 'static,
1669{
1670 fn from(
1671 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_reservation::CreateCapacityReservationError, R>,
1672 ) -> Self {
1673 match err {
1674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1677 source: err.into(),
1678 }),
1679 }
1680 }
1681}
1682impl From<crate::operation::create_capacity_reservation::CreateCapacityReservationError> for Error {
1683 fn from(err: crate::operation::create_capacity_reservation::CreateCapacityReservationError) -> Self {
1684 match err {
1685 crate::operation::create_capacity_reservation::CreateCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1686 }
1687 }
1688}
1689impl<R>
1690 From<
1691 ::aws_smithy_runtime_api::client::result::SdkError<
1692 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1693 R,
1694 >,
1695 > for Error
1696where
1697 R: Send + Sync + std::fmt::Debug + 'static,
1698{
1699 fn from(
1700 err: ::aws_smithy_runtime_api::client::result::SdkError<
1701 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError,
1702 R,
1703 >,
1704 ) -> Self {
1705 match err {
1706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1709 source: err.into(),
1710 }),
1711 }
1712 }
1713}
1714impl From<crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError> for Error {
1715 fn from(err: crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError) -> Self {
1716 match err {
1717 crate::operation::create_capacity_reservation_by_splitting::CreateCapacityReservationBySplittingError::Unhandled(inner) => {
1718 Error::Unhandled(inner)
1719 }
1720 }
1721 }
1722}
1723impl<R>
1724 From<
1725 ::aws_smithy_runtime_api::client::result::SdkError<
1726 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError,
1727 R,
1728 >,
1729 > for Error
1730where
1731 R: Send + Sync + std::fmt::Debug + 'static,
1732{
1733 fn from(
1734 err: ::aws_smithy_runtime_api::client::result::SdkError<
1735 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError,
1736 R,
1737 >,
1738 ) -> Self {
1739 match err {
1740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743 source: err.into(),
1744 }),
1745 }
1746 }
1747}
1748impl From<crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError> for Error {
1749 fn from(err: crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError) -> Self {
1750 match err {
1751 crate::operation::create_capacity_reservation_fleet::CreateCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
1752 }
1753 }
1754}
1755impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>> for Error
1756where
1757 R: Send + Sync + std::fmt::Debug + 'static,
1758{
1759 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_carrier_gateway::CreateCarrierGatewayError, R>) -> Self {
1760 match err {
1761 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1762 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1763 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1764 source: err.into(),
1765 }),
1766 }
1767 }
1768}
1769impl From<crate::operation::create_carrier_gateway::CreateCarrierGatewayError> for Error {
1770 fn from(err: crate::operation::create_carrier_gateway::CreateCarrierGatewayError) -> Self {
1771 match err {
1772 crate::operation::create_carrier_gateway::CreateCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1773 }
1774 }
1775}
1776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>>
1777 for Error
1778where
1779 R: Send + Sync + std::fmt::Debug + 'static,
1780{
1781 fn from(
1782 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError, R>,
1783 ) -> Self {
1784 match err {
1785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1788 source: err.into(),
1789 }),
1790 }
1791 }
1792}
1793impl From<crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError> for Error {
1794 fn from(err: crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError) -> Self {
1795 match err {
1796 crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1797 }
1798 }
1799}
1800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>> for Error
1801where
1802 R: Send + Sync + std::fmt::Debug + 'static,
1803{
1804 fn from(
1805 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_client_vpn_route::CreateClientVpnRouteError, R>,
1806 ) -> Self {
1807 match err {
1808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1811 source: err.into(),
1812 }),
1813 }
1814 }
1815}
1816impl From<crate::operation::create_client_vpn_route::CreateClientVpnRouteError> for Error {
1817 fn from(err: crate::operation::create_client_vpn_route::CreateClientVpnRouteError) -> Self {
1818 match err {
1819 crate::operation::create_client_vpn_route::CreateClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
1820 }
1821 }
1822}
1823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>> for Error
1824where
1825 R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_cidr::CreateCoipCidrError, R>) -> Self {
1828 match err {
1829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1832 source: err.into(),
1833 }),
1834 }
1835 }
1836}
1837impl From<crate::operation::create_coip_cidr::CreateCoipCidrError> for Error {
1838 fn from(err: crate::operation::create_coip_cidr::CreateCoipCidrError) -> Self {
1839 match err {
1840 crate::operation::create_coip_cidr::CreateCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
1841 }
1842 }
1843}
1844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>> for Error
1845where
1846 R: Send + Sync + std::fmt::Debug + 'static,
1847{
1848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_coip_pool::CreateCoipPoolError, R>) -> Self {
1849 match err {
1850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1853 source: err.into(),
1854 }),
1855 }
1856 }
1857}
1858impl From<crate::operation::create_coip_pool::CreateCoipPoolError> for Error {
1859 fn from(err: crate::operation::create_coip_pool::CreateCoipPoolError) -> Self {
1860 match err {
1861 crate::operation::create_coip_pool::CreateCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
1862 }
1863 }
1864}
1865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>> for Error
1866where
1867 R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869 fn from(
1870 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_customer_gateway::CreateCustomerGatewayError, R>,
1871 ) -> Self {
1872 match err {
1873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1876 source: err.into(),
1877 }),
1878 }
1879 }
1880}
1881impl From<crate::operation::create_customer_gateway::CreateCustomerGatewayError> for Error {
1882 fn from(err: crate::operation::create_customer_gateway::CreateCustomerGatewayError) -> Self {
1883 match err {
1884 crate::operation::create_customer_gateway::CreateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1885 }
1886 }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>> for Error
1889where
1890 R: Send + Sync + std::fmt::Debug + 'static,
1891{
1892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_subnet::CreateDefaultSubnetError, R>) -> Self {
1893 match err {
1894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1897 source: err.into(),
1898 }),
1899 }
1900 }
1901}
1902impl From<crate::operation::create_default_subnet::CreateDefaultSubnetError> for Error {
1903 fn from(err: crate::operation::create_default_subnet::CreateDefaultSubnetError) -> Self {
1904 match err {
1905 crate::operation::create_default_subnet::CreateDefaultSubnetError::Unhandled(inner) => Error::Unhandled(inner),
1906 }
1907 }
1908}
1909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>> for Error
1910where
1911 R: Send + Sync + std::fmt::Debug + 'static,
1912{
1913 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_vpc::CreateDefaultVpcError, R>) -> Self {
1914 match err {
1915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1918 source: err.into(),
1919 }),
1920 }
1921 }
1922}
1923impl From<crate::operation::create_default_vpc::CreateDefaultVpcError> for Error {
1924 fn from(err: crate::operation::create_default_vpc::CreateDefaultVpcError) -> Self {
1925 match err {
1926 crate::operation::create_default_vpc::CreateDefaultVpcError::Unhandled(inner) => Error::Unhandled(inner),
1927 }
1928 }
1929}
1930impl<R>
1931 From<
1932 ::aws_smithy_runtime_api::client::result::SdkError<
1933 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1934 R,
1935 >,
1936 > for Error
1937where
1938 R: Send + Sync + std::fmt::Debug + 'static,
1939{
1940 fn from(
1941 err: ::aws_smithy_runtime_api::client::result::SdkError<
1942 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError,
1943 R,
1944 >,
1945 ) -> Self {
1946 match err {
1947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1950 source: err.into(),
1951 }),
1952 }
1953 }
1954}
1955impl From<crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError> for Error {
1956 fn from(err: crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError) -> Self {
1957 match err {
1958 crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError::Unhandled(inner) => {
1959 Error::Unhandled(inner)
1960 }
1961 }
1962 }
1963}
1964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>> for Error
1965where
1966 R: Send + Sync + std::fmt::Debug + 'static,
1967{
1968 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dhcp_options::CreateDhcpOptionsError, R>) -> Self {
1969 match err {
1970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1973 source: err.into(),
1974 }),
1975 }
1976 }
1977}
1978impl From<crate::operation::create_dhcp_options::CreateDhcpOptionsError> for Error {
1979 fn from(err: crate::operation::create_dhcp_options::CreateDhcpOptionsError) -> Self {
1980 match err {
1981 crate::operation::create_dhcp_options::CreateDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
1982 }
1983 }
1984}
1985impl<R>
1986 From<
1987 ::aws_smithy_runtime_api::client::result::SdkError<
1988 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
1989 R,
1990 >,
1991 > for Error
1992where
1993 R: Send + Sync + std::fmt::Debug + 'static,
1994{
1995 fn from(
1996 err: ::aws_smithy_runtime_api::client::result::SdkError<
1997 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError,
1998 R,
1999 >,
2000 ) -> Self {
2001 match err {
2002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2005 source: err.into(),
2006 }),
2007 }
2008 }
2009}
2010impl From<crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError> for Error {
2011 fn from(err: crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError) -> Self {
2012 match err {
2013 crate::operation::create_egress_only_internet_gateway::CreateEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2014 }
2015 }
2016}
2017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
2018where
2019 R: Send + Sync + std::fmt::Debug + 'static,
2020{
2021 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
2022 match err {
2023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2026 source: err.into(),
2027 }),
2028 }
2029 }
2030}
2031impl From<crate::operation::create_fleet::CreateFleetError> for Error {
2032 fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
2033 match err {
2034 crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2035 }
2036 }
2037}
2038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>> for Error
2039where
2040 R: Send + Sync + std::fmt::Debug + 'static,
2041{
2042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_logs::CreateFlowLogsError, R>) -> Self {
2043 match err {
2044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2047 source: err.into(),
2048 }),
2049 }
2050 }
2051}
2052impl From<crate::operation::create_flow_logs::CreateFlowLogsError> for Error {
2053 fn from(err: crate::operation::create_flow_logs::CreateFlowLogsError) -> Self {
2054 match err {
2055 crate::operation::create_flow_logs::CreateFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
2056 }
2057 }
2058}
2059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>> for Error
2060where
2061 R: Send + Sync + std::fmt::Debug + 'static,
2062{
2063 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fpga_image::CreateFpgaImageError, R>) -> Self {
2064 match err {
2065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2068 source: err.into(),
2069 }),
2070 }
2071 }
2072}
2073impl From<crate::operation::create_fpga_image::CreateFpgaImageError> for Error {
2074 fn from(err: crate::operation::create_fpga_image::CreateFpgaImageError) -> Self {
2075 match err {
2076 crate::operation::create_fpga_image::CreateFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
2077 }
2078 }
2079}
2080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
2081where
2082 R: Send + Sync + std::fmt::Debug + 'static,
2083{
2084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
2085 match err {
2086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2089 source: err.into(),
2090 }),
2091 }
2092 }
2093}
2094impl From<crate::operation::create_image::CreateImageError> for Error {
2095 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
2096 match err {
2097 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
2098 }
2099 }
2100}
2101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>>
2102 for Error
2103where
2104 R: Send + Sync + std::fmt::Debug + 'static,
2105{
2106 fn from(
2107 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_usage_report::CreateImageUsageReportError, R>,
2108 ) -> Self {
2109 match err {
2110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2113 source: err.into(),
2114 }),
2115 }
2116 }
2117}
2118impl From<crate::operation::create_image_usage_report::CreateImageUsageReportError> for Error {
2119 fn from(err: crate::operation::create_image_usage_report::CreateImageUsageReportError) -> Self {
2120 match err {
2121 crate::operation::create_image_usage_report::CreateImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
2122 }
2123 }
2124}
2125impl<R>
2126 From<
2127 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError, R>,
2128 > for Error
2129where
2130 R: Send + Sync + std::fmt::Debug + 'static,
2131{
2132 fn from(
2133 err: ::aws_smithy_runtime_api::client::result::SdkError<
2134 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError,
2135 R,
2136 >,
2137 ) -> Self {
2138 match err {
2139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2142 source: err.into(),
2143 }),
2144 }
2145 }
2146}
2147impl From<crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError> for Error {
2148 fn from(err: crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError) -> Self {
2149 match err {
2150 crate::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2151 }
2152 }
2153}
2154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>>
2155 for Error
2156where
2157 R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159 fn from(
2160 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_event_window::CreateInstanceEventWindowError, R>,
2161 ) -> Self {
2162 match err {
2163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2166 source: err.into(),
2167 }),
2168 }
2169 }
2170}
2171impl From<crate::operation::create_instance_event_window::CreateInstanceEventWindowError> for Error {
2172 fn from(err: crate::operation::create_instance_event_window::CreateInstanceEventWindowError) -> Self {
2173 match err {
2174 crate::operation::create_instance_event_window::CreateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
2175 }
2176 }
2177}
2178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>>
2179 for Error
2180where
2181 R: Send + Sync + std::fmt::Debug + 'static,
2182{
2183 fn from(
2184 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_export_task::CreateInstanceExportTaskError, R>,
2185 ) -> Self {
2186 match err {
2187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2190 source: err.into(),
2191 }),
2192 }
2193 }
2194}
2195impl From<crate::operation::create_instance_export_task::CreateInstanceExportTaskError> for Error {
2196 fn from(err: crate::operation::create_instance_export_task::CreateInstanceExportTaskError) -> Self {
2197 match err {
2198 crate::operation::create_instance_export_task::CreateInstanceExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
2199 }
2200 }
2201}
2202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>> for Error
2203where
2204 R: Send + Sync + std::fmt::Debug + 'static,
2205{
2206 fn from(
2207 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_internet_gateway::CreateInternetGatewayError, R>,
2208 ) -> Self {
2209 match err {
2210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2213 source: err.into(),
2214 }),
2215 }
2216 }
2217}
2218impl From<crate::operation::create_internet_gateway::CreateInternetGatewayError> for Error {
2219 fn from(err: crate::operation::create_internet_gateway::CreateInternetGatewayError) -> Self {
2220 match err {
2221 crate::operation::create_internet_gateway::CreateInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2222 }
2223 }
2224}
2225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>> for Error
2226where
2227 R: Send + Sync + std::fmt::Debug + 'static,
2228{
2229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam::CreateIpamError, R>) -> Self {
2230 match err {
2231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2234 source: err.into(),
2235 }),
2236 }
2237 }
2238}
2239impl From<crate::operation::create_ipam::CreateIpamError> for Error {
2240 fn from(err: crate::operation::create_ipam::CreateIpamError) -> Self {
2241 match err {
2242 crate::operation::create_ipam::CreateIpamError::Unhandled(inner) => Error::Unhandled(inner),
2243 }
2244 }
2245}
2246impl<R>
2247 From<
2248 ::aws_smithy_runtime_api::client::result::SdkError<
2249 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2250 R,
2251 >,
2252 > for Error
2253where
2254 R: Send + Sync + std::fmt::Debug + 'static,
2255{
2256 fn from(
2257 err: ::aws_smithy_runtime_api::client::result::SdkError<
2258 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError,
2259 R,
2260 >,
2261 ) -> Self {
2262 match err {
2263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2266 source: err.into(),
2267 }),
2268 }
2269 }
2270}
2271impl From<crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError> for Error {
2272 fn from(err: crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError) -> Self {
2273 match err {
2274 crate::operation::create_ipam_external_resource_verification_token::CreateIpamExternalResourceVerificationTokenError::Unhandled(
2275 inner,
2276 ) => Error::Unhandled(inner),
2277 }
2278 }
2279}
2280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>> for Error
2281where
2282 R: Send + Sync + std::fmt::Debug + 'static,
2283{
2284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_pool::CreateIpamPoolError, R>) -> Self {
2285 match err {
2286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2289 source: err.into(),
2290 }),
2291 }
2292 }
2293}
2294impl From<crate::operation::create_ipam_pool::CreateIpamPoolError> for Error {
2295 fn from(err: crate::operation::create_ipam_pool::CreateIpamPoolError) -> Self {
2296 match err {
2297 crate::operation::create_ipam_pool::CreateIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
2298 }
2299 }
2300}
2301impl<R>
2302 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError, R>>
2303 for Error
2304where
2305 R: Send + Sync + std::fmt::Debug + 'static,
2306{
2307 fn from(
2308 err: ::aws_smithy_runtime_api::client::result::SdkError<
2309 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError,
2310 R,
2311 >,
2312 ) -> Self {
2313 match err {
2314 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2315 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2316 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2317 source: err.into(),
2318 }),
2319 }
2320 }
2321}
2322impl From<crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError> for Error {
2323 fn from(err: crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError) -> Self {
2324 match err {
2325 crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
2326 }
2327 }
2328}
2329impl<R>
2330 From<
2331 ::aws_smithy_runtime_api::client::result::SdkError<
2332 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2333 R,
2334 >,
2335 > for Error
2336where
2337 R: Send + Sync + std::fmt::Debug + 'static,
2338{
2339 fn from(
2340 err: ::aws_smithy_runtime_api::client::result::SdkError<
2341 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError,
2342 R,
2343 >,
2344 ) -> Self {
2345 match err {
2346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2349 source: err.into(),
2350 }),
2351 }
2352 }
2353}
2354impl From<crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError> for Error {
2355 fn from(err: crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError) -> Self {
2356 match err {
2357 crate::operation::create_ipam_prefix_list_resolver_target::CreateIpamPrefixListResolverTargetError::Unhandled(inner) => {
2358 Error::Unhandled(inner)
2359 }
2360 }
2361 }
2362}
2363impl<R>
2364 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError, R>>
2365 for Error
2366where
2367 R: Send + Sync + std::fmt::Debug + 'static,
2368{
2369 fn from(
2370 err: ::aws_smithy_runtime_api::client::result::SdkError<
2371 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError,
2372 R,
2373 >,
2374 ) -> Self {
2375 match err {
2376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2379 source: err.into(),
2380 }),
2381 }
2382 }
2383}
2384impl From<crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError> for Error {
2385 fn from(err: crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError) -> Self {
2386 match err {
2387 crate::operation::create_ipam_resource_discovery::CreateIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2388 }
2389 }
2390}
2391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>> for Error
2392where
2393 R: Send + Sync + std::fmt::Debug + 'static,
2394{
2395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ipam_scope::CreateIpamScopeError, R>) -> Self {
2396 match err {
2397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2400 source: err.into(),
2401 }),
2402 }
2403 }
2404}
2405impl From<crate::operation::create_ipam_scope::CreateIpamScopeError> for Error {
2406 fn from(err: crate::operation::create_ipam_scope::CreateIpamScopeError) -> Self {
2407 match err {
2408 crate::operation::create_ipam_scope::CreateIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
2409 }
2410 }
2411}
2412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>> for Error
2413where
2414 R: Send + Sync + std::fmt::Debug + 'static,
2415{
2416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key_pair::CreateKeyPairError, R>) -> Self {
2417 match err {
2418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2421 source: err.into(),
2422 }),
2423 }
2424 }
2425}
2426impl From<crate::operation::create_key_pair::CreateKeyPairError> for Error {
2427 fn from(err: crate::operation::create_key_pair::CreateKeyPairError) -> Self {
2428 match err {
2429 crate::operation::create_key_pair::CreateKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
2430 }
2431 }
2432}
2433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>> for Error
2434where
2435 R: Send + Sync + std::fmt::Debug + 'static,
2436{
2437 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template::CreateLaunchTemplateError, R>) -> Self {
2438 match err {
2439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2442 source: err.into(),
2443 }),
2444 }
2445 }
2446}
2447impl From<crate::operation::create_launch_template::CreateLaunchTemplateError> for Error {
2448 fn from(err: crate::operation::create_launch_template::CreateLaunchTemplateError) -> Self {
2449 match err {
2450 crate::operation::create_launch_template::CreateLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2451 }
2452 }
2453}
2454impl<R>
2455 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError, R>>
2456 for Error
2457where
2458 R: Send + Sync + std::fmt::Debug + 'static,
2459{
2460 fn from(
2461 err: ::aws_smithy_runtime_api::client::result::SdkError<
2462 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
2463 R,
2464 >,
2465 ) -> Self {
2466 match err {
2467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2470 source: err.into(),
2471 }),
2472 }
2473 }
2474}
2475impl From<crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError> for Error {
2476 fn from(err: crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError) -> Self {
2477 match err {
2478 crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2479 }
2480 }
2481}
2482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>>
2483 for Error
2484where
2485 R: Send + Sync + std::fmt::Debug + 'static,
2486{
2487 fn from(
2488 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError, R>,
2489 ) -> Self {
2490 match err {
2491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2494 source: err.into(),
2495 }),
2496 }
2497 }
2498}
2499impl From<crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError> for Error {
2500 fn from(err: crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError) -> Self {
2501 match err {
2502 crate::operation::create_local_gateway_route::CreateLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
2503 }
2504 }
2505}
2506impl<R>
2507 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError, R>>
2508 for Error
2509where
2510 R: Send + Sync + std::fmt::Debug + 'static,
2511{
2512 fn from(
2513 err: ::aws_smithy_runtime_api::client::result::SdkError<
2514 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError,
2515 R,
2516 >,
2517 ) -> Self {
2518 match err {
2519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2522 source: err.into(),
2523 }),
2524 }
2525 }
2526}
2527impl From<crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError> for Error {
2528 fn from(err: crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError) -> Self {
2529 match err {
2530 crate::operation::create_local_gateway_route_table::CreateLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
2531 }
2532 }
2533}
2534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
2535 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
2536 match err {
2537 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2538 _ => Error::Unhandled(
2539 crate::error::sealed_unhandled::Unhandled {
2540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2541 source: err.into(),
2542 }
2543 ),
2544 }
2545 }
2546}
2547impl From<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
2548 fn from(err: crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
2549 match err {
2550 crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2551 }
2552 }
2553}
2554impl<R>
2555 From<
2556 ::aws_smithy_runtime_api::client::result::SdkError<
2557 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2558 R,
2559 >,
2560 > for Error
2561where
2562 R: Send + Sync + std::fmt::Debug + 'static,
2563{
2564 fn from(
2565 err: ::aws_smithy_runtime_api::client::result::SdkError<
2566 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
2567 R,
2568 >,
2569 ) -> Self {
2570 match err {
2571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2574 source: err.into(),
2575 }),
2576 }
2577 }
2578}
2579impl From<crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError> for Error {
2580 fn from(err: crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError) -> Self {
2581 match err {
2582 crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
2583 Error::Unhandled(inner)
2584 }
2585 }
2586 }
2587}
2588impl<R>
2589 From<
2590 ::aws_smithy_runtime_api::client::result::SdkError<
2591 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2592 R,
2593 >,
2594 > for Error
2595where
2596 R: Send + Sync + std::fmt::Debug + 'static,
2597{
2598 fn from(
2599 err: ::aws_smithy_runtime_api::client::result::SdkError<
2600 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
2601 R,
2602 >,
2603 ) -> Self {
2604 match err {
2605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2608 source: err.into(),
2609 }),
2610 }
2611 }
2612}
2613impl From<crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError> for Error {
2614 fn from(err: crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError) -> Self {
2615 match err {
2616 crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
2617 Error::Unhandled(inner)
2618 }
2619 }
2620 }
2621}
2622impl<R>
2623 From<
2624 ::aws_smithy_runtime_api::client::result::SdkError<
2625 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2626 R,
2627 >,
2628 > for Error
2629where
2630 R: Send + Sync + std::fmt::Debug + 'static,
2631{
2632 fn from(
2633 err: ::aws_smithy_runtime_api::client::result::SdkError<
2634 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
2635 R,
2636 >,
2637 ) -> Self {
2638 match err {
2639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2642 source: err.into(),
2643 }),
2644 }
2645 }
2646}
2647impl From<crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError> for Error {
2648 fn from(err: crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError) -> Self {
2649 match err {
2650 crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
2651 Error::Unhandled(inner)
2652 }
2653 }
2654 }
2655}
2656impl<R>
2657 From<
2658 ::aws_smithy_runtime_api::client::result::SdkError<
2659 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2660 R,
2661 >,
2662 > for Error
2663where
2664 R: Send + Sync + std::fmt::Debug + 'static,
2665{
2666 fn from(
2667 err: ::aws_smithy_runtime_api::client::result::SdkError<
2668 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2669 R,
2670 >,
2671 ) -> Self {
2672 match err {
2673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2676 source: err.into(),
2677 }),
2678 }
2679 }
2680}
2681impl From<crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError>
2682 for Error
2683{
2684 fn from(
2685 err: crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError,
2686 ) -> Self {
2687 match err {
2688 crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskError::Unhandled(inner) => Error::Unhandled(inner),
2689 }
2690 }
2691}
2692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>>
2693 for Error
2694where
2695 R: Send + Sync + std::fmt::Debug + 'static,
2696{
2697 fn from(
2698 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError, R>,
2699 ) -> Self {
2700 match err {
2701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2704 source: err.into(),
2705 }),
2706 }
2707 }
2708}
2709impl From<crate::operation::create_managed_prefix_list::CreateManagedPrefixListError> for Error {
2710 fn from(err: crate::operation::create_managed_prefix_list::CreateManagedPrefixListError) -> Self {
2711 match err {
2712 crate::operation::create_managed_prefix_list::CreateManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
2713 }
2714 }
2715}
2716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>> for Error
2717where
2718 R: Send + Sync + std::fmt::Debug + 'static,
2719{
2720 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_nat_gateway::CreateNatGatewayError, R>) -> Self {
2721 match err {
2722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2725 source: err.into(),
2726 }),
2727 }
2728 }
2729}
2730impl From<crate::operation::create_nat_gateway::CreateNatGatewayError> for Error {
2731 fn from(err: crate::operation::create_nat_gateway::CreateNatGatewayError) -> Self {
2732 match err {
2733 crate::operation::create_nat_gateway::CreateNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2734 }
2735 }
2736}
2737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>> for Error
2738where
2739 R: Send + Sync + std::fmt::Debug + 'static,
2740{
2741 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl::CreateNetworkAclError, R>) -> Self {
2742 match err {
2743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2746 source: err.into(),
2747 }),
2748 }
2749 }
2750}
2751impl From<crate::operation::create_network_acl::CreateNetworkAclError> for Error {
2752 fn from(err: crate::operation::create_network_acl::CreateNetworkAclError) -> Self {
2753 match err {
2754 crate::operation::create_network_acl::CreateNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
2755 }
2756 }
2757}
2758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>> for Error
2759where
2760 R: Send + Sync + std::fmt::Debug + 'static,
2761{
2762 fn from(
2763 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError, R>,
2764 ) -> Self {
2765 match err {
2766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2769 source: err.into(),
2770 }),
2771 }
2772 }
2773}
2774impl From<crate::operation::create_network_acl_entry::CreateNetworkAclEntryError> for Error {
2775 fn from(err: crate::operation::create_network_acl_entry::CreateNetworkAclEntryError) -> Self {
2776 match err {
2777 crate::operation::create_network_acl_entry::CreateNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
2778 }
2779 }
2780}
2781impl<R>
2782 From<
2783 ::aws_smithy_runtime_api::client::result::SdkError<
2784 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2785 R,
2786 >,
2787 > for Error
2788where
2789 R: Send + Sync + std::fmt::Debug + 'static,
2790{
2791 fn from(
2792 err: ::aws_smithy_runtime_api::client::result::SdkError<
2793 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError,
2794 R,
2795 >,
2796 ) -> Self {
2797 match err {
2798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2801 source: err.into(),
2802 }),
2803 }
2804 }
2805}
2806impl From<crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError> for Error {
2807 fn from(err: crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError) -> Self {
2808 match err {
2809 crate::operation::create_network_insights_access_scope::CreateNetworkInsightsAccessScopeError::Unhandled(inner) => {
2810 Error::Unhandled(inner)
2811 }
2812 }
2813 }
2814}
2815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>>
2816 for Error
2817where
2818 R: Send + Sync + std::fmt::Debug + 'static,
2819{
2820 fn from(
2821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError, R>,
2822 ) -> Self {
2823 match err {
2824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2827 source: err.into(),
2828 }),
2829 }
2830 }
2831}
2832impl From<crate::operation::create_network_insights_path::CreateNetworkInsightsPathError> for Error {
2833 fn from(err: crate::operation::create_network_insights_path::CreateNetworkInsightsPathError) -> Self {
2834 match err {
2835 crate::operation::create_network_insights_path::CreateNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
2836 }
2837 }
2838}
2839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>> for Error
2840where
2841 R: Send + Sync + std::fmt::Debug + 'static,
2842{
2843 fn from(
2844 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_interface::CreateNetworkInterfaceError, R>,
2845 ) -> Self {
2846 match err {
2847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2850 source: err.into(),
2851 }),
2852 }
2853 }
2854}
2855impl From<crate::operation::create_network_interface::CreateNetworkInterfaceError> for Error {
2856 fn from(err: crate::operation::create_network_interface::CreateNetworkInterfaceError) -> Self {
2857 match err {
2858 crate::operation::create_network_interface::CreateNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
2859 }
2860 }
2861}
2862impl<R>
2863 From<
2864 ::aws_smithy_runtime_api::client::result::SdkError<
2865 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2866 R,
2867 >,
2868 > for Error
2869where
2870 R: Send + Sync + std::fmt::Debug + 'static,
2871{
2872 fn from(
2873 err: ::aws_smithy_runtime_api::client::result::SdkError<
2874 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError,
2875 R,
2876 >,
2877 ) -> Self {
2878 match err {
2879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2882 source: err.into(),
2883 }),
2884 }
2885 }
2886}
2887impl From<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError> for Error {
2888 fn from(err: crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError) -> Self {
2889 match err {
2890 crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
2891 }
2892 }
2893}
2894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>> for Error
2895where
2896 R: Send + Sync + std::fmt::Debug + 'static,
2897{
2898 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_placement_group::CreatePlacementGroupError, R>) -> Self {
2899 match err {
2900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2903 source: err.into(),
2904 }),
2905 }
2906 }
2907}
2908impl From<crate::operation::create_placement_group::CreatePlacementGroupError> for Error {
2909 fn from(err: crate::operation::create_placement_group::CreatePlacementGroupError) -> Self {
2910 match err {
2911 crate::operation::create_placement_group::CreatePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
2912 }
2913 }
2914}
2915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>> for Error
2916where
2917 R: Send + Sync + std::fmt::Debug + 'static,
2918{
2919 fn from(
2920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError, R>,
2921 ) -> Self {
2922 match err {
2923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2926 source: err.into(),
2927 }),
2928 }
2929 }
2930}
2931impl From<crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError> for Error {
2932 fn from(err: crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError) -> Self {
2933 match err {
2934 crate::operation::create_public_ipv4_pool::CreatePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
2935 }
2936 }
2937}
2938impl<R>
2939 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError, R>>
2940 for Error
2941where
2942 R: Send + Sync + std::fmt::Debug + 'static,
2943{
2944 fn from(
2945 err: ::aws_smithy_runtime_api::client::result::SdkError<
2946 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError,
2947 R,
2948 >,
2949 ) -> Self {
2950 match err {
2951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2954 source: err.into(),
2955 }),
2956 }
2957 }
2958}
2959impl From<crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError> for Error {
2960 fn from(err: crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError) -> Self {
2961 match err {
2962 crate::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskError::Unhandled(inner) => Error::Unhandled(inner),
2963 }
2964 }
2965}
2966impl<R>
2967 From<
2968 ::aws_smithy_runtime_api::client::result::SdkError<
2969 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2970 R,
2971 >,
2972 > for Error
2973where
2974 R: Send + Sync + std::fmt::Debug + 'static,
2975{
2976 fn from(
2977 err: ::aws_smithy_runtime_api::client::result::SdkError<
2978 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError,
2979 R,
2980 >,
2981 ) -> Self {
2982 match err {
2983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2986 source: err.into(),
2987 }),
2988 }
2989 }
2990}
2991impl From<crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError> for Error {
2992 fn from(err: crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError) -> Self {
2993 match err {
2994 crate::operation::create_reserved_instances_listing::CreateReservedInstancesListingError::Unhandled(inner) => Error::Unhandled(inner),
2995 }
2996 }
2997}
2998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>>
2999 for Error
3000where
3001 R: Send + Sync + std::fmt::Debug + 'static,
3002{
3003 fn from(
3004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_image_task::CreateRestoreImageTaskError, R>,
3005 ) -> Self {
3006 match err {
3007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3010 source: err.into(),
3011 }),
3012 }
3013 }
3014}
3015impl From<crate::operation::create_restore_image_task::CreateRestoreImageTaskError> for Error {
3016 fn from(err: crate::operation::create_restore_image_task::CreateRestoreImageTaskError) -> Self {
3017 match err {
3018 crate::operation::create_restore_image_task::CreateRestoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3019 }
3020 }
3021}
3022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
3023where
3024 R: Send + Sync + std::fmt::Debug + 'static,
3025{
3026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
3027 match err {
3028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3031 source: err.into(),
3032 }),
3033 }
3034 }
3035}
3036impl From<crate::operation::create_route::CreateRouteError> for Error {
3037 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
3038 match err {
3039 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
3040 }
3041 }
3042}
3043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>> for Error
3044where
3045 R: Send + Sync + std::fmt::Debug + 'static,
3046{
3047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server::CreateRouteServerError, R>) -> Self {
3048 match err {
3049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3052 source: err.into(),
3053 }),
3054 }
3055 }
3056}
3057impl From<crate::operation::create_route_server::CreateRouteServerError> for Error {
3058 fn from(err: crate::operation::create_route_server::CreateRouteServerError) -> Self {
3059 match err {
3060 crate::operation::create_route_server::CreateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
3061 }
3062 }
3063}
3064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>>
3065 for Error
3066where
3067 R: Send + Sync + std::fmt::Debug + 'static,
3068{
3069 fn from(
3070 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError, R>,
3071 ) -> Self {
3072 match err {
3073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3076 source: err.into(),
3077 }),
3078 }
3079 }
3080}
3081impl From<crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError> for Error {
3082 fn from(err: crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError) -> Self {
3083 match err {
3084 crate::operation::create_route_server_endpoint::CreateRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3085 }
3086 }
3087}
3088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>> for Error
3089where
3090 R: Send + Sync + std::fmt::Debug + 'static,
3091{
3092 fn from(
3093 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_server_peer::CreateRouteServerPeerError, R>,
3094 ) -> Self {
3095 match err {
3096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3099 source: err.into(),
3100 }),
3101 }
3102 }
3103}
3104impl From<crate::operation::create_route_server_peer::CreateRouteServerPeerError> for Error {
3105 fn from(err: crate::operation::create_route_server_peer::CreateRouteServerPeerError) -> Self {
3106 match err {
3107 crate::operation::create_route_server_peer::CreateRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
3108 }
3109 }
3110}
3111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>> for Error
3112where
3113 R: Send + Sync + std::fmt::Debug + 'static,
3114{
3115 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_table::CreateRouteTableError, R>) -> Self {
3116 match err {
3117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3120 source: err.into(),
3121 }),
3122 }
3123 }
3124}
3125impl From<crate::operation::create_route_table::CreateRouteTableError> for Error {
3126 fn from(err: crate::operation::create_route_table::CreateRouteTableError) -> Self {
3127 match err {
3128 crate::operation::create_route_table::CreateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3129 }
3130 }
3131}
3132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>> for Error
3133where
3134 R: Send + Sync + std::fmt::Debug + 'static,
3135{
3136 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>) -> Self {
3137 match err {
3138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3141 source: err.into(),
3142 }),
3143 }
3144 }
3145}
3146impl From<crate::operation::create_security_group::CreateSecurityGroupError> for Error {
3147 fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
3148 match err {
3149 crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
3150 }
3151 }
3152}
3153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
3154where
3155 R: Send + Sync + std::fmt::Debug + 'static,
3156{
3157 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
3158 match err {
3159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3162 source: err.into(),
3163 }),
3164 }
3165 }
3166}
3167impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
3168 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
3169 match err {
3170 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
3171 }
3172 }
3173}
3174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>> for Error
3175where
3176 R: Send + Sync + std::fmt::Debug + 'static,
3177{
3178 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshots::CreateSnapshotsError, R>) -> Self {
3179 match err {
3180 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3181 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3182 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3183 source: err.into(),
3184 }),
3185 }
3186 }
3187}
3188impl From<crate::operation::create_snapshots::CreateSnapshotsError> for Error {
3189 fn from(err: crate::operation::create_snapshots::CreateSnapshotsError) -> Self {
3190 match err {
3191 crate::operation::create_snapshots::CreateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
3192 }
3193 }
3194}
3195impl<R>
3196 From<
3197 ::aws_smithy_runtime_api::client::result::SdkError<
3198 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3199 R,
3200 >,
3201 > for Error
3202where
3203 R: Send + Sync + std::fmt::Debug + 'static,
3204{
3205 fn from(
3206 err: ::aws_smithy_runtime_api::client::result::SdkError<
3207 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError,
3208 R,
3209 >,
3210 ) -> Self {
3211 match err {
3212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3215 source: err.into(),
3216 }),
3217 }
3218 }
3219}
3220impl From<crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError> for Error {
3221 fn from(err: crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError) -> Self {
3222 match err {
3223 crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3224 }
3225 }
3226}
3227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>> for Error
3228where
3229 R: Send + Sync + std::fmt::Debug + 'static,
3230{
3231 fn from(
3232 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_store_image_task::CreateStoreImageTaskError, R>,
3233 ) -> Self {
3234 match err {
3235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3238 source: err.into(),
3239 }),
3240 }
3241 }
3242}
3243impl From<crate::operation::create_store_image_task::CreateStoreImageTaskError> for Error {
3244 fn from(err: crate::operation::create_store_image_task::CreateStoreImageTaskError) -> Self {
3245 match err {
3246 crate::operation::create_store_image_task::CreateStoreImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
3247 }
3248 }
3249}
3250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>> for Error
3251where
3252 R: Send + Sync + std::fmt::Debug + 'static,
3253{
3254 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet::CreateSubnetError, R>) -> Self {
3255 match err {
3256 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3257 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3258 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3259 source: err.into(),
3260 }),
3261 }
3262 }
3263}
3264impl From<crate::operation::create_subnet::CreateSubnetError> for Error {
3265 fn from(err: crate::operation::create_subnet::CreateSubnetError) -> Self {
3266 match err {
3267 crate::operation::create_subnet::CreateSubnetError::Unhandled(inner) => Error::Unhandled(inner),
3268 }
3269 }
3270}
3271impl<R>
3272 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError, R>>
3273 for Error
3274where
3275 R: Send + Sync + std::fmt::Debug + 'static,
3276{
3277 fn from(
3278 err: ::aws_smithy_runtime_api::client::result::SdkError<
3279 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError,
3280 R,
3281 >,
3282 ) -> Self {
3283 match err {
3284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3287 source: err.into(),
3288 }),
3289 }
3290 }
3291}
3292impl From<crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError> for Error {
3293 fn from(err: crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError) -> Self {
3294 match err {
3295 crate::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
3296 }
3297 }
3298}
3299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
3300where
3301 R: Send + Sync + std::fmt::Debug + 'static,
3302{
3303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
3304 match err {
3305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3308 source: err.into(),
3309 }),
3310 }
3311 }
3312}
3313impl From<crate::operation::create_tags::CreateTagsError> for Error {
3314 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
3315 match err {
3316 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
3317 }
3318 }
3319}
3320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>>
3321 for Error
3322where
3323 R: Send + Sync + std::fmt::Debug + 'static,
3324{
3325 fn from(
3326 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError, R>,
3327 ) -> Self {
3328 match err {
3329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3332 source: err.into(),
3333 }),
3334 }
3335 }
3336}
3337impl From<crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError> for Error {
3338 fn from(err: crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError) -> Self {
3339 match err {
3340 crate::operation::create_traffic_mirror_filter::CreateTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
3341 }
3342 }
3343}
3344impl<R>
3345 From<
3346 ::aws_smithy_runtime_api::client::result::SdkError<
3347 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3348 R,
3349 >,
3350 > for Error
3351where
3352 R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354 fn from(
3355 err: ::aws_smithy_runtime_api::client::result::SdkError<
3356 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError,
3357 R,
3358 >,
3359 ) -> Self {
3360 match err {
3361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3364 source: err.into(),
3365 }),
3366 }
3367 }
3368}
3369impl From<crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError> for Error {
3370 fn from(err: crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError) -> Self {
3371 match err {
3372 crate::operation::create_traffic_mirror_filter_rule::CreateTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
3373 }
3374 }
3375}
3376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>>
3377 for Error
3378where
3379 R: Send + Sync + std::fmt::Debug + 'static,
3380{
3381 fn from(
3382 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError, R>,
3383 ) -> Self {
3384 match err {
3385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3388 source: err.into(),
3389 }),
3390 }
3391 }
3392}
3393impl From<crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError> for Error {
3394 fn from(err: crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError) -> Self {
3395 match err {
3396 crate::operation::create_traffic_mirror_session::CreateTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
3397 }
3398 }
3399}
3400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>>
3401 for Error
3402where
3403 R: Send + Sync + std::fmt::Debug + 'static,
3404{
3405 fn from(
3406 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError, R>,
3407 ) -> Self {
3408 match err {
3409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3412 source: err.into(),
3413 }),
3414 }
3415 }
3416}
3417impl From<crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError> for Error {
3418 fn from(err: crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError) -> Self {
3419 match err {
3420 crate::operation::create_traffic_mirror_target::CreateTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
3421 }
3422 }
3423}
3424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>> for Error
3425where
3426 R: Send + Sync + std::fmt::Debug + 'static,
3427{
3428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway::CreateTransitGatewayError, R>) -> Self {
3429 match err {
3430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3433 source: err.into(),
3434 }),
3435 }
3436 }
3437}
3438impl From<crate::operation::create_transit_gateway::CreateTransitGatewayError> for Error {
3439 fn from(err: crate::operation::create_transit_gateway::CreateTransitGatewayError) -> Self {
3440 match err {
3441 crate::operation::create_transit_gateway::CreateTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
3442 }
3443 }
3444}
3445impl<R>
3446 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError, R>>
3447 for Error
3448where
3449 R: Send + Sync + std::fmt::Debug + 'static,
3450{
3451 fn from(
3452 err: ::aws_smithy_runtime_api::client::result::SdkError<
3453 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError,
3454 R,
3455 >,
3456 ) -> Self {
3457 match err {
3458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3461 source: err.into(),
3462 }),
3463 }
3464 }
3465}
3466impl From<crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError> for Error {
3467 fn from(err: crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError) -> Self {
3468 match err {
3469 crate::operation::create_transit_gateway_connect::CreateTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
3470 }
3471 }
3472}
3473impl<R>
3474 From<
3475 ::aws_smithy_runtime_api::client::result::SdkError<
3476 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3477 R,
3478 >,
3479 > for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(
3484 err: ::aws_smithy_runtime_api::client::result::SdkError<
3485 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError,
3486 R,
3487 >,
3488 ) -> Self {
3489 match err {
3490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3493 source: err.into(),
3494 }),
3495 }
3496 }
3497}
3498impl From<crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError> for Error {
3499 fn from(err: crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError) -> Self {
3500 match err {
3501 crate::operation::create_transit_gateway_connect_peer::CreateTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
3502 }
3503 }
3504}
3505impl<R>
3506 From<
3507 ::aws_smithy_runtime_api::client::result::SdkError<
3508 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3509 R,
3510 >,
3511 > for Error
3512where
3513 R: Send + Sync + std::fmt::Debug + 'static,
3514{
3515 fn from(
3516 err: ::aws_smithy_runtime_api::client::result::SdkError<
3517 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError,
3518 R,
3519 >,
3520 ) -> Self {
3521 match err {
3522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3525 source: err.into(),
3526 }),
3527 }
3528 }
3529}
3530impl From<crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError> for Error {
3531 fn from(err: crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError) -> Self {
3532 match err {
3533 crate::operation::create_transit_gateway_multicast_domain::CreateTransitGatewayMulticastDomainError::Unhandled(inner) => {
3534 Error::Unhandled(inner)
3535 }
3536 }
3537 }
3538}
3539impl<R>
3540 From<
3541 ::aws_smithy_runtime_api::client::result::SdkError<
3542 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3543 R,
3544 >,
3545 > for Error
3546where
3547 R: Send + Sync + std::fmt::Debug + 'static,
3548{
3549 fn from(
3550 err: ::aws_smithy_runtime_api::client::result::SdkError<
3551 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError,
3552 R,
3553 >,
3554 ) -> Self {
3555 match err {
3556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3559 source: err.into(),
3560 }),
3561 }
3562 }
3563}
3564impl From<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError> for Error {
3565 fn from(err: crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError) -> Self {
3566 match err {
3567 crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
3568 Error::Unhandled(inner)
3569 }
3570 }
3571 }
3572}
3573impl<R>
3574 From<
3575 ::aws_smithy_runtime_api::client::result::SdkError<
3576 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3577 R,
3578 >,
3579 > for Error
3580where
3581 R: Send + Sync + std::fmt::Debug + 'static,
3582{
3583 fn from(
3584 err: ::aws_smithy_runtime_api::client::result::SdkError<
3585 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError,
3586 R,
3587 >,
3588 ) -> Self {
3589 match err {
3590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3593 source: err.into(),
3594 }),
3595 }
3596 }
3597}
3598impl From<crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError> for Error {
3599 fn from(err: crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError) -> Self {
3600 match err {
3601 crate::operation::create_transit_gateway_policy_table::CreateTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
3602 }
3603 }
3604}
3605impl<R>
3606 From<
3607 ::aws_smithy_runtime_api::client::result::SdkError<
3608 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3609 R,
3610 >,
3611 > for Error
3612where
3613 R: Send + Sync + std::fmt::Debug + 'static,
3614{
3615 fn from(
3616 err: ::aws_smithy_runtime_api::client::result::SdkError<
3617 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError,
3618 R,
3619 >,
3620 ) -> Self {
3621 match err {
3622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3625 source: err.into(),
3626 }),
3627 }
3628 }
3629}
3630impl From<crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError> for Error {
3631 fn from(err: crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError) -> Self {
3632 match err {
3633 crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
3634 Error::Unhandled(inner)
3635 }
3636 }
3637 }
3638}
3639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>>
3640 for Error
3641where
3642 R: Send + Sync + std::fmt::Debug + 'static,
3643{
3644 fn from(
3645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError, R>,
3646 ) -> Self {
3647 match err {
3648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3651 source: err.into(),
3652 }),
3653 }
3654 }
3655}
3656impl From<crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError> for Error {
3657 fn from(err: crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError) -> Self {
3658 match err {
3659 crate::operation::create_transit_gateway_route::CreateTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
3660 }
3661 }
3662}
3663impl<R>
3664 From<
3665 ::aws_smithy_runtime_api::client::result::SdkError<
3666 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3667 R,
3668 >,
3669 > for Error
3670where
3671 R: Send + Sync + std::fmt::Debug + 'static,
3672{
3673 fn from(
3674 err: ::aws_smithy_runtime_api::client::result::SdkError<
3675 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError,
3676 R,
3677 >,
3678 ) -> Self {
3679 match err {
3680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3683 source: err.into(),
3684 }),
3685 }
3686 }
3687}
3688impl From<crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError> for Error {
3689 fn from(err: crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError) -> Self {
3690 match err {
3691 crate::operation::create_transit_gateway_route_table::CreateTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
3692 }
3693 }
3694}
3695impl<R>
3696 From<
3697 ::aws_smithy_runtime_api::client::result::SdkError<
3698 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3699 R,
3700 >,
3701 > for Error
3702where
3703 R: Send + Sync + std::fmt::Debug + 'static,
3704{
3705 fn from(
3706 err: ::aws_smithy_runtime_api::client::result::SdkError<
3707 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError,
3708 R,
3709 >,
3710 ) -> Self {
3711 match err {
3712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3715 source: err.into(),
3716 }),
3717 }
3718 }
3719}
3720impl From<crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError> for Error {
3721 fn from(err: crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError) -> Self {
3722 match err {
3723 crate::operation::create_transit_gateway_route_table_announcement::CreateTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
3724 Error::Unhandled(inner)
3725 }
3726 }
3727 }
3728}
3729impl<R>
3730 From<
3731 ::aws_smithy_runtime_api::client::result::SdkError<
3732 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3733 R,
3734 >,
3735 > for Error
3736where
3737 R: Send + Sync + std::fmt::Debug + 'static,
3738{
3739 fn from(
3740 err: ::aws_smithy_runtime_api::client::result::SdkError<
3741 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError,
3742 R,
3743 >,
3744 ) -> Self {
3745 match err {
3746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3749 source: err.into(),
3750 }),
3751 }
3752 }
3753}
3754impl From<crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError> for Error {
3755 fn from(err: crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError) -> Self {
3756 match err {
3757 crate::operation::create_transit_gateway_vpc_attachment::CreateTransitGatewayVpcAttachmentError::Unhandled(inner) => {
3758 Error::Unhandled(inner)
3759 }
3760 }
3761 }
3762}
3763impl<R>
3764 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError, R>>
3765 for Error
3766where
3767 R: Send + Sync + std::fmt::Debug + 'static,
3768{
3769 fn from(
3770 err: ::aws_smithy_runtime_api::client::result::SdkError<
3771 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError,
3772 R,
3773 >,
3774 ) -> Self {
3775 match err {
3776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3779 source: err.into(),
3780 }),
3781 }
3782 }
3783}
3784impl From<crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError> for Error {
3785 fn from(err: crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError) -> Self {
3786 match err {
3787 crate::operation::create_verified_access_endpoint::CreateVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3788 }
3789 }
3790}
3791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>>
3792 for Error
3793where
3794 R: Send + Sync + std::fmt::Debug + 'static,
3795{
3796 fn from(
3797 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError, R>,
3798 ) -> Self {
3799 match err {
3800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3803 source: err.into(),
3804 }),
3805 }
3806 }
3807}
3808impl From<crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError> for Error {
3809 fn from(err: crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError) -> Self {
3810 match err {
3811 crate::operation::create_verified_access_group::CreateVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
3812 }
3813 }
3814}
3815impl<R>
3816 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError, R>>
3817 for Error
3818where
3819 R: Send + Sync + std::fmt::Debug + 'static,
3820{
3821 fn from(
3822 err: ::aws_smithy_runtime_api::client::result::SdkError<
3823 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError,
3824 R,
3825 >,
3826 ) -> Self {
3827 match err {
3828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3831 source: err.into(),
3832 }),
3833 }
3834 }
3835}
3836impl From<crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError> for Error {
3837 fn from(err: crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError) -> Self {
3838 match err {
3839 crate::operation::create_verified_access_instance::CreateVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3840 }
3841 }
3842}
3843impl<R>
3844 From<
3845 ::aws_smithy_runtime_api::client::result::SdkError<
3846 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3847 R,
3848 >,
3849 > for Error
3850where
3851 R: Send + Sync + std::fmt::Debug + 'static,
3852{
3853 fn from(
3854 err: ::aws_smithy_runtime_api::client::result::SdkError<
3855 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError,
3856 R,
3857 >,
3858 ) -> Self {
3859 match err {
3860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3863 source: err.into(),
3864 }),
3865 }
3866 }
3867}
3868impl From<crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError> for Error {
3869 fn from(err: crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError) -> Self {
3870 match err {
3871 crate::operation::create_verified_access_trust_provider::CreateVerifiedAccessTrustProviderError::Unhandled(inner) => {
3872 Error::Unhandled(inner)
3873 }
3874 }
3875 }
3876}
3877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
3878where
3879 R: Send + Sync + std::fmt::Debug + 'static,
3880{
3881 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
3882 match err {
3883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3886 source: err.into(),
3887 }),
3888 }
3889 }
3890}
3891impl From<crate::operation::create_volume::CreateVolumeError> for Error {
3892 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
3893 match err {
3894 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>> for Error
3899where
3900 R: Send + Sync + std::fmt::Debug + 'static,
3901{
3902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc::CreateVpcError, R>) -> Self {
3903 match err {
3904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3907 source: err.into(),
3908 }),
3909 }
3910 }
3911}
3912impl From<crate::operation::create_vpc::CreateVpcError> for Error {
3913 fn from(err: crate::operation::create_vpc::CreateVpcError) -> Self {
3914 match err {
3915 crate::operation::create_vpc::CreateVpcError::Unhandled(inner) => Error::Unhandled(inner),
3916 }
3917 }
3918}
3919impl<R>
3920 From<
3921 ::aws_smithy_runtime_api::client::result::SdkError<
3922 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3923 R,
3924 >,
3925 > for Error
3926where
3927 R: Send + Sync + std::fmt::Debug + 'static,
3928{
3929 fn from(
3930 err: ::aws_smithy_runtime_api::client::result::SdkError<
3931 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError,
3932 R,
3933 >,
3934 ) -> Self {
3935 match err {
3936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3939 source: err.into(),
3940 }),
3941 }
3942 }
3943}
3944impl From<crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError> for Error {
3945 fn from(err: crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError) -> Self {
3946 match err {
3947 crate::operation::create_vpc_block_public_access_exclusion::CreateVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
3948 Error::Unhandled(inner)
3949 }
3950 }
3951 }
3952}
3953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
3954where
3955 R: Send + Sync + std::fmt::Debug + 'static,
3956{
3957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
3958 match err {
3959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3962 source: err.into(),
3963 }),
3964 }
3965 }
3966}
3967impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
3968 fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
3969 match err {
3970 crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3971 }
3972 }
3973}
3974impl<R>
3975 From<
3976 ::aws_smithy_runtime_api::client::result::SdkError<
3977 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3978 R,
3979 >,
3980 > for Error
3981where
3982 R: Send + Sync + std::fmt::Debug + 'static,
3983{
3984 fn from(
3985 err: ::aws_smithy_runtime_api::client::result::SdkError<
3986 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
3987 R,
3988 >,
3989 ) -> Self {
3990 match err {
3991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3994 source: err.into(),
3995 }),
3996 }
3997 }
3998}
3999impl From<crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError> for Error {
4000 fn from(err: crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError) -> Self {
4001 match err {
4002 crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError::Unhandled(inner) => {
4003 Error::Unhandled(inner)
4004 }
4005 }
4006 }
4007}
4008impl<R>
4009 From<
4010 ::aws_smithy_runtime_api::client::result::SdkError<
4011 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4012 R,
4013 >,
4014 > for Error
4015where
4016 R: Send + Sync + std::fmt::Debug + 'static,
4017{
4018 fn from(
4019 err: ::aws_smithy_runtime_api::client::result::SdkError<
4020 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError,
4021 R,
4022 >,
4023 ) -> Self {
4024 match err {
4025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4028 source: err.into(),
4029 }),
4030 }
4031 }
4032}
4033impl From<crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError> for Error {
4034 fn from(err: crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError) -> Self {
4035 match err {
4036 crate::operation::create_vpc_endpoint_service_configuration::CreateVpcEndpointServiceConfigurationError::Unhandled(inner) => {
4037 Error::Unhandled(inner)
4038 }
4039 }
4040 }
4041}
4042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>>
4043 for Error
4044where
4045 R: Send + Sync + std::fmt::Debug + 'static,
4046{
4047 fn from(
4048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError, R>,
4049 ) -> Self {
4050 match err {
4051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4054 source: err.into(),
4055 }),
4056 }
4057 }
4058}
4059impl From<crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError> for Error {
4060 fn from(err: crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError) -> Self {
4061 match err {
4062 crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4063 }
4064 }
4065}
4066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>> for Error
4067where
4068 R: Send + Sync + std::fmt::Debug + 'static,
4069{
4070 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection::CreateVpnConnectionError, R>) -> Self {
4071 match err {
4072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4075 source: err.into(),
4076 }),
4077 }
4078 }
4079}
4080impl From<crate::operation::create_vpn_connection::CreateVpnConnectionError> for Error {
4081 fn from(err: crate::operation::create_vpn_connection::CreateVpnConnectionError) -> Self {
4082 match err {
4083 crate::operation::create_vpn_connection::CreateVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
4084 }
4085 }
4086}
4087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>>
4088 for Error
4089where
4090 R: Send + Sync + std::fmt::Debug + 'static,
4091{
4092 fn from(
4093 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError, R>,
4094 ) -> Self {
4095 match err {
4096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4099 source: err.into(),
4100 }),
4101 }
4102 }
4103}
4104impl From<crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError> for Error {
4105 fn from(err: crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError) -> Self {
4106 match err {
4107 crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
4108 }
4109 }
4110}
4111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>> for Error
4112where
4113 R: Send + Sync + std::fmt::Debug + 'static,
4114{
4115 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpn_gateway::CreateVpnGatewayError, R>) -> Self {
4116 match err {
4117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4120 source: err.into(),
4121 }),
4122 }
4123 }
4124}
4125impl From<crate::operation::create_vpn_gateway::CreateVpnGatewayError> for Error {
4126 fn from(err: crate::operation::create_vpn_gateway::CreateVpnGatewayError) -> Self {
4127 match err {
4128 crate::operation::create_vpn_gateway::CreateVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4129 }
4130 }
4131}
4132impl<R>
4133 From<
4134 ::aws_smithy_runtime_api::client::result::SdkError<
4135 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4136 R,
4137 >,
4138 > for Error
4139where
4140 R: Send + Sync + std::fmt::Debug + 'static,
4141{
4142 fn from(
4143 err: ::aws_smithy_runtime_api::client::result::SdkError<
4144 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError,
4145 R,
4146 >,
4147 ) -> Self {
4148 match err {
4149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4152 source: err.into(),
4153 }),
4154 }
4155 }
4156}
4157impl From<crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError> for Error {
4158 fn from(err: crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError) -> Self {
4159 match err {
4160 crate::operation::delete_capacity_manager_data_export::DeleteCapacityManagerDataExportError::Unhandled(inner) => Error::Unhandled(inner),
4161 }
4162 }
4163}
4164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>> for Error
4165where
4166 R: Send + Sync + std::fmt::Debug + 'static,
4167{
4168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError, R>) -> Self {
4169 match err {
4170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4173 source: err.into(),
4174 }),
4175 }
4176 }
4177}
4178impl From<crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError> for Error {
4179 fn from(err: crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError) -> Self {
4180 match err {
4181 crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4182 }
4183 }
4184}
4185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>>
4186 for Error
4187where
4188 R: Send + Sync + std::fmt::Debug + 'static,
4189{
4190 fn from(
4191 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError, R>,
4192 ) -> Self {
4193 match err {
4194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4197 source: err.into(),
4198 }),
4199 }
4200 }
4201}
4202impl From<crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError> for Error {
4203 fn from(err: crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError) -> Self {
4204 match err {
4205 crate::operation::delete_client_vpn_endpoint::DeleteClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4206 }
4207 }
4208}
4209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>> for Error
4210where
4211 R: Send + Sync + std::fmt::Debug + 'static,
4212{
4213 fn from(
4214 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError, R>,
4215 ) -> Self {
4216 match err {
4217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4220 source: err.into(),
4221 }),
4222 }
4223 }
4224}
4225impl From<crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError> for Error {
4226 fn from(err: crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError) -> Self {
4227 match err {
4228 crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError::Unhandled(inner) => Error::Unhandled(inner),
4229 }
4230 }
4231}
4232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>> for Error
4233where
4234 R: Send + Sync + std::fmt::Debug + 'static,
4235{
4236 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_cidr::DeleteCoipCidrError, R>) -> Self {
4237 match err {
4238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4241 source: err.into(),
4242 }),
4243 }
4244 }
4245}
4246impl From<crate::operation::delete_coip_cidr::DeleteCoipCidrError> for Error {
4247 fn from(err: crate::operation::delete_coip_cidr::DeleteCoipCidrError) -> Self {
4248 match err {
4249 crate::operation::delete_coip_cidr::DeleteCoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
4250 }
4251 }
4252}
4253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>> for Error
4254where
4255 R: Send + Sync + std::fmt::Debug + 'static,
4256{
4257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_coip_pool::DeleteCoipPoolError, R>) -> Self {
4258 match err {
4259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4262 source: err.into(),
4263 }),
4264 }
4265 }
4266}
4267impl From<crate::operation::delete_coip_pool::DeleteCoipPoolError> for Error {
4268 fn from(err: crate::operation::delete_coip_pool::DeleteCoipPoolError) -> Self {
4269 match err {
4270 crate::operation::delete_coip_pool::DeleteCoipPoolError::Unhandled(inner) => Error::Unhandled(inner),
4271 }
4272 }
4273}
4274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>> for Error
4275where
4276 R: Send + Sync + std::fmt::Debug + 'static,
4277{
4278 fn from(
4279 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError, R>,
4280 ) -> Self {
4281 match err {
4282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4285 source: err.into(),
4286 }),
4287 }
4288 }
4289}
4290impl From<crate::operation::delete_customer_gateway::DeleteCustomerGatewayError> for Error {
4291 fn from(err: crate::operation::delete_customer_gateway::DeleteCustomerGatewayError) -> Self {
4292 match err {
4293 crate::operation::delete_customer_gateway::DeleteCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4294 }
4295 }
4296}
4297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>> for Error
4298where
4299 R: Send + Sync + std::fmt::Debug + 'static,
4300{
4301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError, R>) -> Self {
4302 match err {
4303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4306 source: err.into(),
4307 }),
4308 }
4309 }
4310}
4311impl From<crate::operation::delete_dhcp_options::DeleteDhcpOptionsError> for Error {
4312 fn from(err: crate::operation::delete_dhcp_options::DeleteDhcpOptionsError) -> Self {
4313 match err {
4314 crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4315 }
4316 }
4317}
4318impl<R>
4319 From<
4320 ::aws_smithy_runtime_api::client::result::SdkError<
4321 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4322 R,
4323 >,
4324 > for Error
4325where
4326 R: Send + Sync + std::fmt::Debug + 'static,
4327{
4328 fn from(
4329 err: ::aws_smithy_runtime_api::client::result::SdkError<
4330 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError,
4331 R,
4332 >,
4333 ) -> Self {
4334 match err {
4335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4338 source: err.into(),
4339 }),
4340 }
4341 }
4342}
4343impl From<crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError> for Error {
4344 fn from(err: crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError) -> Self {
4345 match err {
4346 crate::operation::delete_egress_only_internet_gateway::DeleteEgressOnlyInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4347 }
4348 }
4349}
4350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>> for Error
4351where
4352 R: Send + Sync + std::fmt::Debug + 'static,
4353{
4354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleets::DeleteFleetsError, R>) -> Self {
4355 match err {
4356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4359 source: err.into(),
4360 }),
4361 }
4362 }
4363}
4364impl From<crate::operation::delete_fleets::DeleteFleetsError> for Error {
4365 fn from(err: crate::operation::delete_fleets::DeleteFleetsError) -> Self {
4366 match err {
4367 crate::operation::delete_fleets::DeleteFleetsError::Unhandled(inner) => Error::Unhandled(inner),
4368 }
4369 }
4370}
4371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>> for Error
4372where
4373 R: Send + Sync + std::fmt::Debug + 'static,
4374{
4375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_logs::DeleteFlowLogsError, R>) -> Self {
4376 match err {
4377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4380 source: err.into(),
4381 }),
4382 }
4383 }
4384}
4385impl From<crate::operation::delete_flow_logs::DeleteFlowLogsError> for Error {
4386 fn from(err: crate::operation::delete_flow_logs::DeleteFlowLogsError) -> Self {
4387 match err {
4388 crate::operation::delete_flow_logs::DeleteFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
4389 }
4390 }
4391}
4392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>> for Error
4393where
4394 R: Send + Sync + std::fmt::Debug + 'static,
4395{
4396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fpga_image::DeleteFpgaImageError, R>) -> Self {
4397 match err {
4398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4401 source: err.into(),
4402 }),
4403 }
4404 }
4405}
4406impl From<crate::operation::delete_fpga_image::DeleteFpgaImageError> for Error {
4407 fn from(err: crate::operation::delete_fpga_image::DeleteFpgaImageError) -> Self {
4408 match err {
4409 crate::operation::delete_fpga_image::DeleteFpgaImageError::Unhandled(inner) => Error::Unhandled(inner),
4410 }
4411 }
4412}
4413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>>
4414 for Error
4415where
4416 R: Send + Sync + std::fmt::Debug + 'static,
4417{
4418 fn from(
4419 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_usage_report::DeleteImageUsageReportError, R>,
4420 ) -> Self {
4421 match err {
4422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4425 source: err.into(),
4426 }),
4427 }
4428 }
4429}
4430impl From<crate::operation::delete_image_usage_report::DeleteImageUsageReportError> for Error {
4431 fn from(err: crate::operation::delete_image_usage_report::DeleteImageUsageReportError) -> Self {
4432 match err {
4433 crate::operation::delete_image_usage_report::DeleteImageUsageReportError::Unhandled(inner) => Error::Unhandled(inner),
4434 }
4435 }
4436}
4437impl<R>
4438 From<
4439 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError, R>,
4440 > for Error
4441where
4442 R: Send + Sync + std::fmt::Debug + 'static,
4443{
4444 fn from(
4445 err: ::aws_smithy_runtime_api::client::result::SdkError<
4446 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError,
4447 R,
4448 >,
4449 ) -> Self {
4450 match err {
4451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4454 source: err.into(),
4455 }),
4456 }
4457 }
4458}
4459impl From<crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError> for Error {
4460 fn from(err: crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError) -> Self {
4461 match err {
4462 crate::operation::delete_instance_connect_endpoint::DeleteInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4463 }
4464 }
4465}
4466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>>
4467 for Error
4468where
4469 R: Send + Sync + std::fmt::Debug + 'static,
4470{
4471 fn from(
4472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError, R>,
4473 ) -> Self {
4474 match err {
4475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4478 source: err.into(),
4479 }),
4480 }
4481 }
4482}
4483impl From<crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError> for Error {
4484 fn from(err: crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError) -> Self {
4485 match err {
4486 crate::operation::delete_instance_event_window::DeleteInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
4487 }
4488 }
4489}
4490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>> for Error
4491where
4492 R: Send + Sync + std::fmt::Debug + 'static,
4493{
4494 fn from(
4495 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_internet_gateway::DeleteInternetGatewayError, R>,
4496 ) -> Self {
4497 match err {
4498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4501 source: err.into(),
4502 }),
4503 }
4504 }
4505}
4506impl From<crate::operation::delete_internet_gateway::DeleteInternetGatewayError> for Error {
4507 fn from(err: crate::operation::delete_internet_gateway::DeleteInternetGatewayError) -> Self {
4508 match err {
4509 crate::operation::delete_internet_gateway::DeleteInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4510 }
4511 }
4512}
4513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>> for Error
4514where
4515 R: Send + Sync + std::fmt::Debug + 'static,
4516{
4517 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam::DeleteIpamError, R>) -> Self {
4518 match err {
4519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4522 source: err.into(),
4523 }),
4524 }
4525 }
4526}
4527impl From<crate::operation::delete_ipam::DeleteIpamError> for Error {
4528 fn from(err: crate::operation::delete_ipam::DeleteIpamError) -> Self {
4529 match err {
4530 crate::operation::delete_ipam::DeleteIpamError::Unhandled(inner) => Error::Unhandled(inner),
4531 }
4532 }
4533}
4534impl<R>
4535 From<
4536 ::aws_smithy_runtime_api::client::result::SdkError<
4537 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4538 R,
4539 >,
4540 > for Error
4541where
4542 R: Send + Sync + std::fmt::Debug + 'static,
4543{
4544 fn from(
4545 err: ::aws_smithy_runtime_api::client::result::SdkError<
4546 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError,
4547 R,
4548 >,
4549 ) -> Self {
4550 match err {
4551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4554 source: err.into(),
4555 }),
4556 }
4557 }
4558}
4559impl From<crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError> for Error {
4560 fn from(err: crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError) -> Self {
4561 match err {
4562 crate::operation::delete_ipam_external_resource_verification_token::DeleteIpamExternalResourceVerificationTokenError::Unhandled(
4563 inner,
4564 ) => Error::Unhandled(inner),
4565 }
4566 }
4567}
4568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>> for Error
4569where
4570 R: Send + Sync + std::fmt::Debug + 'static,
4571{
4572 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_pool::DeleteIpamPoolError, R>) -> Self {
4573 match err {
4574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4577 source: err.into(),
4578 }),
4579 }
4580 }
4581}
4582impl From<crate::operation::delete_ipam_pool::DeleteIpamPoolError> for Error {
4583 fn from(err: crate::operation::delete_ipam_pool::DeleteIpamPoolError) -> Self {
4584 match err {
4585 crate::operation::delete_ipam_pool::DeleteIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
4586 }
4587 }
4588}
4589impl<R>
4590 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError, R>>
4591 for Error
4592where
4593 R: Send + Sync + std::fmt::Debug + 'static,
4594{
4595 fn from(
4596 err: ::aws_smithy_runtime_api::client::result::SdkError<
4597 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError,
4598 R,
4599 >,
4600 ) -> Self {
4601 match err {
4602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4605 source: err.into(),
4606 }),
4607 }
4608 }
4609}
4610impl From<crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError> for Error {
4611 fn from(err: crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError) -> Self {
4612 match err {
4613 crate::operation::delete_ipam_prefix_list_resolver::DeleteIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
4614 }
4615 }
4616}
4617impl<R>
4618 From<
4619 ::aws_smithy_runtime_api::client::result::SdkError<
4620 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4621 R,
4622 >,
4623 > for Error
4624where
4625 R: Send + Sync + std::fmt::Debug + 'static,
4626{
4627 fn from(
4628 err: ::aws_smithy_runtime_api::client::result::SdkError<
4629 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError,
4630 R,
4631 >,
4632 ) -> Self {
4633 match err {
4634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4637 source: err.into(),
4638 }),
4639 }
4640 }
4641}
4642impl From<crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError> for Error {
4643 fn from(err: crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError) -> Self {
4644 match err {
4645 crate::operation::delete_ipam_prefix_list_resolver_target::DeleteIpamPrefixListResolverTargetError::Unhandled(inner) => {
4646 Error::Unhandled(inner)
4647 }
4648 }
4649 }
4650}
4651impl<R>
4652 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError, R>>
4653 for Error
4654where
4655 R: Send + Sync + std::fmt::Debug + 'static,
4656{
4657 fn from(
4658 err: ::aws_smithy_runtime_api::client::result::SdkError<
4659 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError,
4660 R,
4661 >,
4662 ) -> Self {
4663 match err {
4664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4667 source: err.into(),
4668 }),
4669 }
4670 }
4671}
4672impl From<crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError> for Error {
4673 fn from(err: crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError) -> Self {
4674 match err {
4675 crate::operation::delete_ipam_resource_discovery::DeleteIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
4676 }
4677 }
4678}
4679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>> for Error
4680where
4681 R: Send + Sync + std::fmt::Debug + 'static,
4682{
4683 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ipam_scope::DeleteIpamScopeError, R>) -> Self {
4684 match err {
4685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4688 source: err.into(),
4689 }),
4690 }
4691 }
4692}
4693impl From<crate::operation::delete_ipam_scope::DeleteIpamScopeError> for Error {
4694 fn from(err: crate::operation::delete_ipam_scope::DeleteIpamScopeError) -> Self {
4695 match err {
4696 crate::operation::delete_ipam_scope::DeleteIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
4697 }
4698 }
4699}
4700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>> for Error
4701where
4702 R: Send + Sync + std::fmt::Debug + 'static,
4703{
4704 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key_pair::DeleteKeyPairError, R>) -> Self {
4705 match err {
4706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4709 source: err.into(),
4710 }),
4711 }
4712 }
4713}
4714impl From<crate::operation::delete_key_pair::DeleteKeyPairError> for Error {
4715 fn from(err: crate::operation::delete_key_pair::DeleteKeyPairError) -> Self {
4716 match err {
4717 crate::operation::delete_key_pair::DeleteKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
4718 }
4719 }
4720}
4721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>> for Error
4722where
4723 R: Send + Sync + std::fmt::Debug + 'static,
4724{
4725 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template::DeleteLaunchTemplateError, R>) -> Self {
4726 match err {
4727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4730 source: err.into(),
4731 }),
4732 }
4733 }
4734}
4735impl From<crate::operation::delete_launch_template::DeleteLaunchTemplateError> for Error {
4736 fn from(err: crate::operation::delete_launch_template::DeleteLaunchTemplateError) -> Self {
4737 match err {
4738 crate::operation::delete_launch_template::DeleteLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4739 }
4740 }
4741}
4742impl<R>
4743 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError, R>>
4744 for Error
4745where
4746 R: Send + Sync + std::fmt::Debug + 'static,
4747{
4748 fn from(
4749 err: ::aws_smithy_runtime_api::client::result::SdkError<
4750 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError,
4751 R,
4752 >,
4753 ) -> Self {
4754 match err {
4755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4758 source: err.into(),
4759 }),
4760 }
4761 }
4762}
4763impl From<crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError> for Error {
4764 fn from(err: crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError) -> Self {
4765 match err {
4766 crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
4767 }
4768 }
4769}
4770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>>
4771 for Error
4772where
4773 R: Send + Sync + std::fmt::Debug + 'static,
4774{
4775 fn from(
4776 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError, R>,
4777 ) -> Self {
4778 match err {
4779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4782 source: err.into(),
4783 }),
4784 }
4785 }
4786}
4787impl From<crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError> for Error {
4788 fn from(err: crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError) -> Self {
4789 match err {
4790 crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
4791 }
4792 }
4793}
4794impl<R>
4795 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError, R>>
4796 for Error
4797where
4798 R: Send + Sync + std::fmt::Debug + 'static,
4799{
4800 fn from(
4801 err: ::aws_smithy_runtime_api::client::result::SdkError<
4802 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError,
4803 R,
4804 >,
4805 ) -> Self {
4806 match err {
4807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4810 source: err.into(),
4811 }),
4812 }
4813 }
4814}
4815impl From<crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError> for Error {
4816 fn from(err: crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError) -> Self {
4817 match err {
4818 crate::operation::delete_local_gateway_route_table::DeleteLocalGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
4819 }
4820 }
4821}
4822impl<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 {
4823 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, R>) -> Self {
4824 match err {
4825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4826 _ => Error::Unhandled(
4827 crate::error::sealed_unhandled::Unhandled {
4828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4829 source: err.into(),
4830 }
4831 ),
4832 }
4833 }
4834}
4835impl From<crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError> for Error {
4836 fn from(err: crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError) -> Self {
4837 match err {
4838 crate::operation::delete_local_gateway_route_table_virtual_interface_group_association::DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError::Unhandled(inner) => Error::Unhandled(inner),
4839 }
4840 }
4841}
4842impl<R>
4843 From<
4844 ::aws_smithy_runtime_api::client::result::SdkError<
4845 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4846 R,
4847 >,
4848 > for Error
4849where
4850 R: Send + Sync + std::fmt::Debug + 'static,
4851{
4852 fn from(
4853 err: ::aws_smithy_runtime_api::client::result::SdkError<
4854 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError,
4855 R,
4856 >,
4857 ) -> Self {
4858 match err {
4859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4862 source: err.into(),
4863 }),
4864 }
4865 }
4866}
4867impl From<crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError> for Error {
4868 fn from(err: crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError) -> Self {
4869 match err {
4870 crate::operation::delete_local_gateway_route_table_vpc_association::DeleteLocalGatewayRouteTableVpcAssociationError::Unhandled(inner) => {
4871 Error::Unhandled(inner)
4872 }
4873 }
4874 }
4875}
4876impl<R>
4877 From<
4878 ::aws_smithy_runtime_api::client::result::SdkError<
4879 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4880 R,
4881 >,
4882 > for Error
4883where
4884 R: Send + Sync + std::fmt::Debug + 'static,
4885{
4886 fn from(
4887 err: ::aws_smithy_runtime_api::client::result::SdkError<
4888 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError,
4889 R,
4890 >,
4891 ) -> Self {
4892 match err {
4893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4896 source: err.into(),
4897 }),
4898 }
4899 }
4900}
4901impl From<crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError> for Error {
4902 fn from(err: crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError) -> Self {
4903 match err {
4904 crate::operation::delete_local_gateway_virtual_interface::DeleteLocalGatewayVirtualInterfaceError::Unhandled(inner) => {
4905 Error::Unhandled(inner)
4906 }
4907 }
4908 }
4909}
4910impl<R>
4911 From<
4912 ::aws_smithy_runtime_api::client::result::SdkError<
4913 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4914 R,
4915 >,
4916 > for Error
4917where
4918 R: Send + Sync + std::fmt::Debug + 'static,
4919{
4920 fn from(
4921 err: ::aws_smithy_runtime_api::client::result::SdkError<
4922 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
4923 R,
4924 >,
4925 ) -> Self {
4926 match err {
4927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4930 source: err.into(),
4931 }),
4932 }
4933 }
4934}
4935impl From<crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError> for Error {
4936 fn from(err: crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError) -> Self {
4937 match err {
4938 crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError::Unhandled(inner) => {
4939 Error::Unhandled(inner)
4940 }
4941 }
4942 }
4943}
4944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>>
4945 for Error
4946where
4947 R: Send + Sync + std::fmt::Debug + 'static,
4948{
4949 fn from(
4950 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError, R>,
4951 ) -> Self {
4952 match err {
4953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4956 source: err.into(),
4957 }),
4958 }
4959 }
4960}
4961impl From<crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError> for Error {
4962 fn from(err: crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError) -> Self {
4963 match err {
4964 crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
4965 }
4966 }
4967}
4968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>> for Error
4969where
4970 R: Send + Sync + std::fmt::Debug + 'static,
4971{
4972 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_nat_gateway::DeleteNatGatewayError, R>) -> Self {
4973 match err {
4974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4977 source: err.into(),
4978 }),
4979 }
4980 }
4981}
4982impl From<crate::operation::delete_nat_gateway::DeleteNatGatewayError> for Error {
4983 fn from(err: crate::operation::delete_nat_gateway::DeleteNatGatewayError) -> Self {
4984 match err {
4985 crate::operation::delete_nat_gateway::DeleteNatGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4986 }
4987 }
4988}
4989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>> for Error
4990where
4991 R: Send + Sync + std::fmt::Debug + 'static,
4992{
4993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl::DeleteNetworkAclError, R>) -> Self {
4994 match err {
4995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4998 source: err.into(),
4999 }),
5000 }
5001 }
5002}
5003impl From<crate::operation::delete_network_acl::DeleteNetworkAclError> for Error {
5004 fn from(err: crate::operation::delete_network_acl::DeleteNetworkAclError) -> Self {
5005 match err {
5006 crate::operation::delete_network_acl::DeleteNetworkAclError::Unhandled(inner) => Error::Unhandled(inner),
5007 }
5008 }
5009}
5010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>> for Error
5011where
5012 R: Send + Sync + std::fmt::Debug + 'static,
5013{
5014 fn from(
5015 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError, R>,
5016 ) -> Self {
5017 match err {
5018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5021 source: err.into(),
5022 }),
5023 }
5024 }
5025}
5026impl From<crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError> for Error {
5027 fn from(err: crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError) -> Self {
5028 match err {
5029 crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
5030 }
5031 }
5032}
5033impl<R>
5034 From<
5035 ::aws_smithy_runtime_api::client::result::SdkError<
5036 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
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_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError,
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_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError> for Error {
5059 fn from(err: crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError) -> Self {
5060 match err {
5061 crate::operation::delete_network_insights_access_scope::DeleteNetworkInsightsAccessScopeError::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_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
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_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError,
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_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError> for Error {
5093 fn from(err: crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError) -> Self {
5094 match err {
5095 crate::operation::delete_network_insights_access_scope_analysis::DeleteNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
5096 Error::Unhandled(inner)
5097 }
5098 }
5099 }
5100}
5101impl<R>
5102 From<
5103 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError, R>,
5104 > for Error
5105where
5106 R: Send + Sync + std::fmt::Debug + 'static,
5107{
5108 fn from(
5109 err: ::aws_smithy_runtime_api::client::result::SdkError<
5110 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError,
5111 R,
5112 >,
5113 ) -> Self {
5114 match err {
5115 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5116 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5117 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5118 source: err.into(),
5119 }),
5120 }
5121 }
5122}
5123impl From<crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError> for Error {
5124 fn from(err: crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError) -> Self {
5125 match err {
5126 crate::operation::delete_network_insights_analysis::DeleteNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
5127 }
5128 }
5129}
5130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>>
5131 for Error
5132where
5133 R: Send + Sync + std::fmt::Debug + 'static,
5134{
5135 fn from(
5136 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError, R>,
5137 ) -> Self {
5138 match err {
5139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5142 source: err.into(),
5143 }),
5144 }
5145 }
5146}
5147impl From<crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError> for Error {
5148 fn from(err: crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError) -> Self {
5149 match err {
5150 crate::operation::delete_network_insights_path::DeleteNetworkInsightsPathError::Unhandled(inner) => Error::Unhandled(inner),
5151 }
5152 }
5153}
5154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>> for Error
5155where
5156 R: Send + Sync + std::fmt::Debug + 'static,
5157{
5158 fn from(
5159 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_interface::DeleteNetworkInterfaceError, R>,
5160 ) -> Self {
5161 match err {
5162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5165 source: err.into(),
5166 }),
5167 }
5168 }
5169}
5170impl From<crate::operation::delete_network_interface::DeleteNetworkInterfaceError> for Error {
5171 fn from(err: crate::operation::delete_network_interface::DeleteNetworkInterfaceError) -> Self {
5172 match err {
5173 crate::operation::delete_network_interface::DeleteNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
5174 }
5175 }
5176}
5177impl<R>
5178 From<
5179 ::aws_smithy_runtime_api::client::result::SdkError<
5180 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5181 R,
5182 >,
5183 > for Error
5184where
5185 R: Send + Sync + std::fmt::Debug + 'static,
5186{
5187 fn from(
5188 err: ::aws_smithy_runtime_api::client::result::SdkError<
5189 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError,
5190 R,
5191 >,
5192 ) -> Self {
5193 match err {
5194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5197 source: err.into(),
5198 }),
5199 }
5200 }
5201}
5202impl From<crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError> for Error {
5203 fn from(err: crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError) -> Self {
5204 match err {
5205 crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError::Unhandled(inner) => Error::Unhandled(inner),
5206 }
5207 }
5208}
5209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>> for Error
5210where
5211 R: Send + Sync + std::fmt::Debug + 'static,
5212{
5213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_placement_group::DeletePlacementGroupError, R>) -> Self {
5214 match err {
5215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5218 source: err.into(),
5219 }),
5220 }
5221 }
5222}
5223impl From<crate::operation::delete_placement_group::DeletePlacementGroupError> for Error {
5224 fn from(err: crate::operation::delete_placement_group::DeletePlacementGroupError) -> Self {
5225 match err {
5226 crate::operation::delete_placement_group::DeletePlacementGroupError::Unhandled(inner) => Error::Unhandled(inner),
5227 }
5228 }
5229}
5230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>> for Error
5231where
5232 R: Send + Sync + std::fmt::Debug + 'static,
5233{
5234 fn from(
5235 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError, R>,
5236 ) -> Self {
5237 match err {
5238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5241 source: err.into(),
5242 }),
5243 }
5244 }
5245}
5246impl From<crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError> for Error {
5247 fn from(err: crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError) -> Self {
5248 match err {
5249 crate::operation::delete_public_ipv4_pool::DeletePublicIpv4PoolError::Unhandled(inner) => Error::Unhandled(inner),
5250 }
5251 }
5252}
5253impl<R>
5254 From<
5255 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError, R>,
5256 > for Error
5257where
5258 R: Send + Sync + std::fmt::Debug + 'static,
5259{
5260 fn from(
5261 err: ::aws_smithy_runtime_api::client::result::SdkError<
5262 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
5263 R,
5264 >,
5265 ) -> Self {
5266 match err {
5267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5270 source: err.into(),
5271 }),
5272 }
5273 }
5274}
5275impl From<crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError> for Error {
5276 fn from(err: crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError) -> Self {
5277 match err {
5278 crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
5279 }
5280 }
5281}
5282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
5283where
5284 R: Send + Sync + std::fmt::Debug + 'static,
5285{
5286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
5287 match err {
5288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5291 source: err.into(),
5292 }),
5293 }
5294 }
5295}
5296impl From<crate::operation::delete_route::DeleteRouteError> for Error {
5297 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
5298 match err {
5299 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
5300 }
5301 }
5302}
5303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>> for Error
5304where
5305 R: Send + Sync + std::fmt::Debug + 'static,
5306{
5307 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server::DeleteRouteServerError, R>) -> Self {
5308 match err {
5309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5312 source: err.into(),
5313 }),
5314 }
5315 }
5316}
5317impl From<crate::operation::delete_route_server::DeleteRouteServerError> for Error {
5318 fn from(err: crate::operation::delete_route_server::DeleteRouteServerError) -> Self {
5319 match err {
5320 crate::operation::delete_route_server::DeleteRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
5321 }
5322 }
5323}
5324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>>
5325 for Error
5326where
5327 R: Send + Sync + std::fmt::Debug + 'static,
5328{
5329 fn from(
5330 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError, R>,
5331 ) -> Self {
5332 match err {
5333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5336 source: err.into(),
5337 }),
5338 }
5339 }
5340}
5341impl From<crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError> for Error {
5342 fn from(err: crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError) -> Self {
5343 match err {
5344 crate::operation::delete_route_server_endpoint::DeleteRouteServerEndpointError::Unhandled(inner) => Error::Unhandled(inner),
5345 }
5346 }
5347}
5348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>> for Error
5349where
5350 R: Send + Sync + std::fmt::Debug + 'static,
5351{
5352 fn from(
5353 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError, R>,
5354 ) -> Self {
5355 match err {
5356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5359 source: err.into(),
5360 }),
5361 }
5362 }
5363}
5364impl From<crate::operation::delete_route_server_peer::DeleteRouteServerPeerError> for Error {
5365 fn from(err: crate::operation::delete_route_server_peer::DeleteRouteServerPeerError) -> Self {
5366 match err {
5367 crate::operation::delete_route_server_peer::DeleteRouteServerPeerError::Unhandled(inner) => Error::Unhandled(inner),
5368 }
5369 }
5370}
5371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>> for Error
5372where
5373 R: Send + Sync + std::fmt::Debug + 'static,
5374{
5375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_table::DeleteRouteTableError, R>) -> Self {
5376 match err {
5377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5380 source: err.into(),
5381 }),
5382 }
5383 }
5384}
5385impl From<crate::operation::delete_route_table::DeleteRouteTableError> for Error {
5386 fn from(err: crate::operation::delete_route_table::DeleteRouteTableError) -> Self {
5387 match err {
5388 crate::operation::delete_route_table::DeleteRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5389 }
5390 }
5391}
5392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
5393where
5394 R: Send + Sync + std::fmt::Debug + 'static,
5395{
5396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
5397 match err {
5398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5401 source: err.into(),
5402 }),
5403 }
5404 }
5405}
5406impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
5407 fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
5408 match err {
5409 crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
5410 }
5411 }
5412}
5413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
5414where
5415 R: Send + Sync + std::fmt::Debug + 'static,
5416{
5417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
5418 match err {
5419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5422 source: err.into(),
5423 }),
5424 }
5425 }
5426}
5427impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
5428 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
5429 match err {
5430 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5431 }
5432 }
5433}
5434impl<R>
5435 From<
5436 ::aws_smithy_runtime_api::client::result::SdkError<
5437 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5438 R,
5439 >,
5440 > for Error
5441where
5442 R: Send + Sync + std::fmt::Debug + 'static,
5443{
5444 fn from(
5445 err: ::aws_smithy_runtime_api::client::result::SdkError<
5446 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError,
5447 R,
5448 >,
5449 ) -> Self {
5450 match err {
5451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5454 source: err.into(),
5455 }),
5456 }
5457 }
5458}
5459impl From<crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError> for Error {
5460 fn from(err: crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError) -> Self {
5461 match err {
5462 crate::operation::delete_spot_datafeed_subscription::DeleteSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5463 }
5464 }
5465}
5466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>> for Error
5467where
5468 R: Send + Sync + std::fmt::Debug + 'static,
5469{
5470 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet::DeleteSubnetError, R>) -> Self {
5471 match err {
5472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5475 source: err.into(),
5476 }),
5477 }
5478 }
5479}
5480impl From<crate::operation::delete_subnet::DeleteSubnetError> for Error {
5481 fn from(err: crate::operation::delete_subnet::DeleteSubnetError) -> Self {
5482 match err {
5483 crate::operation::delete_subnet::DeleteSubnetError::Unhandled(inner) => Error::Unhandled(inner),
5484 }
5485 }
5486}
5487impl<R>
5488 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError, R>>
5489 for Error
5490where
5491 R: Send + Sync + std::fmt::Debug + 'static,
5492{
5493 fn from(
5494 err: ::aws_smithy_runtime_api::client::result::SdkError<
5495 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError,
5496 R,
5497 >,
5498 ) -> 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_subnet_cidr_reservation::DeleteSubnetCidrReservationError> for Error {
5509 fn from(err: crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError) -> Self {
5510 match err {
5511 crate::operation::delete_subnet_cidr_reservation::DeleteSubnetCidrReservationError::Unhandled(inner) => Error::Unhandled(inner),
5512 }
5513 }
5514}
5515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
5516where
5517 R: Send + Sync + std::fmt::Debug + 'static,
5518{
5519 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
5520 match err {
5521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5524 source: err.into(),
5525 }),
5526 }
5527 }
5528}
5529impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
5530 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
5531 match err {
5532 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
5533 }
5534 }
5535}
5536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>>
5537 for Error
5538where
5539 R: Send + Sync + std::fmt::Debug + 'static,
5540{
5541 fn from(
5542 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError, R>,
5543 ) -> Self {
5544 match err {
5545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5548 source: err.into(),
5549 }),
5550 }
5551 }
5552}
5553impl From<crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError> for Error {
5554 fn from(err: crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError) -> Self {
5555 match err {
5556 crate::operation::delete_traffic_mirror_filter::DeleteTrafficMirrorFilterError::Unhandled(inner) => Error::Unhandled(inner),
5557 }
5558 }
5559}
5560impl<R>
5561 From<
5562 ::aws_smithy_runtime_api::client::result::SdkError<
5563 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5564 R,
5565 >,
5566 > for Error
5567where
5568 R: Send + Sync + std::fmt::Debug + 'static,
5569{
5570 fn from(
5571 err: ::aws_smithy_runtime_api::client::result::SdkError<
5572 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError,
5573 R,
5574 >,
5575 ) -> Self {
5576 match err {
5577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5580 source: err.into(),
5581 }),
5582 }
5583 }
5584}
5585impl From<crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError> for Error {
5586 fn from(err: crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError) -> Self {
5587 match err {
5588 crate::operation::delete_traffic_mirror_filter_rule::DeleteTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
5589 }
5590 }
5591}
5592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>>
5593 for Error
5594where
5595 R: Send + Sync + std::fmt::Debug + 'static,
5596{
5597 fn from(
5598 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError, R>,
5599 ) -> Self {
5600 match err {
5601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5604 source: err.into(),
5605 }),
5606 }
5607 }
5608}
5609impl From<crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError> for Error {
5610 fn from(err: crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError) -> Self {
5611 match err {
5612 crate::operation::delete_traffic_mirror_session::DeleteTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
5613 }
5614 }
5615}
5616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>>
5617 for Error
5618where
5619 R: Send + Sync + std::fmt::Debug + 'static,
5620{
5621 fn from(
5622 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError, R>,
5623 ) -> Self {
5624 match err {
5625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5628 source: err.into(),
5629 }),
5630 }
5631 }
5632}
5633impl From<crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError> for Error {
5634 fn from(err: crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError) -> Self {
5635 match err {
5636 crate::operation::delete_traffic_mirror_target::DeleteTrafficMirrorTargetError::Unhandled(inner) => Error::Unhandled(inner),
5637 }
5638 }
5639}
5640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>> for Error
5641where
5642 R: Send + Sync + std::fmt::Debug + 'static,
5643{
5644 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway::DeleteTransitGatewayError, R>) -> Self {
5645 match err {
5646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5649 source: err.into(),
5650 }),
5651 }
5652 }
5653}
5654impl From<crate::operation::delete_transit_gateway::DeleteTransitGatewayError> for Error {
5655 fn from(err: crate::operation::delete_transit_gateway::DeleteTransitGatewayError) -> Self {
5656 match err {
5657 crate::operation::delete_transit_gateway::DeleteTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
5658 }
5659 }
5660}
5661impl<R>
5662 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError, R>>
5663 for Error
5664where
5665 R: Send + Sync + std::fmt::Debug + 'static,
5666{
5667 fn from(
5668 err: ::aws_smithy_runtime_api::client::result::SdkError<
5669 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError,
5670 R,
5671 >,
5672 ) -> Self {
5673 match err {
5674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5677 source: err.into(),
5678 }),
5679 }
5680 }
5681}
5682impl From<crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError> for Error {
5683 fn from(err: crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError) -> Self {
5684 match err {
5685 crate::operation::delete_transit_gateway_connect::DeleteTransitGatewayConnectError::Unhandled(inner) => Error::Unhandled(inner),
5686 }
5687 }
5688}
5689impl<R>
5690 From<
5691 ::aws_smithy_runtime_api::client::result::SdkError<
5692 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5693 R,
5694 >,
5695 > for Error
5696where
5697 R: Send + Sync + std::fmt::Debug + 'static,
5698{
5699 fn from(
5700 err: ::aws_smithy_runtime_api::client::result::SdkError<
5701 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError,
5702 R,
5703 >,
5704 ) -> Self {
5705 match err {
5706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5709 source: err.into(),
5710 }),
5711 }
5712 }
5713}
5714impl From<crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError> for Error {
5715 fn from(err: crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError) -> Self {
5716 match err {
5717 crate::operation::delete_transit_gateway_connect_peer::DeleteTransitGatewayConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
5718 }
5719 }
5720}
5721impl<R>
5722 From<
5723 ::aws_smithy_runtime_api::client::result::SdkError<
5724 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5725 R,
5726 >,
5727 > for Error
5728where
5729 R: Send + Sync + std::fmt::Debug + 'static,
5730{
5731 fn from(
5732 err: ::aws_smithy_runtime_api::client::result::SdkError<
5733 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError,
5734 R,
5735 >,
5736 ) -> Self {
5737 match err {
5738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5741 source: err.into(),
5742 }),
5743 }
5744 }
5745}
5746impl From<crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError> for Error {
5747 fn from(err: crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError) -> Self {
5748 match err {
5749 crate::operation::delete_transit_gateway_multicast_domain::DeleteTransitGatewayMulticastDomainError::Unhandled(inner) => {
5750 Error::Unhandled(inner)
5751 }
5752 }
5753 }
5754}
5755impl<R>
5756 From<
5757 ::aws_smithy_runtime_api::client::result::SdkError<
5758 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5759 R,
5760 >,
5761 > for Error
5762where
5763 R: Send + Sync + std::fmt::Debug + 'static,
5764{
5765 fn from(
5766 err: ::aws_smithy_runtime_api::client::result::SdkError<
5767 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError,
5768 R,
5769 >,
5770 ) -> Self {
5771 match err {
5772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5775 source: err.into(),
5776 }),
5777 }
5778 }
5779}
5780impl From<crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError> for Error {
5781 fn from(err: crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError) -> Self {
5782 match err {
5783 crate::operation::delete_transit_gateway_peering_attachment::DeleteTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
5784 Error::Unhandled(inner)
5785 }
5786 }
5787 }
5788}
5789impl<R>
5790 From<
5791 ::aws_smithy_runtime_api::client::result::SdkError<
5792 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5793 R,
5794 >,
5795 > for Error
5796where
5797 R: Send + Sync + std::fmt::Debug + 'static,
5798{
5799 fn from(
5800 err: ::aws_smithy_runtime_api::client::result::SdkError<
5801 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError,
5802 R,
5803 >,
5804 ) -> Self {
5805 match err {
5806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5809 source: err.into(),
5810 }),
5811 }
5812 }
5813}
5814impl From<crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError> for Error {
5815 fn from(err: crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError) -> Self {
5816 match err {
5817 crate::operation::delete_transit_gateway_policy_table::DeleteTransitGatewayPolicyTableError::Unhandled(inner) => Error::Unhandled(inner),
5818 }
5819 }
5820}
5821impl<R>
5822 From<
5823 ::aws_smithy_runtime_api::client::result::SdkError<
5824 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5825 R,
5826 >,
5827 > for Error
5828where
5829 R: Send + Sync + std::fmt::Debug + 'static,
5830{
5831 fn from(
5832 err: ::aws_smithy_runtime_api::client::result::SdkError<
5833 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError,
5834 R,
5835 >,
5836 ) -> Self {
5837 match err {
5838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5841 source: err.into(),
5842 }),
5843 }
5844 }
5845}
5846impl From<crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError> for Error {
5847 fn from(err: crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError) -> Self {
5848 match err {
5849 crate::operation::delete_transit_gateway_prefix_list_reference::DeleteTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
5850 Error::Unhandled(inner)
5851 }
5852 }
5853 }
5854}
5855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>>
5856 for Error
5857where
5858 R: Send + Sync + std::fmt::Debug + 'static,
5859{
5860 fn from(
5861 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError, R>,
5862 ) -> Self {
5863 match err {
5864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5867 source: err.into(),
5868 }),
5869 }
5870 }
5871}
5872impl From<crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError> for Error {
5873 fn from(err: crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError) -> Self {
5874 match err {
5875 crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
5876 }
5877 }
5878}
5879impl<R>
5880 From<
5881 ::aws_smithy_runtime_api::client::result::SdkError<
5882 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5883 R,
5884 >,
5885 > for Error
5886where
5887 R: Send + Sync + std::fmt::Debug + 'static,
5888{
5889 fn from(
5890 err: ::aws_smithy_runtime_api::client::result::SdkError<
5891 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError,
5892 R,
5893 >,
5894 ) -> Self {
5895 match err {
5896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5899 source: err.into(),
5900 }),
5901 }
5902 }
5903}
5904impl From<crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError> for Error {
5905 fn from(err: crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError) -> Self {
5906 match err {
5907 crate::operation::delete_transit_gateway_route_table::DeleteTransitGatewayRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
5908 }
5909 }
5910}
5911impl<R>
5912 From<
5913 ::aws_smithy_runtime_api::client::result::SdkError<
5914 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5915 R,
5916 >,
5917 > for Error
5918where
5919 R: Send + Sync + std::fmt::Debug + 'static,
5920{
5921 fn from(
5922 err: ::aws_smithy_runtime_api::client::result::SdkError<
5923 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError,
5924 R,
5925 >,
5926 ) -> Self {
5927 match err {
5928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5931 source: err.into(),
5932 }),
5933 }
5934 }
5935}
5936impl From<crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError> for Error {
5937 fn from(err: crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError) -> Self {
5938 match err {
5939 crate::operation::delete_transit_gateway_route_table_announcement::DeleteTransitGatewayRouteTableAnnouncementError::Unhandled(inner) => {
5940 Error::Unhandled(inner)
5941 }
5942 }
5943 }
5944}
5945impl<R>
5946 From<
5947 ::aws_smithy_runtime_api::client::result::SdkError<
5948 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5949 R,
5950 >,
5951 > for Error
5952where
5953 R: Send + Sync + std::fmt::Debug + 'static,
5954{
5955 fn from(
5956 err: ::aws_smithy_runtime_api::client::result::SdkError<
5957 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError,
5958 R,
5959 >,
5960 ) -> Self {
5961 match err {
5962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5965 source: err.into(),
5966 }),
5967 }
5968 }
5969}
5970impl From<crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError> for Error {
5971 fn from(err: crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError) -> Self {
5972 match err {
5973 crate::operation::delete_transit_gateway_vpc_attachment::DeleteTransitGatewayVpcAttachmentError::Unhandled(inner) => {
5974 Error::Unhandled(inner)
5975 }
5976 }
5977 }
5978}
5979impl<R>
5980 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError, R>>
5981 for Error
5982where
5983 R: Send + Sync + std::fmt::Debug + 'static,
5984{
5985 fn from(
5986 err: ::aws_smithy_runtime_api::client::result::SdkError<
5987 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError,
5988 R,
5989 >,
5990 ) -> Self {
5991 match err {
5992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5995 source: err.into(),
5996 }),
5997 }
5998 }
5999}
6000impl From<crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError> for Error {
6001 fn from(err: crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError) -> Self {
6002 match err {
6003 crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
6004 }
6005 }
6006}
6007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>>
6008 for Error
6009where
6010 R: Send + Sync + std::fmt::Debug + 'static,
6011{
6012 fn from(
6013 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError, R>,
6014 ) -> Self {
6015 match err {
6016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6019 source: err.into(),
6020 }),
6021 }
6022 }
6023}
6024impl From<crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError> for Error {
6025 fn from(err: crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError) -> Self {
6026 match err {
6027 crate::operation::delete_verified_access_group::DeleteVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
6028 }
6029 }
6030}
6031impl<R>
6032 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError, R>>
6033 for Error
6034where
6035 R: Send + Sync + std::fmt::Debug + 'static,
6036{
6037 fn from(
6038 err: ::aws_smithy_runtime_api::client::result::SdkError<
6039 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError,
6040 R,
6041 >,
6042 ) -> Self {
6043 match err {
6044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6047 source: err.into(),
6048 }),
6049 }
6050 }
6051}
6052impl From<crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError> for Error {
6053 fn from(err: crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError) -> Self {
6054 match err {
6055 crate::operation::delete_verified_access_instance::DeleteVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
6056 }
6057 }
6058}
6059impl<R>
6060 From<
6061 ::aws_smithy_runtime_api::client::result::SdkError<
6062 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6063 R,
6064 >,
6065 > for Error
6066where
6067 R: Send + Sync + std::fmt::Debug + 'static,
6068{
6069 fn from(
6070 err: ::aws_smithy_runtime_api::client::result::SdkError<
6071 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError,
6072 R,
6073 >,
6074 ) -> Self {
6075 match err {
6076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6079 source: err.into(),
6080 }),
6081 }
6082 }
6083}
6084impl From<crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError> for Error {
6085 fn from(err: crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError) -> Self {
6086 match err {
6087 crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderError::Unhandled(inner) => {
6088 Error::Unhandled(inner)
6089 }
6090 }
6091 }
6092}
6093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
6094where
6095 R: Send + Sync + std::fmt::Debug + 'static,
6096{
6097 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
6098 match err {
6099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6102 source: err.into(),
6103 }),
6104 }
6105 }
6106}
6107impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
6108 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
6109 match err {
6110 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
6111 }
6112 }
6113}
6114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>> for Error
6115where
6116 R: Send + Sync + std::fmt::Debug + 'static,
6117{
6118 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc::DeleteVpcError, R>) -> Self {
6119 match err {
6120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6123 source: err.into(),
6124 }),
6125 }
6126 }
6127}
6128impl From<crate::operation::delete_vpc::DeleteVpcError> for Error {
6129 fn from(err: crate::operation::delete_vpc::DeleteVpcError) -> Self {
6130 match err {
6131 crate::operation::delete_vpc::DeleteVpcError::Unhandled(inner) => Error::Unhandled(inner),
6132 }
6133 }
6134}
6135impl<R>
6136 From<
6137 ::aws_smithy_runtime_api::client::result::SdkError<
6138 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6139 R,
6140 >,
6141 > for Error
6142where
6143 R: Send + Sync + std::fmt::Debug + 'static,
6144{
6145 fn from(
6146 err: ::aws_smithy_runtime_api::client::result::SdkError<
6147 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError,
6148 R,
6149 >,
6150 ) -> Self {
6151 match err {
6152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6155 source: err.into(),
6156 }),
6157 }
6158 }
6159}
6160impl From<crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError> for Error {
6161 fn from(err: crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError) -> Self {
6162 match err {
6163 crate::operation::delete_vpc_block_public_access_exclusion::DeleteVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
6164 Error::Unhandled(inner)
6165 }
6166 }
6167 }
6168}
6169impl<R>
6170 From<
6171 ::aws_smithy_runtime_api::client::result::SdkError<
6172 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6173 R,
6174 >,
6175 > for Error
6176where
6177 R: Send + Sync + std::fmt::Debug + 'static,
6178{
6179 fn from(
6180 err: ::aws_smithy_runtime_api::client::result::SdkError<
6181 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError,
6182 R,
6183 >,
6184 ) -> Self {
6185 match err {
6186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6189 source: err.into(),
6190 }),
6191 }
6192 }
6193}
6194impl From<crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError> for Error {
6195 fn from(err: crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError) -> Self {
6196 match err {
6197 crate::operation::delete_vpc_endpoint_connection_notifications::DeleteVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
6198 Error::Unhandled(inner)
6199 }
6200 }
6201 }
6202}
6203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>> for Error
6204where
6205 R: Send + Sync + std::fmt::Debug + 'static,
6206{
6207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError, R>) -> Self {
6208 match err {
6209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6212 source: err.into(),
6213 }),
6214 }
6215 }
6216}
6217impl From<crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError> for Error {
6218 fn from(err: crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError) -> Self {
6219 match err {
6220 crate::operation::delete_vpc_endpoints::DeleteVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6221 }
6222 }
6223}
6224impl<R>
6225 From<
6226 ::aws_smithy_runtime_api::client::result::SdkError<
6227 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6228 R,
6229 >,
6230 > for Error
6231where
6232 R: Send + Sync + std::fmt::Debug + 'static,
6233{
6234 fn from(
6235 err: ::aws_smithy_runtime_api::client::result::SdkError<
6236 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError,
6237 R,
6238 >,
6239 ) -> Self {
6240 match err {
6241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6244 source: err.into(),
6245 }),
6246 }
6247 }
6248}
6249impl From<crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError> for Error {
6250 fn from(err: crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError) -> Self {
6251 match err {
6252 crate::operation::delete_vpc_endpoint_service_configurations::DeleteVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
6253 Error::Unhandled(inner)
6254 }
6255 }
6256 }
6257}
6258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>>
6259 for Error
6260where
6261 R: Send + Sync + std::fmt::Debug + 'static,
6262{
6263 fn from(
6264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError, R>,
6265 ) -> Self {
6266 match err {
6267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6270 source: err.into(),
6271 }),
6272 }
6273 }
6274}
6275impl From<crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError> for Error {
6276 fn from(err: crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError) -> Self {
6277 match err {
6278 crate::operation::delete_vpc_peering_connection::DeleteVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6279 }
6280 }
6281}
6282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>> for Error
6283where
6284 R: Send + Sync + std::fmt::Debug + 'static,
6285{
6286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection::DeleteVpnConnectionError, R>) -> Self {
6287 match err {
6288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6291 source: err.into(),
6292 }),
6293 }
6294 }
6295}
6296impl From<crate::operation::delete_vpn_connection::DeleteVpnConnectionError> for Error {
6297 fn from(err: crate::operation::delete_vpn_connection::DeleteVpnConnectionError) -> Self {
6298 match err {
6299 crate::operation::delete_vpn_connection::DeleteVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
6300 }
6301 }
6302}
6303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>>
6304 for Error
6305where
6306 R: Send + Sync + std::fmt::Debug + 'static,
6307{
6308 fn from(
6309 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError, R>,
6310 ) -> Self {
6311 match err {
6312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6315 source: err.into(),
6316 }),
6317 }
6318 }
6319}
6320impl From<crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError> for Error {
6321 fn from(err: crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError) -> Self {
6322 match err {
6323 crate::operation::delete_vpn_connection_route::DeleteVpnConnectionRouteError::Unhandled(inner) => Error::Unhandled(inner),
6324 }
6325 }
6326}
6327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>> for Error
6328where
6329 R: Send + Sync + std::fmt::Debug + 'static,
6330{
6331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError, R>) -> Self {
6332 match err {
6333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6336 source: err.into(),
6337 }),
6338 }
6339 }
6340}
6341impl From<crate::operation::delete_vpn_gateway::DeleteVpnGatewayError> for Error {
6342 fn from(err: crate::operation::delete_vpn_gateway::DeleteVpnGatewayError) -> Self {
6343 match err {
6344 crate::operation::delete_vpn_gateway::DeleteVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
6345 }
6346 }
6347}
6348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
6349where
6350 R: Send + Sync + std::fmt::Debug + 'static,
6351{
6352 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
6353 match err {
6354 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6355 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6356 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6357 source: err.into(),
6358 }),
6359 }
6360 }
6361}
6362impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
6363 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
6364 match err {
6365 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
6366 }
6367 }
6368}
6369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>> for Error
6370where
6371 R: Send + Sync + std::fmt::Debug + 'static,
6372{
6373 fn from(
6374 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError, R>,
6375 ) -> Self {
6376 match err {
6377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6380 source: err.into(),
6381 }),
6382 }
6383 }
6384}
6385impl From<crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError> for Error {
6386 fn from(err: crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError) -> Self {
6387 match err {
6388 crate::operation::deprovision_ipam_byoasn::DeprovisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
6389 }
6390 }
6391}
6392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>>
6393 for Error
6394where
6395 R: Send + Sync + std::fmt::Debug + 'static,
6396{
6397 fn from(
6398 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError, R>,
6399 ) -> Self {
6400 match err {
6401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6404 source: err.into(),
6405 }),
6406 }
6407 }
6408}
6409impl From<crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError> for Error {
6410 fn from(err: crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError) -> Self {
6411 match err {
6412 crate::operation::deprovision_ipam_pool_cidr::DeprovisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6413 }
6414 }
6415}
6416impl<R>
6417 From<
6418 ::aws_smithy_runtime_api::client::result::SdkError<
6419 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6420 R,
6421 >,
6422 > for Error
6423where
6424 R: Send + Sync + std::fmt::Debug + 'static,
6425{
6426 fn from(
6427 err: ::aws_smithy_runtime_api::client::result::SdkError<
6428 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError,
6429 R,
6430 >,
6431 ) -> Self {
6432 match err {
6433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6436 source: err.into(),
6437 }),
6438 }
6439 }
6440}
6441impl From<crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError> for Error {
6442 fn from(err: crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError) -> Self {
6443 match err {
6444 crate::operation::deprovision_public_ipv4_pool_cidr::DeprovisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
6445 }
6446 }
6447}
6448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>> for Error
6449where
6450 R: Send + Sync + std::fmt::Debug + 'static,
6451{
6452 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_image::DeregisterImageError, R>) -> Self {
6453 match err {
6454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6457 source: err.into(),
6458 }),
6459 }
6460 }
6461}
6462impl From<crate::operation::deregister_image::DeregisterImageError> for Error {
6463 fn from(err: crate::operation::deregister_image::DeregisterImageError) -> Self {
6464 match err {
6465 crate::operation::deregister_image::DeregisterImageError::Unhandled(inner) => Error::Unhandled(inner),
6466 }
6467 }
6468}
6469impl<R>
6470 From<
6471 ::aws_smithy_runtime_api::client::result::SdkError<
6472 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6473 R,
6474 >,
6475 > for Error
6476where
6477 R: Send + Sync + std::fmt::Debug + 'static,
6478{
6479 fn from(
6480 err: ::aws_smithy_runtime_api::client::result::SdkError<
6481 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError,
6482 R,
6483 >,
6484 ) -> Self {
6485 match err {
6486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6489 source: err.into(),
6490 }),
6491 }
6492 }
6493}
6494impl From<crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError> for Error {
6495 fn from(err: crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError) -> Self {
6496 match err {
6497 crate::operation::deregister_instance_event_notification_attributes::DeregisterInstanceEventNotificationAttributesError::Unhandled(
6498 inner,
6499 ) => Error::Unhandled(inner),
6500 }
6501 }
6502}
6503impl<R>
6504 From<
6505 ::aws_smithy_runtime_api::client::result::SdkError<
6506 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6507 R,
6508 >,
6509 > for Error
6510where
6511 R: Send + Sync + std::fmt::Debug + 'static,
6512{
6513 fn from(
6514 err: ::aws_smithy_runtime_api::client::result::SdkError<
6515 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError,
6516 R,
6517 >,
6518 ) -> Self {
6519 match err {
6520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6523 source: err.into(),
6524 }),
6525 }
6526 }
6527}
6528impl From<crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError> for Error {
6529 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError) -> Self {
6530 match err {
6531 crate::operation::deregister_transit_gateway_multicast_group_members::DeregisterTransitGatewayMulticastGroupMembersError::Unhandled(
6532 inner,
6533 ) => Error::Unhandled(inner),
6534 }
6535 }
6536}
6537impl<R>
6538 From<
6539 ::aws_smithy_runtime_api::client::result::SdkError<
6540 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6541 R,
6542 >,
6543 > for Error
6544where
6545 R: Send + Sync + std::fmt::Debug + 'static,
6546{
6547 fn from(
6548 err: ::aws_smithy_runtime_api::client::result::SdkError<
6549 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError,
6550 R,
6551 >,
6552 ) -> Self {
6553 match err {
6554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6557 source: err.into(),
6558 }),
6559 }
6560 }
6561}
6562impl From<crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError> for Error {
6563 fn from(err: crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError) -> Self {
6564 match err {
6565 crate::operation::deregister_transit_gateway_multicast_group_sources::DeregisterTransitGatewayMulticastGroupSourcesError::Unhandled(
6566 inner,
6567 ) => Error::Unhandled(inner),
6568 }
6569 }
6570}
6571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
6572 for Error
6573where
6574 R: Send + Sync + std::fmt::Debug + 'static,
6575{
6576 fn from(
6577 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
6578 ) -> Self {
6579 match err {
6580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6583 source: err.into(),
6584 }),
6585 }
6586 }
6587}
6588impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
6589 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
6590 match err {
6591 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
6592 }
6593 }
6594}
6595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>> for Error
6596where
6597 R: Send + Sync + std::fmt::Debug + 'static,
6598{
6599 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses::DescribeAddressesError, R>) -> Self {
6600 match err {
6601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6604 source: err.into(),
6605 }),
6606 }
6607 }
6608}
6609impl From<crate::operation::describe_addresses::DescribeAddressesError> for Error {
6610 fn from(err: crate::operation::describe_addresses::DescribeAddressesError) -> Self {
6611 match err {
6612 crate::operation::describe_addresses::DescribeAddressesError::Unhandled(inner) => Error::Unhandled(inner),
6613 }
6614 }
6615}
6616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>>
6617 for Error
6618where
6619 R: Send + Sync + std::fmt::Debug + 'static,
6620{
6621 fn from(
6622 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError, R>,
6623 ) -> Self {
6624 match err {
6625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6628 source: err.into(),
6629 }),
6630 }
6631 }
6632}
6633impl From<crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError> for Error {
6634 fn from(err: crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError) -> Self {
6635 match err {
6636 crate::operation::describe_addresses_attribute::DescribeAddressesAttributeError::Unhandled(inner) => Error::Unhandled(inner),
6637 }
6638 }
6639}
6640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>>
6641 for Error
6642where
6643 R: Send + Sync + std::fmt::Debug + 'static,
6644{
6645 fn from(
6646 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_address_transfers::DescribeAddressTransfersError, R>,
6647 ) -> Self {
6648 match err {
6649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6652 source: err.into(),
6653 }),
6654 }
6655 }
6656}
6657impl From<crate::operation::describe_address_transfers::DescribeAddressTransfersError> for Error {
6658 fn from(err: crate::operation::describe_address_transfers::DescribeAddressTransfersError) -> Self {
6659 match err {
6660 crate::operation::describe_address_transfers::DescribeAddressTransfersError::Unhandled(inner) => Error::Unhandled(inner),
6661 }
6662 }
6663}
6664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>>
6665 for Error
6666where
6667 R: Send + Sync + std::fmt::Debug + 'static,
6668{
6669 fn from(
6670 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError, R>,
6671 ) -> Self {
6672 match err {
6673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6676 source: err.into(),
6677 }),
6678 }
6679 }
6680}
6681impl From<crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError> for Error {
6682 fn from(err: crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError) -> Self {
6683 match err {
6684 crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
6685 }
6686 }
6687}
6688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>>
6689 for Error
6690where
6691 R: Send + Sync + std::fmt::Debug + 'static,
6692{
6693 fn from(
6694 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError, R>,
6695 ) -> Self {
6696 match err {
6697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6700 source: err.into(),
6701 }),
6702 }
6703 }
6704}
6705impl From<crate::operation::describe_availability_zones::DescribeAvailabilityZonesError> for Error {
6706 fn from(err: crate::operation::describe_availability_zones::DescribeAvailabilityZonesError) -> Self {
6707 match err {
6708 crate::operation::describe_availability_zones::DescribeAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
6709 }
6710 }
6711}
6712impl<R>
6713 From<
6714 ::aws_smithy_runtime_api::client::result::SdkError<
6715 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6716 R,
6717 >,
6718 > for Error
6719where
6720 R: Send + Sync + std::fmt::Debug + 'static,
6721{
6722 fn from(
6723 err: ::aws_smithy_runtime_api::client::result::SdkError<
6724 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6725 R,
6726 >,
6727 ) -> Self {
6728 match err {
6729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6732 source: err.into(),
6733 }),
6734 }
6735 }
6736}
6737impl From<crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError> for Error {
6738 fn from(
6739 err: crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError,
6740 ) -> Self {
6741 match err {
6742 crate::operation::describe_aws_network_performance_metric_subscriptions::DescribeAwsNetworkPerformanceMetricSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
6743 }
6744 }
6745}
6746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>> for Error
6747where
6748 R: Send + Sync + std::fmt::Debug + 'static,
6749{
6750 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bundle_tasks::DescribeBundleTasksError, R>) -> Self {
6751 match err {
6752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6755 source: err.into(),
6756 }),
6757 }
6758 }
6759}
6760impl From<crate::operation::describe_bundle_tasks::DescribeBundleTasksError> for Error {
6761 fn from(err: crate::operation::describe_bundle_tasks::DescribeBundleTasksError) -> Self {
6762 match err {
6763 crate::operation::describe_bundle_tasks::DescribeBundleTasksError::Unhandled(inner) => Error::Unhandled(inner),
6764 }
6765 }
6766}
6767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>> for Error
6768where
6769 R: Send + Sync + std::fmt::Debug + 'static,
6770{
6771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError, R>) -> Self {
6772 match err {
6773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6776 source: err.into(),
6777 }),
6778 }
6779 }
6780}
6781impl From<crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError> for Error {
6782 fn from(err: crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError) -> Self {
6783 match err {
6784 crate::operation::describe_byoip_cidrs::DescribeByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
6785 }
6786 }
6787}
6788impl<R>
6789 From<
6790 ::aws_smithy_runtime_api::client::result::SdkError<
6791 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6792 R,
6793 >,
6794 > for Error
6795where
6796 R: Send + Sync + std::fmt::Debug + 'static,
6797{
6798 fn from(
6799 err: ::aws_smithy_runtime_api::client::result::SdkError<
6800 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError,
6801 R,
6802 >,
6803 ) -> Self {
6804 match err {
6805 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6806 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6807 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6808 source: err.into(),
6809 }),
6810 }
6811 }
6812}
6813impl From<crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError> for Error {
6814 fn from(err: crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError) -> Self {
6815 match err {
6816 crate::operation::describe_capacity_block_extension_history::DescribeCapacityBlockExtensionHistoryError::Unhandled(inner) => {
6817 Error::Unhandled(inner)
6818 }
6819 }
6820 }
6821}
6822impl<R>
6823 From<
6824 ::aws_smithy_runtime_api::client::result::SdkError<
6825 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6826 R,
6827 >,
6828 > for Error
6829where
6830 R: Send + Sync + std::fmt::Debug + 'static,
6831{
6832 fn from(
6833 err: ::aws_smithy_runtime_api::client::result::SdkError<
6834 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
6835 R,
6836 >,
6837 ) -> Self {
6838 match err {
6839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6842 source: err.into(),
6843 }),
6844 }
6845 }
6846}
6847impl From<crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError> for Error {
6848 fn from(err: crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError) -> Self {
6849 match err {
6850 crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError::Unhandled(inner) => {
6851 Error::Unhandled(inner)
6852 }
6853 }
6854 }
6855}
6856impl<R>
6857 From<
6858 ::aws_smithy_runtime_api::client::result::SdkError<
6859 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6860 R,
6861 >,
6862 > for Error
6863where
6864 R: Send + Sync + std::fmt::Debug + 'static,
6865{
6866 fn from(
6867 err: ::aws_smithy_runtime_api::client::result::SdkError<
6868 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
6869 R,
6870 >,
6871 ) -> Self {
6872 match err {
6873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6876 source: err.into(),
6877 }),
6878 }
6879 }
6880}
6881impl From<crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError> for Error {
6882 fn from(err: crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError) -> Self {
6883 match err {
6884 crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
6885 }
6886 }
6887}
6888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>> for Error
6889where
6890 R: Send + Sync + std::fmt::Debug + 'static,
6891{
6892 fn from(
6893 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError, R>,
6894 ) -> Self {
6895 match err {
6896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6899 source: err.into(),
6900 }),
6901 }
6902 }
6903}
6904impl From<crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError> for Error {
6905 fn from(err: crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError) -> Self {
6906 match err {
6907 crate::operation::describe_capacity_blocks::DescribeCapacityBlocksError::Unhandled(inner) => Error::Unhandled(inner),
6908 }
6909 }
6910}
6911impl<R>
6912 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError, R>>
6913 for Error
6914where
6915 R: Send + Sync + std::fmt::Debug + 'static,
6916{
6917 fn from(
6918 err: ::aws_smithy_runtime_api::client::result::SdkError<
6919 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError,
6920 R,
6921 >,
6922 ) -> Self {
6923 match err {
6924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6927 source: err.into(),
6928 }),
6929 }
6930 }
6931}
6932impl From<crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError> for Error {
6933 fn from(err: crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError) -> Self {
6934 match err {
6935 crate::operation::describe_capacity_block_status::DescribeCapacityBlockStatusError::Unhandled(inner) => Error::Unhandled(inner),
6936 }
6937 }
6938}
6939impl<R>
6940 From<
6941 ::aws_smithy_runtime_api::client::result::SdkError<
6942 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6943 R,
6944 >,
6945 > for Error
6946where
6947 R: Send + Sync + std::fmt::Debug + 'static,
6948{
6949 fn from(
6950 err: ::aws_smithy_runtime_api::client::result::SdkError<
6951 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError,
6952 R,
6953 >,
6954 ) -> Self {
6955 match err {
6956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6959 source: err.into(),
6960 }),
6961 }
6962 }
6963}
6964impl From<crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError> for Error {
6965 fn from(err: crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError) -> Self {
6966 match err {
6967 crate::operation::describe_capacity_manager_data_exports::DescribeCapacityManagerDataExportsError::Unhandled(inner) => {
6968 Error::Unhandled(inner)
6969 }
6970 }
6971 }
6972}
6973impl<R>
6974 From<
6975 ::aws_smithy_runtime_api::client::result::SdkError<
6976 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
6977 R,
6978 >,
6979 > for Error
6980where
6981 R: Send + Sync + std::fmt::Debug + 'static,
6982{
6983 fn from(
6984 err: ::aws_smithy_runtime_api::client::result::SdkError<
6985 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError,
6986 R,
6987 >,
6988 ) -> Self {
6989 match err {
6990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6993 source: err.into(),
6994 }),
6995 }
6996 }
6997}
6998impl From<crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError> for Error {
6999 fn from(err: crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError) -> Self {
7000 match err {
7001 crate::operation::describe_capacity_reservation_billing_requests::DescribeCapacityReservationBillingRequestsError::Unhandled(inner) => {
7002 Error::Unhandled(inner)
7003 }
7004 }
7005 }
7006}
7007impl<R>
7008 From<
7009 ::aws_smithy_runtime_api::client::result::SdkError<
7010 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7011 R,
7012 >,
7013 > for Error
7014where
7015 R: Send + Sync + std::fmt::Debug + 'static,
7016{
7017 fn from(
7018 err: ::aws_smithy_runtime_api::client::result::SdkError<
7019 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError,
7020 R,
7021 >,
7022 ) -> Self {
7023 match err {
7024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7027 source: err.into(),
7028 }),
7029 }
7030 }
7031}
7032impl From<crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError> for Error {
7033 fn from(err: crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError) -> Self {
7034 match err {
7035 crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError::Unhandled(inner) => {
7036 Error::Unhandled(inner)
7037 }
7038 }
7039 }
7040}
7041impl<R>
7042 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError, R>>
7043 for Error
7044where
7045 R: Send + Sync + std::fmt::Debug + 'static,
7046{
7047 fn from(
7048 err: ::aws_smithy_runtime_api::client::result::SdkError<
7049 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError,
7050 R,
7051 >,
7052 ) -> Self {
7053 match err {
7054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7057 source: err.into(),
7058 }),
7059 }
7060 }
7061}
7062impl From<crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError> for Error {
7063 fn from(err: crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError) -> Self {
7064 match err {
7065 crate::operation::describe_capacity_reservations::DescribeCapacityReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7066 }
7067 }
7068}
7069impl<R>
7070 From<
7071 ::aws_smithy_runtime_api::client::result::SdkError<
7072 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7073 R,
7074 >,
7075 > for Error
7076where
7077 R: Send + Sync + std::fmt::Debug + 'static,
7078{
7079 fn from(
7080 err: ::aws_smithy_runtime_api::client::result::SdkError<
7081 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError,
7082 R,
7083 >,
7084 ) -> Self {
7085 match err {
7086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7089 source: err.into(),
7090 }),
7091 }
7092 }
7093}
7094impl From<crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError> for Error {
7095 fn from(err: crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError) -> Self {
7096 match err {
7097 crate::operation::describe_capacity_reservation_topology::DescribeCapacityReservationTopologyError::Unhandled(inner) => {
7098 Error::Unhandled(inner)
7099 }
7100 }
7101 }
7102}
7103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>>
7104 for Error
7105where
7106 R: Send + Sync + std::fmt::Debug + 'static,
7107{
7108 fn from(
7109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError, R>,
7110 ) -> Self {
7111 match err {
7112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7115 source: err.into(),
7116 }),
7117 }
7118 }
7119}
7120impl From<crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError> for Error {
7121 fn from(err: crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError) -> Self {
7122 match err {
7123 crate::operation::describe_carrier_gateways::DescribeCarrierGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7124 }
7125 }
7126}
7127impl<R>
7128 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError, R>>
7129 for Error
7130where
7131 R: Send + Sync + std::fmt::Debug + 'static,
7132{
7133 fn from(
7134 err: ::aws_smithy_runtime_api::client::result::SdkError<
7135 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError,
7136 R,
7137 >,
7138 ) -> Self {
7139 match err {
7140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7143 source: err.into(),
7144 }),
7145 }
7146 }
7147}
7148impl From<crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError> for Error {
7149 fn from(err: crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError) -> Self {
7150 match err {
7151 crate::operation::describe_classic_link_instances::DescribeClassicLinkInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7152 }
7153 }
7154}
7155impl<R>
7156 From<
7157 ::aws_smithy_runtime_api::client::result::SdkError<
7158 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7159 R,
7160 >,
7161 > for Error
7162where
7163 R: Send + Sync + std::fmt::Debug + 'static,
7164{
7165 fn from(
7166 err: ::aws_smithy_runtime_api::client::result::SdkError<
7167 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError,
7168 R,
7169 >,
7170 ) -> Self {
7171 match err {
7172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7175 source: err.into(),
7176 }),
7177 }
7178 }
7179}
7180impl From<crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError> for Error {
7181 fn from(err: crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError) -> Self {
7182 match err {
7183 crate::operation::describe_client_vpn_authorization_rules::DescribeClientVpnAuthorizationRulesError::Unhandled(inner) => {
7184 Error::Unhandled(inner)
7185 }
7186 }
7187 }
7188}
7189impl<R>
7190 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError, R>>
7191 for Error
7192where
7193 R: Send + Sync + std::fmt::Debug + 'static,
7194{
7195 fn from(
7196 err: ::aws_smithy_runtime_api::client::result::SdkError<
7197 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError,
7198 R,
7199 >,
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_client_vpn_connections::DescribeClientVpnConnectionsError> for Error {
7211 fn from(err: crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError) -> Self {
7212 match err {
7213 crate::operation::describe_client_vpn_connections::DescribeClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
7214 }
7215 }
7216}
7217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>>
7218 for Error
7219where
7220 R: Send + Sync + std::fmt::Debug + 'static,
7221{
7222 fn from(
7223 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError, R>,
7224 ) -> Self {
7225 match err {
7226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7229 source: err.into(),
7230 }),
7231 }
7232 }
7233}
7234impl From<crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError> for Error {
7235 fn from(err: crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError) -> Self {
7236 match err {
7237 crate::operation::describe_client_vpn_endpoints::DescribeClientVpnEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
7238 }
7239 }
7240}
7241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>>
7242 for Error
7243where
7244 R: Send + Sync + std::fmt::Debug + 'static,
7245{
7246 fn from(
7247 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError, R>,
7248 ) -> Self {
7249 match err {
7250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7253 source: err.into(),
7254 }),
7255 }
7256 }
7257}
7258impl From<crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError> for Error {
7259 fn from(err: crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError) -> Self {
7260 match err {
7261 crate::operation::describe_client_vpn_routes::DescribeClientVpnRoutesError::Unhandled(inner) => Error::Unhandled(inner),
7262 }
7263 }
7264}
7265impl<R>
7266 From<
7267 ::aws_smithy_runtime_api::client::result::SdkError<
7268 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7269 R,
7270 >,
7271 > for Error
7272where
7273 R: Send + Sync + std::fmt::Debug + 'static,
7274{
7275 fn from(
7276 err: ::aws_smithy_runtime_api::client::result::SdkError<
7277 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError,
7278 R,
7279 >,
7280 ) -> Self {
7281 match err {
7282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7285 source: err.into(),
7286 }),
7287 }
7288 }
7289}
7290impl From<crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError> for Error {
7291 fn from(err: crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError) -> Self {
7292 match err {
7293 crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksError::Unhandled(inner) => Error::Unhandled(inner),
7294 }
7295 }
7296}
7297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>> for Error
7298where
7299 R: Send + Sync + std::fmt::Debug + 'static,
7300{
7301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_coip_pools::DescribeCoipPoolsError, R>) -> Self {
7302 match err {
7303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7306 source: err.into(),
7307 }),
7308 }
7309 }
7310}
7311impl From<crate::operation::describe_coip_pools::DescribeCoipPoolsError> for Error {
7312 fn from(err: crate::operation::describe_coip_pools::DescribeCoipPoolsError) -> Self {
7313 match err {
7314 crate::operation::describe_coip_pools::DescribeCoipPoolsError::Unhandled(inner) => Error::Unhandled(inner),
7315 }
7316 }
7317}
7318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>>
7319 for Error
7320where
7321 R: Send + Sync + std::fmt::Debug + 'static,
7322{
7323 fn from(
7324 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conversion_tasks::DescribeConversionTasksError, R>,
7325 ) -> Self {
7326 match err {
7327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7330 source: err.into(),
7331 }),
7332 }
7333 }
7334}
7335impl From<crate::operation::describe_conversion_tasks::DescribeConversionTasksError> for Error {
7336 fn from(err: crate::operation::describe_conversion_tasks::DescribeConversionTasksError) -> Self {
7337 match err {
7338 crate::operation::describe_conversion_tasks::DescribeConversionTasksError::Unhandled(inner) => Error::Unhandled(inner),
7339 }
7340 }
7341}
7342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>>
7343 for Error
7344where
7345 R: Send + Sync + std::fmt::Debug + 'static,
7346{
7347 fn from(
7348 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError, R>,
7349 ) -> Self {
7350 match err {
7351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7354 source: err.into(),
7355 }),
7356 }
7357 }
7358}
7359impl From<crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError> for Error {
7360 fn from(err: crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError) -> Self {
7361 match err {
7362 crate::operation::describe_customer_gateways::DescribeCustomerGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
7363 }
7364 }
7365}
7366impl<R>
7367 From<
7368 ::aws_smithy_runtime_api::client::result::SdkError<
7369 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7370 R,
7371 >,
7372 > for Error
7373where
7374 R: Send + Sync + std::fmt::Debug + 'static,
7375{
7376 fn from(
7377 err: ::aws_smithy_runtime_api::client::result::SdkError<
7378 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError,
7379 R,
7380 >,
7381 ) -> Self {
7382 match err {
7383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7386 source: err.into(),
7387 }),
7388 }
7389 }
7390}
7391impl From<crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError> for Error {
7392 fn from(err: crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError) -> Self {
7393 match err {
7394 crate::operation::describe_declarative_policies_reports::DescribeDeclarativePoliciesReportsError::Unhandled(inner) => {
7395 Error::Unhandled(inner)
7396 }
7397 }
7398 }
7399}
7400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>> for Error
7401where
7402 R: Send + Sync + std::fmt::Debug + 'static,
7403{
7404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError, R>) -> Self {
7405 match err {
7406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7409 source: err.into(),
7410 }),
7411 }
7412 }
7413}
7414impl From<crate::operation::describe_dhcp_options::DescribeDhcpOptionsError> for Error {
7415 fn from(err: crate::operation::describe_dhcp_options::DescribeDhcpOptionsError) -> Self {
7416 match err {
7417 crate::operation::describe_dhcp_options::DescribeDhcpOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7418 }
7419 }
7420}
7421impl<R>
7422 From<
7423 ::aws_smithy_runtime_api::client::result::SdkError<
7424 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7425 R,
7426 >,
7427 > for Error
7428where
7429 R: Send + Sync + std::fmt::Debug + 'static,
7430{
7431 fn from(
7432 err: ::aws_smithy_runtime_api::client::result::SdkError<
7433 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
7434 R,
7435 >,
7436 ) -> Self {
7437 match err {
7438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7441 source: err.into(),
7442 }),
7443 }
7444 }
7445}
7446impl From<crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError> for Error {
7447 fn from(err: crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError) -> Self {
7448 match err {
7449 crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError::Unhandled(inner) => {
7450 Error::Unhandled(inner)
7451 }
7452 }
7453 }
7454}
7455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>> for Error
7456where
7457 R: Send + Sync + std::fmt::Debug + 'static,
7458{
7459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_elastic_gpus::DescribeElasticGpusError, R>) -> Self {
7460 match err {
7461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7464 source: err.into(),
7465 }),
7466 }
7467 }
7468}
7469impl From<crate::operation::describe_elastic_gpus::DescribeElasticGpusError> for Error {
7470 fn from(err: crate::operation::describe_elastic_gpus::DescribeElasticGpusError) -> Self {
7471 match err {
7472 crate::operation::describe_elastic_gpus::DescribeElasticGpusError::Unhandled(inner) => Error::Unhandled(inner),
7473 }
7474 }
7475}
7476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>>
7477 for Error
7478where
7479 R: Send + Sync + std::fmt::Debug + 'static,
7480{
7481 fn from(
7482 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError, R>,
7483 ) -> Self {
7484 match err {
7485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7488 source: err.into(),
7489 }),
7490 }
7491 }
7492}
7493impl From<crate::operation::describe_export_image_tasks::DescribeExportImageTasksError> for Error {
7494 fn from(err: crate::operation::describe_export_image_tasks::DescribeExportImageTasksError) -> Self {
7495 match err {
7496 crate::operation::describe_export_image_tasks::DescribeExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
7497 }
7498 }
7499}
7500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
7501where
7502 R: Send + Sync + std::fmt::Debug + 'static,
7503{
7504 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
7505 match err {
7506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7509 source: err.into(),
7510 }),
7511 }
7512 }
7513}
7514impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
7515 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
7516 match err {
7517 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
7518 }
7519 }
7520}
7521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>>
7522 for Error
7523where
7524 R: Send + Sync + std::fmt::Debug + 'static,
7525{
7526 fn from(
7527 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError, R>,
7528 ) -> Self {
7529 match err {
7530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7533 source: err.into(),
7534 }),
7535 }
7536 }
7537}
7538impl From<crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError> for Error {
7539 fn from(err: crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError) -> Self {
7540 match err {
7541 crate::operation::describe_fast_launch_images::DescribeFastLaunchImagesError::Unhandled(inner) => Error::Unhandled(inner),
7542 }
7543 }
7544}
7545impl<R>
7546 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError, R>>
7547 for Error
7548where
7549 R: Send + Sync + std::fmt::Debug + 'static,
7550{
7551 fn from(
7552 err: ::aws_smithy_runtime_api::client::result::SdkError<
7553 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError,
7554 R,
7555 >,
7556 ) -> Self {
7557 match err {
7558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7561 source: err.into(),
7562 }),
7563 }
7564 }
7565}
7566impl From<crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError> for Error {
7567 fn from(err: crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError) -> Self {
7568 match err {
7569 crate::operation::describe_fast_snapshot_restores::DescribeFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
7570 }
7571 }
7572}
7573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>> for Error
7574where
7575 R: Send + Sync + std::fmt::Debug + 'static,
7576{
7577 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_history::DescribeFleetHistoryError, R>) -> Self {
7578 match err {
7579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7582 source: err.into(),
7583 }),
7584 }
7585 }
7586}
7587impl From<crate::operation::describe_fleet_history::DescribeFleetHistoryError> for Error {
7588 fn from(err: crate::operation::describe_fleet_history::DescribeFleetHistoryError) -> Self {
7589 match err {
7590 crate::operation::describe_fleet_history::DescribeFleetHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7591 }
7592 }
7593}
7594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>> for Error
7595where
7596 R: Send + Sync + std::fmt::Debug + 'static,
7597{
7598 fn from(
7599 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_instances::DescribeFleetInstancesError, R>,
7600 ) -> Self {
7601 match err {
7602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7605 source: err.into(),
7606 }),
7607 }
7608 }
7609}
7610impl From<crate::operation::describe_fleet_instances::DescribeFleetInstancesError> for Error {
7611 fn from(err: crate::operation::describe_fleet_instances::DescribeFleetInstancesError) -> Self {
7612 match err {
7613 crate::operation::describe_fleet_instances::DescribeFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7614 }
7615 }
7616}
7617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
7618where
7619 R: Send + Sync + std::fmt::Debug + 'static,
7620{
7621 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
7622 match err {
7623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7626 source: err.into(),
7627 }),
7628 }
7629 }
7630}
7631impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
7632 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
7633 match err {
7634 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
7635 }
7636 }
7637}
7638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>> for Error
7639where
7640 R: Send + Sync + std::fmt::Debug + 'static,
7641{
7642 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_logs::DescribeFlowLogsError, R>) -> Self {
7643 match err {
7644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7647 source: err.into(),
7648 }),
7649 }
7650 }
7651}
7652impl From<crate::operation::describe_flow_logs::DescribeFlowLogsError> for Error {
7653 fn from(err: crate::operation::describe_flow_logs::DescribeFlowLogsError) -> Self {
7654 match err {
7655 crate::operation::describe_flow_logs::DescribeFlowLogsError::Unhandled(inner) => Error::Unhandled(inner),
7656 }
7657 }
7658}
7659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>>
7660 for Error
7661where
7662 R: Send + Sync + std::fmt::Debug + 'static,
7663{
7664 fn from(
7665 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError, R>,
7666 ) -> Self {
7667 match err {
7668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7671 source: err.into(),
7672 }),
7673 }
7674 }
7675}
7676impl From<crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError> for Error {
7677 fn from(err: crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError) -> Self {
7678 match err {
7679 crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7680 }
7681 }
7682}
7683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>> for Error
7684where
7685 R: Send + Sync + std::fmt::Debug + 'static,
7686{
7687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fpga_images::DescribeFpgaImagesError, R>) -> 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_fpga_images::DescribeFpgaImagesError> for Error {
7698 fn from(err: crate::operation::describe_fpga_images::DescribeFpgaImagesError) -> Self {
7699 match err {
7700 crate::operation::describe_fpga_images::DescribeFpgaImagesError::Unhandled(inner) => Error::Unhandled(inner),
7701 }
7702 }
7703}
7704impl<R>
7705 From<
7706 ::aws_smithy_runtime_api::client::result::SdkError<
7707 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7708 R,
7709 >,
7710 > for Error
7711where
7712 R: Send + Sync + std::fmt::Debug + 'static,
7713{
7714 fn from(
7715 err: ::aws_smithy_runtime_api::client::result::SdkError<
7716 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
7717 R,
7718 >,
7719 ) -> Self {
7720 match err {
7721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7724 source: err.into(),
7725 }),
7726 }
7727 }
7728}
7729impl From<crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError> for Error {
7730 fn from(err: crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError) -> Self {
7731 match err {
7732 crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7733 }
7734 }
7735}
7736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>>
7737 for Error
7738where
7739 R: Send + Sync + std::fmt::Debug + 'static,
7740{
7741 fn from(
7742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_reservations::DescribeHostReservationsError, R>,
7743 ) -> Self {
7744 match err {
7745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7748 source: err.into(),
7749 }),
7750 }
7751 }
7752}
7753impl From<crate::operation::describe_host_reservations::DescribeHostReservationsError> for Error {
7754 fn from(err: crate::operation::describe_host_reservations::DescribeHostReservationsError) -> Self {
7755 match err {
7756 crate::operation::describe_host_reservations::DescribeHostReservationsError::Unhandled(inner) => Error::Unhandled(inner),
7757 }
7758 }
7759}
7760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>> for Error
7761where
7762 R: Send + Sync + std::fmt::Debug + 'static,
7763{
7764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosts::DescribeHostsError, R>) -> Self {
7765 match err {
7766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7769 source: err.into(),
7770 }),
7771 }
7772 }
7773}
7774impl From<crate::operation::describe_hosts::DescribeHostsError> for Error {
7775 fn from(err: crate::operation::describe_hosts::DescribeHostsError) -> Self {
7776 match err {
7777 crate::operation::describe_hosts::DescribeHostsError::Unhandled(inner) => Error::Unhandled(inner),
7778 }
7779 }
7780}
7781impl<R>
7782 From<
7783 ::aws_smithy_runtime_api::client::result::SdkError<
7784 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7785 R,
7786 >,
7787 > for Error
7788where
7789 R: Send + Sync + std::fmt::Debug + 'static,
7790{
7791 fn from(
7792 err: ::aws_smithy_runtime_api::client::result::SdkError<
7793 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
7794 R,
7795 >,
7796 ) -> Self {
7797 match err {
7798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7801 source: err.into(),
7802 }),
7803 }
7804 }
7805}
7806impl From<crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError> for Error {
7807 fn from(err: crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError) -> Self {
7808 match err {
7809 crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError::Unhandled(inner) => {
7810 Error::Unhandled(inner)
7811 }
7812 }
7813 }
7814}
7815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>>
7816 for Error
7817where
7818 R: Send + Sync + std::fmt::Debug + 'static,
7819{
7820 fn from(
7821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError, R>,
7822 ) -> Self {
7823 match err {
7824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7827 source: err.into(),
7828 }),
7829 }
7830 }
7831}
7832impl From<crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError> for Error {
7833 fn from(err: crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError) -> Self {
7834 match err {
7835 crate::operation::describe_identity_id_format::DescribeIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7836 }
7837 }
7838}
7839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>> for Error
7840where
7841 R: Send + Sync + std::fmt::Debug + 'static,
7842{
7843 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_id_format::DescribeIdFormatError, R>) -> Self {
7844 match err {
7845 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7846 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7847 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7848 source: err.into(),
7849 }),
7850 }
7851 }
7852}
7853impl From<crate::operation::describe_id_format::DescribeIdFormatError> for Error {
7854 fn from(err: crate::operation::describe_id_format::DescribeIdFormatError) -> Self {
7855 match err {
7856 crate::operation::describe_id_format::DescribeIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
7857 }
7858 }
7859}
7860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>> for Error
7861where
7862 R: Send + Sync + std::fmt::Debug + 'static,
7863{
7864 fn from(
7865 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_attribute::DescribeImageAttributeError, R>,
7866 ) -> Self {
7867 match err {
7868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7871 source: err.into(),
7872 }),
7873 }
7874 }
7875}
7876impl From<crate::operation::describe_image_attribute::DescribeImageAttributeError> for Error {
7877 fn from(err: crate::operation::describe_image_attribute::DescribeImageAttributeError) -> Self {
7878 match err {
7879 crate::operation::describe_image_attribute::DescribeImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
7880 }
7881 }
7882}
7883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>>
7884 for Error
7885where
7886 R: Send + Sync + std::fmt::Debug + 'static,
7887{
7888 fn from(
7889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_references::DescribeImageReferencesError, R>,
7890 ) -> Self {
7891 match err {
7892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7895 source: err.into(),
7896 }),
7897 }
7898 }
7899}
7900impl From<crate::operation::describe_image_references::DescribeImageReferencesError> for Error {
7901 fn from(err: crate::operation::describe_image_references::DescribeImageReferencesError) -> Self {
7902 match err {
7903 crate::operation::describe_image_references::DescribeImageReferencesError::Unhandled(inner) => Error::Unhandled(inner),
7904 }
7905 }
7906}
7907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
7908where
7909 R: Send + Sync + std::fmt::Debug + 'static,
7910{
7911 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
7912 match err {
7913 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7914 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7915 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7916 source: err.into(),
7917 }),
7918 }
7919 }
7920}
7921impl From<crate::operation::describe_images::DescribeImagesError> for Error {
7922 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
7923 match err {
7924 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
7925 }
7926 }
7927}
7928impl<R>
7929 From<
7930 ::aws_smithy_runtime_api::client::result::SdkError<
7931 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7932 R,
7933 >,
7934 > for Error
7935where
7936 R: Send + Sync + std::fmt::Debug + 'static,
7937{
7938 fn from(
7939 err: ::aws_smithy_runtime_api::client::result::SdkError<
7940 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError,
7941 R,
7942 >,
7943 ) -> Self {
7944 match err {
7945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7948 source: err.into(),
7949 }),
7950 }
7951 }
7952}
7953impl From<crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError> for Error {
7954 fn from(err: crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError) -> Self {
7955 match err {
7956 crate::operation::describe_image_usage_report_entries::DescribeImageUsageReportEntriesError::Unhandled(inner) => Error::Unhandled(inner),
7957 }
7958 }
7959}
7960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>>
7961 for Error
7962where
7963 R: Send + Sync + std::fmt::Debug + 'static,
7964{
7965 fn from(
7966 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError, R>,
7967 ) -> Self {
7968 match err {
7969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7972 source: err.into(),
7973 }),
7974 }
7975 }
7976}
7977impl From<crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError> for Error {
7978 fn from(err: crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError) -> Self {
7979 match err {
7980 crate::operation::describe_image_usage_reports::DescribeImageUsageReportsError::Unhandled(inner) => Error::Unhandled(inner),
7981 }
7982 }
7983}
7984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>>
7985 for Error
7986where
7987 R: Send + Sync + std::fmt::Debug + 'static,
7988{
7989 fn from(
7990 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError, R>,
7991 ) -> Self {
7992 match err {
7993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7996 source: err.into(),
7997 }),
7998 }
7999 }
8000}
8001impl From<crate::operation::describe_import_image_tasks::DescribeImportImageTasksError> for Error {
8002 fn from(err: crate::operation::describe_import_image_tasks::DescribeImportImageTasksError) -> Self {
8003 match err {
8004 crate::operation::describe_import_image_tasks::DescribeImportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
8005 }
8006 }
8007}
8008impl<R>
8009 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError, R>>
8010 for Error
8011where
8012 R: Send + Sync + std::fmt::Debug + 'static,
8013{
8014 fn from(
8015 err: ::aws_smithy_runtime_api::client::result::SdkError<
8016 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError,
8017 R,
8018 >,
8019 ) -> Self {
8020 match err {
8021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8024 source: err.into(),
8025 }),
8026 }
8027 }
8028}
8029impl From<crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError> for Error {
8030 fn from(err: crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError) -> Self {
8031 match err {
8032 crate::operation::describe_import_snapshot_tasks::DescribeImportSnapshotTasksError::Unhandled(inner) => Error::Unhandled(inner),
8033 }
8034 }
8035}
8036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
8037 for Error
8038where
8039 R: Send + Sync + std::fmt::Debug + 'static,
8040{
8041 fn from(
8042 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
8043 ) -> Self {
8044 match err {
8045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8048 source: err.into(),
8049 }),
8050 }
8051 }
8052}
8053impl From<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError> for Error {
8054 fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
8055 match err {
8056 crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
8057 }
8058 }
8059}
8060impl<R>
8061 From<
8062 ::aws_smithy_runtime_api::client::result::SdkError<
8063 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8064 R,
8065 >,
8066 > for Error
8067where
8068 R: Send + Sync + std::fmt::Debug + 'static,
8069{
8070 fn from(
8071 err: ::aws_smithy_runtime_api::client::result::SdkError<
8072 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError,
8073 R,
8074 >,
8075 ) -> Self {
8076 match err {
8077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8080 source: err.into(),
8081 }),
8082 }
8083 }
8084}
8085impl From<crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError> for Error {
8086 fn from(err: crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError) -> Self {
8087 match err {
8088 crate::operation::describe_instance_connect_endpoints::DescribeInstanceConnectEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
8089 }
8090 }
8091}
8092impl<R>
8093 From<
8094 ::aws_smithy_runtime_api::client::result::SdkError<
8095 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8096 R,
8097 >,
8098 > for Error
8099where
8100 R: Send + Sync + std::fmt::Debug + 'static,
8101{
8102 fn from(
8103 err: ::aws_smithy_runtime_api::client::result::SdkError<
8104 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError,
8105 R,
8106 >,
8107 ) -> Self {
8108 match err {
8109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8112 source: err.into(),
8113 }),
8114 }
8115 }
8116}
8117impl From<crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError> for Error {
8118 fn from(err: crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError) -> Self {
8119 match err {
8120 crate::operation::describe_instance_credit_specifications::DescribeInstanceCreditSpecificationsError::Unhandled(inner) => {
8121 Error::Unhandled(inner)
8122 }
8123 }
8124 }
8125}
8126impl<R>
8127 From<
8128 ::aws_smithy_runtime_api::client::result::SdkError<
8129 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8130 R,
8131 >,
8132 > for Error
8133where
8134 R: Send + Sync + std::fmt::Debug + 'static,
8135{
8136 fn from(
8137 err: ::aws_smithy_runtime_api::client::result::SdkError<
8138 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError,
8139 R,
8140 >,
8141 ) -> Self {
8142 match err {
8143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8146 source: err.into(),
8147 }),
8148 }
8149 }
8150}
8151impl From<crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError> for Error {
8152 fn from(err: crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError) -> Self {
8153 match err {
8154 crate::operation::describe_instance_event_notification_attributes::DescribeInstanceEventNotificationAttributesError::Unhandled(inner) => {
8155 Error::Unhandled(inner)
8156 }
8157 }
8158 }
8159}
8160impl<R>
8161 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError, R>>
8162 for Error
8163where
8164 R: Send + Sync + std::fmt::Debug + 'static,
8165{
8166 fn from(
8167 err: ::aws_smithy_runtime_api::client::result::SdkError<
8168 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError,
8169 R,
8170 >,
8171 ) -> Self {
8172 match err {
8173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8176 source: err.into(),
8177 }),
8178 }
8179 }
8180}
8181impl From<crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError> for Error {
8182 fn from(err: crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError) -> Self {
8183 match err {
8184 crate::operation::describe_instance_event_windows::DescribeInstanceEventWindowsError::Unhandled(inner) => Error::Unhandled(inner),
8185 }
8186 }
8187}
8188impl<R>
8189 From<
8190 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError, R>,
8191 > for Error
8192where
8193 R: Send + Sync + std::fmt::Debug + 'static,
8194{
8195 fn from(
8196 err: ::aws_smithy_runtime_api::client::result::SdkError<
8197 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError,
8198 R,
8199 >,
8200 ) -> Self {
8201 match err {
8202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8205 source: err.into(),
8206 }),
8207 }
8208 }
8209}
8210impl From<crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError> for Error {
8211 fn from(err: crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError) -> Self {
8212 match err {
8213 crate::operation::describe_instance_image_metadata::DescribeInstanceImageMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8214 }
8215 }
8216}
8217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>> for Error
8218where
8219 R: Send + Sync + std::fmt::Debug + 'static,
8220{
8221 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances::DescribeInstancesError, R>) -> Self {
8222 match err {
8223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8226 source: err.into(),
8227 }),
8228 }
8229 }
8230}
8231impl From<crate::operation::describe_instances::DescribeInstancesError> for Error {
8232 fn from(err: crate::operation::describe_instances::DescribeInstancesError) -> Self {
8233 match err {
8234 crate::operation::describe_instances::DescribeInstancesError::Unhandled(inner) => Error::Unhandled(inner),
8235 }
8236 }
8237}
8238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>> for Error
8239where
8240 R: Send + Sync + std::fmt::Debug + 'static,
8241{
8242 fn from(
8243 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_status::DescribeInstanceStatusError, R>,
8244 ) -> Self {
8245 match err {
8246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8249 source: err.into(),
8250 }),
8251 }
8252 }
8253}
8254impl From<crate::operation::describe_instance_status::DescribeInstanceStatusError> for Error {
8255 fn from(err: crate::operation::describe_instance_status::DescribeInstanceStatusError) -> Self {
8256 match err {
8257 crate::operation::describe_instance_status::DescribeInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
8258 }
8259 }
8260}
8261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>>
8262 for Error
8263where
8264 R: Send + Sync + std::fmt::Debug + 'static,
8265{
8266 fn from(
8267 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_topology::DescribeInstanceTopologyError, R>,
8268 ) -> Self {
8269 match err {
8270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8273 source: err.into(),
8274 }),
8275 }
8276 }
8277}
8278impl From<crate::operation::describe_instance_topology::DescribeInstanceTopologyError> for Error {
8279 fn from(err: crate::operation::describe_instance_topology::DescribeInstanceTopologyError) -> Self {
8280 match err {
8281 crate::operation::describe_instance_topology::DescribeInstanceTopologyError::Unhandled(inner) => Error::Unhandled(inner),
8282 }
8283 }
8284}
8285impl<R>
8286 From<
8287 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError, R>,
8288 > for Error
8289where
8290 R: Send + Sync + std::fmt::Debug + 'static,
8291{
8292 fn from(
8293 err: ::aws_smithy_runtime_api::client::result::SdkError<
8294 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError,
8295 R,
8296 >,
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_instance_type_offerings::DescribeInstanceTypeOfferingsError> for Error {
8308 fn from(err: crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError) -> Self {
8309 match err {
8310 crate::operation::describe_instance_type_offerings::DescribeInstanceTypeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8311 }
8312 }
8313}
8314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>> for Error
8315where
8316 R: Send + Sync + std::fmt::Debug + 'static,
8317{
8318 fn from(
8319 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_types::DescribeInstanceTypesError, R>,
8320 ) -> Self {
8321 match err {
8322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8325 source: err.into(),
8326 }),
8327 }
8328 }
8329}
8330impl From<crate::operation::describe_instance_types::DescribeInstanceTypesError> for Error {
8331 fn from(err: crate::operation::describe_instance_types::DescribeInstanceTypesError) -> Self {
8332 match err {
8333 crate::operation::describe_instance_types::DescribeInstanceTypesError::Unhandled(inner) => Error::Unhandled(inner),
8334 }
8335 }
8336}
8337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>>
8338 for Error
8339where
8340 R: Send + Sync + std::fmt::Debug + 'static,
8341{
8342 fn from(
8343 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError, R>,
8344 ) -> Self {
8345 match err {
8346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8349 source: err.into(),
8350 }),
8351 }
8352 }
8353}
8354impl From<crate::operation::describe_internet_gateways::DescribeInternetGatewaysError> for Error {
8355 fn from(err: crate::operation::describe_internet_gateways::DescribeInternetGatewaysError) -> Self {
8356 match err {
8357 crate::operation::describe_internet_gateways::DescribeInternetGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8358 }
8359 }
8360}
8361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>> for Error
8362where
8363 R: Send + Sync + std::fmt::Debug + 'static,
8364{
8365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError, R>) -> Self {
8366 match err {
8367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8370 source: err.into(),
8371 }),
8372 }
8373 }
8374}
8375impl From<crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError> for Error {
8376 fn from(err: crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError) -> Self {
8377 match err {
8378 crate::operation::describe_ipam_byoasn::DescribeIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
8379 }
8380 }
8381}
8382impl<R>
8383 From<
8384 ::aws_smithy_runtime_api::client::result::SdkError<
8385 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8386 R,
8387 >,
8388 > for Error
8389where
8390 R: Send + Sync + std::fmt::Debug + 'static,
8391{
8392 fn from(
8393 err: ::aws_smithy_runtime_api::client::result::SdkError<
8394 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
8395 R,
8396 >,
8397 ) -> Self {
8398 match err {
8399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8402 source: err.into(),
8403 }),
8404 }
8405 }
8406}
8407impl From<crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError> for Error {
8408 fn from(err: crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError) -> Self {
8409 match err {
8410 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError::Unhandled(
8411 inner,
8412 ) => Error::Unhandled(inner),
8413 }
8414 }
8415}
8416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>> for Error
8417where
8418 R: Send + Sync + std::fmt::Debug + 'static,
8419{
8420 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_pools::DescribeIpamPoolsError, R>) -> Self {
8421 match err {
8422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8425 source: err.into(),
8426 }),
8427 }
8428 }
8429}
8430impl From<crate::operation::describe_ipam_pools::DescribeIpamPoolsError> for Error {
8431 fn from(err: crate::operation::describe_ipam_pools::DescribeIpamPoolsError) -> Self {
8432 match err {
8433 crate::operation::describe_ipam_pools::DescribeIpamPoolsError::Unhandled(inner) => Error::Unhandled(inner),
8434 }
8435 }
8436}
8437impl<R>
8438 From<
8439 ::aws_smithy_runtime_api::client::result::SdkError<
8440 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8441 R,
8442 >,
8443 > for Error
8444where
8445 R: Send + Sync + std::fmt::Debug + 'static,
8446{
8447 fn from(
8448 err: ::aws_smithy_runtime_api::client::result::SdkError<
8449 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError,
8450 R,
8451 >,
8452 ) -> Self {
8453 match err {
8454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8457 source: err.into(),
8458 }),
8459 }
8460 }
8461}
8462impl From<crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError> for Error {
8463 fn from(err: crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError) -> Self {
8464 match err {
8465 crate::operation::describe_ipam_prefix_list_resolvers::DescribeIpamPrefixListResolversError::Unhandled(inner) => Error::Unhandled(inner),
8466 }
8467 }
8468}
8469impl<R>
8470 From<
8471 ::aws_smithy_runtime_api::client::result::SdkError<
8472 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8473 R,
8474 >,
8475 > for Error
8476where
8477 R: Send + Sync + std::fmt::Debug + 'static,
8478{
8479 fn from(
8480 err: ::aws_smithy_runtime_api::client::result::SdkError<
8481 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError,
8482 R,
8483 >,
8484 ) -> Self {
8485 match err {
8486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8489 source: err.into(),
8490 }),
8491 }
8492 }
8493}
8494impl From<crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError> for Error {
8495 fn from(err: crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError) -> Self {
8496 match err {
8497 crate::operation::describe_ipam_prefix_list_resolver_targets::DescribeIpamPrefixListResolverTargetsError::Unhandled(inner) => {
8498 Error::Unhandled(inner)
8499 }
8500 }
8501 }
8502}
8503impl<R>
8504 From<
8505 ::aws_smithy_runtime_api::client::result::SdkError<
8506 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8507 R,
8508 >,
8509 > for Error
8510where
8511 R: Send + Sync + std::fmt::Debug + 'static,
8512{
8513 fn from(
8514 err: ::aws_smithy_runtime_api::client::result::SdkError<
8515 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError,
8516 R,
8517 >,
8518 ) -> Self {
8519 match err {
8520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8523 source: err.into(),
8524 }),
8525 }
8526 }
8527}
8528impl From<crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError> for Error {
8529 fn from(err: crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError) -> Self {
8530 match err {
8531 crate::operation::describe_ipam_resource_discoveries::DescribeIpamResourceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
8532 }
8533 }
8534}
8535impl<R>
8536 From<
8537 ::aws_smithy_runtime_api::client::result::SdkError<
8538 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8539 R,
8540 >,
8541 > for Error
8542where
8543 R: Send + Sync + std::fmt::Debug + 'static,
8544{
8545 fn from(
8546 err: ::aws_smithy_runtime_api::client::result::SdkError<
8547 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError,
8548 R,
8549 >,
8550 ) -> Self {
8551 match err {
8552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8555 source: err.into(),
8556 }),
8557 }
8558 }
8559}
8560impl From<crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError> for Error {
8561 fn from(err: crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError) -> Self {
8562 match err {
8563 crate::operation::describe_ipam_resource_discovery_associations::DescribeIpamResourceDiscoveryAssociationsError::Unhandled(inner) => {
8564 Error::Unhandled(inner)
8565 }
8566 }
8567 }
8568}
8569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>> for Error
8570where
8571 R: Send + Sync + std::fmt::Debug + 'static,
8572{
8573 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipams::DescribeIpamsError, R>) -> Self {
8574 match err {
8575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8578 source: err.into(),
8579 }),
8580 }
8581 }
8582}
8583impl From<crate::operation::describe_ipams::DescribeIpamsError> for Error {
8584 fn from(err: crate::operation::describe_ipams::DescribeIpamsError) -> Self {
8585 match err {
8586 crate::operation::describe_ipams::DescribeIpamsError::Unhandled(inner) => Error::Unhandled(inner),
8587 }
8588 }
8589}
8590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>> for Error
8591where
8592 R: Send + Sync + std::fmt::Debug + 'static,
8593{
8594 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipam_scopes::DescribeIpamScopesError, R>) -> Self {
8595 match err {
8596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8599 source: err.into(),
8600 }),
8601 }
8602 }
8603}
8604impl From<crate::operation::describe_ipam_scopes::DescribeIpamScopesError> for Error {
8605 fn from(err: crate::operation::describe_ipam_scopes::DescribeIpamScopesError) -> Self {
8606 match err {
8607 crate::operation::describe_ipam_scopes::DescribeIpamScopesError::Unhandled(inner) => Error::Unhandled(inner),
8608 }
8609 }
8610}
8611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>> for Error
8612where
8613 R: Send + Sync + std::fmt::Debug + 'static,
8614{
8615 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError, R>) -> Self {
8616 match err {
8617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8620 source: err.into(),
8621 }),
8622 }
8623 }
8624}
8625impl From<crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError> for Error {
8626 fn from(err: crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError) -> Self {
8627 match err {
8628 crate::operation::describe_ipv6_pools::DescribeIpv6PoolsError::Unhandled(inner) => Error::Unhandled(inner),
8629 }
8630 }
8631}
8632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>> for Error
8633where
8634 R: Send + Sync + std::fmt::Debug + 'static,
8635{
8636 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key_pairs::DescribeKeyPairsError, R>) -> 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_key_pairs::DescribeKeyPairsError> for Error {
8647 fn from(err: crate::operation::describe_key_pairs::DescribeKeyPairsError) -> Self {
8648 match err {
8649 crate::operation::describe_key_pairs::DescribeKeyPairsError::Unhandled(inner) => Error::Unhandled(inner),
8650 }
8651 }
8652}
8653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>>
8654 for Error
8655where
8656 R: Send + Sync + std::fmt::Debug + 'static,
8657{
8658 fn from(
8659 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError, R>,
8660 ) -> Self {
8661 match err {
8662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8665 source: err.into(),
8666 }),
8667 }
8668 }
8669}
8670impl From<crate::operation::describe_launch_templates::DescribeLaunchTemplatesError> for Error {
8671 fn from(err: crate::operation::describe_launch_templates::DescribeLaunchTemplatesError) -> Self {
8672 match err {
8673 crate::operation::describe_launch_templates::DescribeLaunchTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
8674 }
8675 }
8676}
8677impl<R>
8678 From<
8679 ::aws_smithy_runtime_api::client::result::SdkError<
8680 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8681 R,
8682 >,
8683 > for Error
8684where
8685 R: Send + Sync + std::fmt::Debug + 'static,
8686{
8687 fn from(
8688 err: ::aws_smithy_runtime_api::client::result::SdkError<
8689 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError,
8690 R,
8691 >,
8692 ) -> Self {
8693 match err {
8694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8697 source: err.into(),
8698 }),
8699 }
8700 }
8701}
8702impl From<crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError> for Error {
8703 fn from(err: crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError) -> Self {
8704 match err {
8705 crate::operation::describe_launch_template_versions::DescribeLaunchTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
8706 }
8707 }
8708}
8709impl<R>
8710 From<
8711 ::aws_smithy_runtime_api::client::result::SdkError<
8712 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8713 R,
8714 >,
8715 > for Error
8716where
8717 R: Send + Sync + std::fmt::Debug + 'static,
8718{
8719 fn from(
8720 err: ::aws_smithy_runtime_api::client::result::SdkError<
8721 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError,
8722 R,
8723 >,
8724 ) -> Self {
8725 match err {
8726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8729 source: err.into(),
8730 }),
8731 }
8732 }
8733}
8734impl From<crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError> for Error {
8735 fn from(err: crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError) -> Self {
8736 match err {
8737 crate::operation::describe_local_gateway_route_tables::DescribeLocalGatewayRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
8738 }
8739 }
8740}
8741impl<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 {
8742 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError, R>) -> Self {
8743 match err {
8744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8745 _ => Error::Unhandled(
8746 crate::error::sealed_unhandled::Unhandled {
8747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8748 source: err.into(),
8749 }
8750 ),
8751 }
8752 }
8753}
8754impl From<crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError> for Error {
8755 fn from(err: crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError) -> Self {
8756 match err {
8757 crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
8758 }
8759 }
8760}
8761impl<R>
8762 From<
8763 ::aws_smithy_runtime_api::client::result::SdkError<
8764 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8765 R,
8766 >,
8767 > for Error
8768where
8769 R: Send + Sync + std::fmt::Debug + 'static,
8770{
8771 fn from(
8772 err: ::aws_smithy_runtime_api::client::result::SdkError<
8773 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError,
8774 R,
8775 >,
8776 ) -> Self {
8777 match err {
8778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8781 source: err.into(),
8782 }),
8783 }
8784 }
8785}
8786impl From<crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError> for Error {
8787 fn from(err: crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError) -> Self {
8788 match err {
8789 crate::operation::describe_local_gateway_route_table_vpc_associations::DescribeLocalGatewayRouteTableVpcAssociationsError::Unhandled(
8790 inner,
8791 ) => Error::Unhandled(inner),
8792 }
8793 }
8794}
8795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>> for Error
8796where
8797 R: Send + Sync + std::fmt::Debug + 'static,
8798{
8799 fn from(
8800 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_local_gateways::DescribeLocalGatewaysError, R>,
8801 ) -> Self {
8802 match err {
8803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8806 source: err.into(),
8807 }),
8808 }
8809 }
8810}
8811impl From<crate::operation::describe_local_gateways::DescribeLocalGatewaysError> for Error {
8812 fn from(err: crate::operation::describe_local_gateways::DescribeLocalGatewaysError) -> Self {
8813 match err {
8814 crate::operation::describe_local_gateways::DescribeLocalGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
8815 }
8816 }
8817}
8818impl<R>
8819 From<
8820 ::aws_smithy_runtime_api::client::result::SdkError<
8821 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8822 R,
8823 >,
8824 > for Error
8825where
8826 R: Send + Sync + std::fmt::Debug + 'static,
8827{
8828 fn from(
8829 err: ::aws_smithy_runtime_api::client::result::SdkError<
8830 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError,
8831 R,
8832 >,
8833 ) -> Self {
8834 match err {
8835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8838 source: err.into(),
8839 }),
8840 }
8841 }
8842}
8843impl From<crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError> for Error {
8844 fn from(err: crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError) -> Self {
8845 match err {
8846 crate::operation::describe_local_gateway_virtual_interface_groups::DescribeLocalGatewayVirtualInterfaceGroupsError::Unhandled(inner) => {
8847 Error::Unhandled(inner)
8848 }
8849 }
8850 }
8851}
8852impl<R>
8853 From<
8854 ::aws_smithy_runtime_api::client::result::SdkError<
8855 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8856 R,
8857 >,
8858 > for Error
8859where
8860 R: Send + Sync + std::fmt::Debug + 'static,
8861{
8862 fn from(
8863 err: ::aws_smithy_runtime_api::client::result::SdkError<
8864 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError,
8865 R,
8866 >,
8867 ) -> Self {
8868 match err {
8869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8872 source: err.into(),
8873 }),
8874 }
8875 }
8876}
8877impl From<crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError> for Error {
8878 fn from(err: crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError) -> Self {
8879 match err {
8880 crate::operation::describe_local_gateway_virtual_interfaces::DescribeLocalGatewayVirtualInterfacesError::Unhandled(inner) => {
8881 Error::Unhandled(inner)
8882 }
8883 }
8884 }
8885}
8886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>>
8887 for Error
8888where
8889 R: Send + Sync + std::fmt::Debug + 'static,
8890{
8891 fn from(
8892 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError, R>,
8893 ) -> Self {
8894 match err {
8895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8898 source: err.into(),
8899 }),
8900 }
8901 }
8902}
8903impl From<crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError> for Error {
8904 fn from(err: crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError) -> Self {
8905 match err {
8906 crate::operation::describe_locked_snapshots::DescribeLockedSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
8907 }
8908 }
8909}
8910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>> for Error
8911where
8912 R: Send + Sync + std::fmt::Debug + 'static,
8913{
8914 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_hosts::DescribeMacHostsError, R>) -> Self {
8915 match err {
8916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8919 source: err.into(),
8920 }),
8921 }
8922 }
8923}
8924impl From<crate::operation::describe_mac_hosts::DescribeMacHostsError> for Error {
8925 fn from(err: crate::operation::describe_mac_hosts::DescribeMacHostsError) -> Self {
8926 match err {
8927 crate::operation::describe_mac_hosts::DescribeMacHostsError::Unhandled(inner) => Error::Unhandled(inner),
8928 }
8929 }
8930}
8931impl<R>
8932 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError, R>>
8933 for Error
8934where
8935 R: Send + Sync + std::fmt::Debug + 'static,
8936{
8937 fn from(
8938 err: ::aws_smithy_runtime_api::client::result::SdkError<
8939 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError,
8940 R,
8941 >,
8942 ) -> Self {
8943 match err {
8944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8947 source: err.into(),
8948 }),
8949 }
8950 }
8951}
8952impl From<crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError> for Error {
8953 fn from(err: crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError) -> Self {
8954 match err {
8955 crate::operation::describe_mac_modification_tasks::DescribeMacModificationTasksError::Unhandled(inner) => Error::Unhandled(inner),
8956 }
8957 }
8958}
8959impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>>
8960 for Error
8961where
8962 R: Send + Sync + std::fmt::Debug + 'static,
8963{
8964 fn from(
8965 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError, R>,
8966 ) -> Self {
8967 match err {
8968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8971 source: err.into(),
8972 }),
8973 }
8974 }
8975}
8976impl From<crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError> for Error {
8977 fn from(err: crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError) -> Self {
8978 match err {
8979 crate::operation::describe_managed_prefix_lists::DescribeManagedPrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
8980 }
8981 }
8982}
8983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>>
8984 for Error
8985where
8986 R: Send + Sync + std::fmt::Debug + 'static,
8987{
8988 fn from(
8989 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_moving_addresses::DescribeMovingAddressesError, R>,
8990 ) -> Self {
8991 match err {
8992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8995 source: err.into(),
8996 }),
8997 }
8998 }
8999}
9000impl From<crate::operation::describe_moving_addresses::DescribeMovingAddressesError> for Error {
9001 fn from(err: crate::operation::describe_moving_addresses::DescribeMovingAddressesError) -> Self {
9002 match err {
9003 crate::operation::describe_moving_addresses::DescribeMovingAddressesError::Unhandled(inner) => Error::Unhandled(inner),
9004 }
9005 }
9006}
9007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>> for Error
9008where
9009 R: Send + Sync + std::fmt::Debug + 'static,
9010{
9011 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_nat_gateways::DescribeNatGatewaysError, R>) -> Self {
9012 match err {
9013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9016 source: err.into(),
9017 }),
9018 }
9019 }
9020}
9021impl From<crate::operation::describe_nat_gateways::DescribeNatGatewaysError> for Error {
9022 fn from(err: crate::operation::describe_nat_gateways::DescribeNatGatewaysError) -> Self {
9023 match err {
9024 crate::operation::describe_nat_gateways::DescribeNatGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
9025 }
9026 }
9027}
9028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>> for Error
9029where
9030 R: Send + Sync + std::fmt::Debug + 'static,
9031{
9032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_acls::DescribeNetworkAclsError, R>) -> Self {
9033 match err {
9034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9037 source: err.into(),
9038 }),
9039 }
9040 }
9041}
9042impl From<crate::operation::describe_network_acls::DescribeNetworkAclsError> for Error {
9043 fn from(err: crate::operation::describe_network_acls::DescribeNetworkAclsError) -> Self {
9044 match err {
9045 crate::operation::describe_network_acls::DescribeNetworkAclsError::Unhandled(inner) => Error::Unhandled(inner),
9046 }
9047 }
9048}
9049impl<R>
9050 From<
9051 ::aws_smithy_runtime_api::client::result::SdkError<
9052 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9053 R,
9054 >,
9055 > for Error
9056where
9057 R: Send + Sync + std::fmt::Debug + 'static,
9058{
9059 fn from(
9060 err: ::aws_smithy_runtime_api::client::result::SdkError<
9061 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError,
9062 R,
9063 >,
9064 ) -> Self {
9065 match err {
9066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9069 source: err.into(),
9070 }),
9071 }
9072 }
9073}
9074impl From<crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError> for Error {
9075 fn from(err: crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError) -> Self {
9076 match err {
9077 crate::operation::describe_network_insights_access_scope_analyses::DescribeNetworkInsightsAccessScopeAnalysesError::Unhandled(inner) => {
9078 Error::Unhandled(inner)
9079 }
9080 }
9081 }
9082}
9083impl<R>
9084 From<
9085 ::aws_smithy_runtime_api::client::result::SdkError<
9086 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9087 R,
9088 >,
9089 > for Error
9090where
9091 R: Send + Sync + std::fmt::Debug + 'static,
9092{
9093 fn from(
9094 err: ::aws_smithy_runtime_api::client::result::SdkError<
9095 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError,
9096 R,
9097 >,
9098 ) -> Self {
9099 match err {
9100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9103 source: err.into(),
9104 }),
9105 }
9106 }
9107}
9108impl From<crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError> for Error {
9109 fn from(err: crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError) -> Self {
9110 match err {
9111 crate::operation::describe_network_insights_access_scopes::DescribeNetworkInsightsAccessScopesError::Unhandled(inner) => {
9112 Error::Unhandled(inner)
9113 }
9114 }
9115 }
9116}
9117impl<R>
9118 From<
9119 ::aws_smithy_runtime_api::client::result::SdkError<
9120 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9121 R,
9122 >,
9123 > for Error
9124where
9125 R: Send + Sync + std::fmt::Debug + 'static,
9126{
9127 fn from(
9128 err: ::aws_smithy_runtime_api::client::result::SdkError<
9129 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError,
9130 R,
9131 >,
9132 ) -> Self {
9133 match err {
9134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9137 source: err.into(),
9138 }),
9139 }
9140 }
9141}
9142impl From<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError> for Error {
9143 fn from(err: crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError) -> Self {
9144 match err {
9145 crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
9146 }
9147 }
9148}
9149impl<R>
9150 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError, R>>
9151 for Error
9152where
9153 R: Send + Sync + std::fmt::Debug + 'static,
9154{
9155 fn from(
9156 err: ::aws_smithy_runtime_api::client::result::SdkError<
9157 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError,
9158 R,
9159 >,
9160 ) -> Self {
9161 match err {
9162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9165 source: err.into(),
9166 }),
9167 }
9168 }
9169}
9170impl From<crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError> for Error {
9171 fn from(err: crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError) -> Self {
9172 match err {
9173 crate::operation::describe_network_insights_paths::DescribeNetworkInsightsPathsError::Unhandled(inner) => Error::Unhandled(inner),
9174 }
9175 }
9176}
9177impl<R>
9178 From<
9179 ::aws_smithy_runtime_api::client::result::SdkError<
9180 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9181 R,
9182 >,
9183 > for Error
9184where
9185 R: Send + Sync + std::fmt::Debug + 'static,
9186{
9187 fn from(
9188 err: ::aws_smithy_runtime_api::client::result::SdkError<
9189 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError,
9190 R,
9191 >,
9192 ) -> Self {
9193 match err {
9194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9197 source: err.into(),
9198 }),
9199 }
9200 }
9201}
9202impl From<crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError> for Error {
9203 fn from(err: crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError) -> Self {
9204 match err {
9205 crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError::Unhandled(inner) => {
9206 Error::Unhandled(inner)
9207 }
9208 }
9209 }
9210}
9211impl<R>
9212 From<
9213 ::aws_smithy_runtime_api::client::result::SdkError<
9214 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9215 R,
9216 >,
9217 > for Error
9218where
9219 R: Send + Sync + std::fmt::Debug + 'static,
9220{
9221 fn from(
9222 err: ::aws_smithy_runtime_api::client::result::SdkError<
9223 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError,
9224 R,
9225 >,
9226 ) -> Self {
9227 match err {
9228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9231 source: err.into(),
9232 }),
9233 }
9234 }
9235}
9236impl From<crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError> for Error {
9237 fn from(err: crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError) -> Self {
9238 match err {
9239 crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError::Unhandled(inner) => {
9240 Error::Unhandled(inner)
9241 }
9242 }
9243 }
9244}
9245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>>
9246 for Error
9247where
9248 R: Send + Sync + std::fmt::Debug + 'static,
9249{
9250 fn from(
9251 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError, R>,
9252 ) -> Self {
9253 match err {
9254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9257 source: err.into(),
9258 }),
9259 }
9260 }
9261}
9262impl From<crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError> for Error {
9263 fn from(err: crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError) -> Self {
9264 match err {
9265 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
9266 }
9267 }
9268}
9269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>> for Error
9270where
9271 R: Send + Sync + std::fmt::Debug + 'static,
9272{
9273 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_outpost_lags::DescribeOutpostLagsError, R>) -> Self {
9274 match err {
9275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9278 source: err.into(),
9279 }),
9280 }
9281 }
9282}
9283impl From<crate::operation::describe_outpost_lags::DescribeOutpostLagsError> for Error {
9284 fn from(err: crate::operation::describe_outpost_lags::DescribeOutpostLagsError) -> Self {
9285 match err {
9286 crate::operation::describe_outpost_lags::DescribeOutpostLagsError::Unhandled(inner) => Error::Unhandled(inner),
9287 }
9288 }
9289}
9290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>>
9291 for Error
9292where
9293 R: Send + Sync + std::fmt::Debug + 'static,
9294{
9295 fn from(
9296 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_placement_groups::DescribePlacementGroupsError, R>,
9297 ) -> Self {
9298 match err {
9299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9302 source: err.into(),
9303 }),
9304 }
9305 }
9306}
9307impl From<crate::operation::describe_placement_groups::DescribePlacementGroupsError> for Error {
9308 fn from(err: crate::operation::describe_placement_groups::DescribePlacementGroupsError) -> Self {
9309 match err {
9310 crate::operation::describe_placement_groups::DescribePlacementGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9311 }
9312 }
9313}
9314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>> for Error
9315where
9316 R: Send + Sync + std::fmt::Debug + 'static,
9317{
9318 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prefix_lists::DescribePrefixListsError, R>) -> Self {
9319 match err {
9320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9323 source: err.into(),
9324 }),
9325 }
9326 }
9327}
9328impl From<crate::operation::describe_prefix_lists::DescribePrefixListsError> for Error {
9329 fn from(err: crate::operation::describe_prefix_lists::DescribePrefixListsError) -> Self {
9330 match err {
9331 crate::operation::describe_prefix_lists::DescribePrefixListsError::Unhandled(inner) => Error::Unhandled(inner),
9332 }
9333 }
9334}
9335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>>
9336 for Error
9337where
9338 R: Send + Sync + std::fmt::Debug + 'static,
9339{
9340 fn from(
9341 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError, R>,
9342 ) -> Self {
9343 match err {
9344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9347 source: err.into(),
9348 }),
9349 }
9350 }
9351}
9352impl From<crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError> for Error {
9353 fn from(err: crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError) -> Self {
9354 match err {
9355 crate::operation::describe_principal_id_format::DescribePrincipalIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
9356 }
9357 }
9358}
9359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>>
9360 for Error
9361where
9362 R: Send + Sync + std::fmt::Debug + 'static,
9363{
9364 fn from(
9365 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError, R>,
9366 ) -> Self {
9367 match err {
9368 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9369 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9370 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9371 source: err.into(),
9372 }),
9373 }
9374 }
9375}
9376impl From<crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError> for Error {
9377 fn from(err: crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError) -> Self {
9378 match err {
9379 crate::operation::describe_public_ipv4_pools::DescribePublicIpv4PoolsError::Unhandled(inner) => Error::Unhandled(inner),
9380 }
9381 }
9382}
9383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>> for Error
9384where
9385 R: Send + Sync + std::fmt::Debug + 'static,
9386{
9387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_regions::DescribeRegionsError, R>) -> Self {
9388 match err {
9389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9392 source: err.into(),
9393 }),
9394 }
9395 }
9396}
9397impl From<crate::operation::describe_regions::DescribeRegionsError> for Error {
9398 fn from(err: crate::operation::describe_regions::DescribeRegionsError) -> Self {
9399 match err {
9400 crate::operation::describe_regions::DescribeRegionsError::Unhandled(inner) => Error::Unhandled(inner),
9401 }
9402 }
9403}
9404impl<R>
9405 From<
9406 ::aws_smithy_runtime_api::client::result::SdkError<
9407 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9408 R,
9409 >,
9410 > for Error
9411where
9412 R: Send + Sync + std::fmt::Debug + 'static,
9413{
9414 fn from(
9415 err: ::aws_smithy_runtime_api::client::result::SdkError<
9416 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError,
9417 R,
9418 >,
9419 ) -> Self {
9420 match err {
9421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9424 source: err.into(),
9425 }),
9426 }
9427 }
9428}
9429impl From<crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError> for Error {
9430 fn from(err: crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError) -> Self {
9431 match err {
9432 crate::operation::describe_replace_root_volume_tasks::DescribeReplaceRootVolumeTasksError::Unhandled(inner) => Error::Unhandled(inner),
9433 }
9434 }
9435}
9436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>>
9437 for Error
9438where
9439 R: Send + Sync + std::fmt::Debug + 'static,
9440{
9441 fn from(
9442 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_instances::DescribeReservedInstancesError, R>,
9443 ) -> Self {
9444 match err {
9445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9448 source: err.into(),
9449 }),
9450 }
9451 }
9452}
9453impl From<crate::operation::describe_reserved_instances::DescribeReservedInstancesError> for Error {
9454 fn from(err: crate::operation::describe_reserved_instances::DescribeReservedInstancesError) -> Self {
9455 match err {
9456 crate::operation::describe_reserved_instances::DescribeReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9457 }
9458 }
9459}
9460impl<R>
9461 From<
9462 ::aws_smithy_runtime_api::client::result::SdkError<
9463 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9464 R,
9465 >,
9466 > for Error
9467where
9468 R: Send + Sync + std::fmt::Debug + 'static,
9469{
9470 fn from(
9471 err: ::aws_smithy_runtime_api::client::result::SdkError<
9472 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError,
9473 R,
9474 >,
9475 ) -> Self {
9476 match err {
9477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9480 source: err.into(),
9481 }),
9482 }
9483 }
9484}
9485impl From<crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError> for Error {
9486 fn from(err: crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError) -> Self {
9487 match err {
9488 crate::operation::describe_reserved_instances_listings::DescribeReservedInstancesListingsError::Unhandled(inner) => {
9489 Error::Unhandled(inner)
9490 }
9491 }
9492 }
9493}
9494impl<R>
9495 From<
9496 ::aws_smithy_runtime_api::client::result::SdkError<
9497 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9498 R,
9499 >,
9500 > for Error
9501where
9502 R: Send + Sync + std::fmt::Debug + 'static,
9503{
9504 fn from(
9505 err: ::aws_smithy_runtime_api::client::result::SdkError<
9506 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError,
9507 R,
9508 >,
9509 ) -> Self {
9510 match err {
9511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9514 source: err.into(),
9515 }),
9516 }
9517 }
9518}
9519impl From<crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError> for Error {
9520 fn from(err: crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError) -> Self {
9521 match err {
9522 crate::operation::describe_reserved_instances_modifications::DescribeReservedInstancesModificationsError::Unhandled(inner) => {
9523 Error::Unhandled(inner)
9524 }
9525 }
9526 }
9527}
9528impl<R>
9529 From<
9530 ::aws_smithy_runtime_api::client::result::SdkError<
9531 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9532 R,
9533 >,
9534 > for Error
9535where
9536 R: Send + Sync + std::fmt::Debug + 'static,
9537{
9538 fn from(
9539 err: ::aws_smithy_runtime_api::client::result::SdkError<
9540 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError,
9541 R,
9542 >,
9543 ) -> Self {
9544 match err {
9545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9548 source: err.into(),
9549 }),
9550 }
9551 }
9552}
9553impl From<crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError> for Error {
9554 fn from(err: crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError) -> Self {
9555 match err {
9556 crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsError::Unhandled(inner) => {
9557 Error::Unhandled(inner)
9558 }
9559 }
9560 }
9561}
9562impl<R>
9563 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError, R>>
9564 for Error
9565where
9566 R: Send + Sync + std::fmt::Debug + 'static,
9567{
9568 fn from(
9569 err: ::aws_smithy_runtime_api::client::result::SdkError<
9570 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError,
9571 R,
9572 >,
9573 ) -> Self {
9574 match err {
9575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9578 source: err.into(),
9579 }),
9580 }
9581 }
9582}
9583impl From<crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError> for Error {
9584 fn from(err: crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError) -> Self {
9585 match err {
9586 crate::operation::describe_route_server_endpoints::DescribeRouteServerEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
9587 }
9588 }
9589}
9590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>>
9591 for Error
9592where
9593 R: Send + Sync + std::fmt::Debug + 'static,
9594{
9595 fn from(
9596 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError, R>,
9597 ) -> Self {
9598 match err {
9599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9602 source: err.into(),
9603 }),
9604 }
9605 }
9606}
9607impl From<crate::operation::describe_route_server_peers::DescribeRouteServerPeersError> for Error {
9608 fn from(err: crate::operation::describe_route_server_peers::DescribeRouteServerPeersError) -> Self {
9609 match err {
9610 crate::operation::describe_route_server_peers::DescribeRouteServerPeersError::Unhandled(inner) => Error::Unhandled(inner),
9611 }
9612 }
9613}
9614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>> for Error
9615where
9616 R: Send + Sync + std::fmt::Debug + 'static,
9617{
9618 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_servers::DescribeRouteServersError, R>) -> Self {
9619 match err {
9620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9623 source: err.into(),
9624 }),
9625 }
9626 }
9627}
9628impl From<crate::operation::describe_route_servers::DescribeRouteServersError> for Error {
9629 fn from(err: crate::operation::describe_route_servers::DescribeRouteServersError) -> Self {
9630 match err {
9631 crate::operation::describe_route_servers::DescribeRouteServersError::Unhandled(inner) => Error::Unhandled(inner),
9632 }
9633 }
9634}
9635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>> for Error
9636where
9637 R: Send + Sync + std::fmt::Debug + 'static,
9638{
9639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_tables::DescribeRouteTablesError, R>) -> Self {
9640 match err {
9641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9644 source: err.into(),
9645 }),
9646 }
9647 }
9648}
9649impl From<crate::operation::describe_route_tables::DescribeRouteTablesError> for Error {
9650 fn from(err: crate::operation::describe_route_tables::DescribeRouteTablesError) -> Self {
9651 match err {
9652 crate::operation::describe_route_tables::DescribeRouteTablesError::Unhandled(inner) => Error::Unhandled(inner),
9653 }
9654 }
9655}
9656impl<R>
9657 From<
9658 ::aws_smithy_runtime_api::client::result::SdkError<
9659 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9660 R,
9661 >,
9662 > for Error
9663where
9664 R: Send + Sync + std::fmt::Debug + 'static,
9665{
9666 fn from(
9667 err: ::aws_smithy_runtime_api::client::result::SdkError<
9668 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError,
9669 R,
9670 >,
9671 ) -> Self {
9672 match err {
9673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9676 source: err.into(),
9677 }),
9678 }
9679 }
9680}
9681impl From<crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError> for Error {
9682 fn from(err: crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError) -> Self {
9683 match err {
9684 crate::operation::describe_scheduled_instance_availability::DescribeScheduledInstanceAvailabilityError::Unhandled(inner) => {
9685 Error::Unhandled(inner)
9686 }
9687 }
9688 }
9689}
9690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>>
9691 for Error
9692where
9693 R: Send + Sync + std::fmt::Debug + 'static,
9694{
9695 fn from(
9696 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError, R>,
9697 ) -> Self {
9698 match err {
9699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9702 source: err.into(),
9703 }),
9704 }
9705 }
9706}
9707impl From<crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError> for Error {
9708 fn from(err: crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError) -> Self {
9709 match err {
9710 crate::operation::describe_scheduled_instances::DescribeScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9711 }
9712 }
9713}
9714impl<R>
9715 From<
9716 ::aws_smithy_runtime_api::client::result::SdkError<
9717 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9718 R,
9719 >,
9720 > for Error
9721where
9722 R: Send + Sync + std::fmt::Debug + 'static,
9723{
9724 fn from(
9725 err: ::aws_smithy_runtime_api::client::result::SdkError<
9726 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError,
9727 R,
9728 >,
9729 ) -> Self {
9730 match err {
9731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9734 source: err.into(),
9735 }),
9736 }
9737 }
9738}
9739impl From<crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError> for Error {
9740 fn from(err: crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError) -> Self {
9741 match err {
9742 crate::operation::describe_security_group_references::DescribeSecurityGroupReferencesError::Unhandled(inner) => Error::Unhandled(inner),
9743 }
9744 }
9745}
9746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>>
9747 for Error
9748where
9749 R: Send + Sync + std::fmt::Debug + 'static,
9750{
9751 fn from(
9752 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError, R>,
9753 ) -> Self {
9754 match err {
9755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9758 source: err.into(),
9759 }),
9760 }
9761 }
9762}
9763impl From<crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError> for Error {
9764 fn from(err: crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError) -> Self {
9765 match err {
9766 crate::operation::describe_security_group_rules::DescribeSecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
9767 }
9768 }
9769}
9770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>> for Error
9771where
9772 R: Send + Sync + std::fmt::Debug + 'static,
9773{
9774 fn from(
9775 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_groups::DescribeSecurityGroupsError, R>,
9776 ) -> 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_security_groups::DescribeSecurityGroupsError> for Error {
9787 fn from(err: crate::operation::describe_security_groups::DescribeSecurityGroupsError) -> Self {
9788 match err {
9789 crate::operation::describe_security_groups::DescribeSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
9790 }
9791 }
9792}
9793impl<R>
9794 From<
9795 ::aws_smithy_runtime_api::client::result::SdkError<
9796 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
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_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError,
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_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError> for Error {
9819 fn from(err: crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError) -> Self {
9820 match err {
9821 crate::operation::describe_security_group_vpc_associations::DescribeSecurityGroupVpcAssociationsError::Unhandled(inner) => {
9822 Error::Unhandled(inner)
9823 }
9824 }
9825 }
9826}
9827impl<R>
9828 From<
9829 ::aws_smithy_runtime_api::client::result::SdkError<
9830 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9831 R,
9832 >,
9833 > for Error
9834where
9835 R: Send + Sync + std::fmt::Debug + 'static,
9836{
9837 fn from(
9838 err: ::aws_smithy_runtime_api::client::result::SdkError<
9839 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError,
9840 R,
9841 >,
9842 ) -> Self {
9843 match err {
9844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9847 source: err.into(),
9848 }),
9849 }
9850 }
9851}
9852impl From<crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError> for Error {
9853 fn from(err: crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError) -> Self {
9854 match err {
9855 crate::operation::describe_service_link_virtual_interfaces::DescribeServiceLinkVirtualInterfacesError::Unhandled(inner) => {
9856 Error::Unhandled(inner)
9857 }
9858 }
9859 }
9860}
9861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>>
9862 for Error
9863where
9864 R: Send + Sync + std::fmt::Debug + 'static,
9865{
9866 fn from(
9867 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError, R>,
9868 ) -> Self {
9869 match err {
9870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9873 source: err.into(),
9874 }),
9875 }
9876 }
9877}
9878impl From<crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError> for Error {
9879 fn from(err: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError) -> Self {
9880 match err {
9881 crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
9882 }
9883 }
9884}
9885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
9886where
9887 R: Send + Sync + std::fmt::Debug + 'static,
9888{
9889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
9890 match err {
9891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9894 source: err.into(),
9895 }),
9896 }
9897 }
9898}
9899impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
9900 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
9901 match err {
9902 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
9903 }
9904 }
9905}
9906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>>
9907 for Error
9908where
9909 R: Send + Sync + std::fmt::Debug + 'static,
9910{
9911 fn from(
9912 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError, R>,
9913 ) -> Self {
9914 match err {
9915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9918 source: err.into(),
9919 }),
9920 }
9921 }
9922}
9923impl From<crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError> for Error {
9924 fn from(err: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError) -> Self {
9925 match err {
9926 crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError::Unhandled(inner) => Error::Unhandled(inner),
9927 }
9928 }
9929}
9930impl<R>
9931 From<
9932 ::aws_smithy_runtime_api::client::result::SdkError<
9933 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
9934 R,
9935 >,
9936 > for Error
9937where
9938 R: Send + Sync + std::fmt::Debug + 'static,
9939{
9940 fn from(
9941 err: ::aws_smithy_runtime_api::client::result::SdkError<
9942 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError,
9943 R,
9944 >,
9945 ) -> Self {
9946 match err {
9947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9950 source: err.into(),
9951 }),
9952 }
9953 }
9954}
9955impl From<crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError> for Error {
9956 fn from(err: crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError) -> Self {
9957 match err {
9958 crate::operation::describe_spot_datafeed_subscription::DescribeSpotDatafeedSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
9959 }
9960 }
9961}
9962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>>
9963 for Error
9964where
9965 R: Send + Sync + std::fmt::Debug + 'static,
9966{
9967 fn from(
9968 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError, R>,
9969 ) -> Self {
9970 match err {
9971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9974 source: err.into(),
9975 }),
9976 }
9977 }
9978}
9979impl From<crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError> for Error {
9980 fn from(err: crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError) -> Self {
9981 match err {
9982 crate::operation::describe_spot_fleet_instances::DescribeSpotFleetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
9983 }
9984 }
9985}
9986impl<R>
9987 From<
9988 ::aws_smithy_runtime_api::client::result::SdkError<
9989 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
9990 R,
9991 >,
9992 > for Error
9993where
9994 R: Send + Sync + std::fmt::Debug + 'static,
9995{
9996 fn from(
9997 err: ::aws_smithy_runtime_api::client::result::SdkError<
9998 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError,
9999 R,
10000 >,
10001 ) -> Self {
10002 match err {
10003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10006 source: err.into(),
10007 }),
10008 }
10009 }
10010}
10011impl From<crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError> for Error {
10012 fn from(err: crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError) -> Self {
10013 match err {
10014 crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10015 }
10016 }
10017}
10018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>>
10019 for Error
10020where
10021 R: Send + Sync + std::fmt::Debug + 'static,
10022{
10023 fn from(
10024 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError, R>,
10025 ) -> Self {
10026 match err {
10027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10030 source: err.into(),
10031 }),
10032 }
10033 }
10034}
10035impl From<crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError> for Error {
10036 fn from(err: crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError) -> Self {
10037 match err {
10038 crate::operation::describe_spot_fleet_requests::DescribeSpotFleetRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10039 }
10040 }
10041}
10042impl<R>
10043 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError, R>>
10044 for Error
10045where
10046 R: Send + Sync + std::fmt::Debug + 'static,
10047{
10048 fn from(
10049 err: ::aws_smithy_runtime_api::client::result::SdkError<
10050 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
10051 R,
10052 >,
10053 ) -> Self {
10054 match err {
10055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10058 source: err.into(),
10059 }),
10060 }
10061 }
10062}
10063impl From<crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError> for Error {
10064 fn from(err: crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError) -> Self {
10065 match err {
10066 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError::Unhandled(inner) => Error::Unhandled(inner),
10067 }
10068 }
10069}
10070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>>
10071 for Error
10072where
10073 R: Send + Sync + std::fmt::Debug + 'static,
10074{
10075 fn from(
10076 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError, R>,
10077 ) -> Self {
10078 match err {
10079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10082 source: err.into(),
10083 }),
10084 }
10085 }
10086}
10087impl From<crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError> for Error {
10088 fn from(err: crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError) -> Self {
10089 match err {
10090 crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError::Unhandled(inner) => Error::Unhandled(inner),
10091 }
10092 }
10093}
10094impl<R>
10095 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError, R>>
10096 for Error
10097where
10098 R: Send + Sync + std::fmt::Debug + 'static,
10099{
10100 fn from(
10101 err: ::aws_smithy_runtime_api::client::result::SdkError<
10102 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
10103 R,
10104 >,
10105 ) -> Self {
10106 match err {
10107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10110 source: err.into(),
10111 }),
10112 }
10113 }
10114}
10115impl From<crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError> for Error {
10116 fn from(err: crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError) -> Self {
10117 match err {
10118 crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10119 }
10120 }
10121}
10122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>>
10123 for Error
10124where
10125 R: Send + Sync + std::fmt::Debug + 'static,
10126{
10127 fn from(
10128 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError, R>,
10129 ) -> Self {
10130 match err {
10131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10134 source: err.into(),
10135 }),
10136 }
10137 }
10138}
10139impl From<crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError> for Error {
10140 fn from(err: crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError) -> Self {
10141 match err {
10142 crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
10143 }
10144 }
10145}
10146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>> for Error
10147where
10148 R: Send + Sync + std::fmt::Debug + 'static,
10149{
10150 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnets::DescribeSubnetsError, R>) -> Self {
10151 match err {
10152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10155 source: err.into(),
10156 }),
10157 }
10158 }
10159}
10160impl From<crate::operation::describe_subnets::DescribeSubnetsError> for Error {
10161 fn from(err: crate::operation::describe_subnets::DescribeSubnetsError) -> Self {
10162 match err {
10163 crate::operation::describe_subnets::DescribeSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
10164 }
10165 }
10166}
10167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
10168where
10169 R: Send + Sync + std::fmt::Debug + 'static,
10170{
10171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
10172 match err {
10173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10176 source: err.into(),
10177 }),
10178 }
10179 }
10180}
10181impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
10182 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
10183 match err {
10184 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
10185 }
10186 }
10187}
10188impl<R>
10189 From<
10190 ::aws_smithy_runtime_api::client::result::SdkError<
10191 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10192 R,
10193 >,
10194 > for Error
10195where
10196 R: Send + Sync + std::fmt::Debug + 'static,
10197{
10198 fn from(
10199 err: ::aws_smithy_runtime_api::client::result::SdkError<
10200 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError,
10201 R,
10202 >,
10203 ) -> Self {
10204 match err {
10205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10208 source: err.into(),
10209 }),
10210 }
10211 }
10212}
10213impl From<crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError> for Error {
10214 fn from(err: crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError) -> Self {
10215 match err {
10216 crate::operation::describe_traffic_mirror_filter_rules::DescribeTrafficMirrorFilterRulesError::Unhandled(inner) => {
10217 Error::Unhandled(inner)
10218 }
10219 }
10220 }
10221}
10222impl<R>
10223 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError, R>>
10224 for Error
10225where
10226 R: Send + Sync + std::fmt::Debug + 'static,
10227{
10228 fn from(
10229 err: ::aws_smithy_runtime_api::client::result::SdkError<
10230 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError,
10231 R,
10232 >,
10233 ) -> Self {
10234 match err {
10235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10238 source: err.into(),
10239 }),
10240 }
10241 }
10242}
10243impl From<crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError> for Error {
10244 fn from(err: crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError) -> Self {
10245 match err {
10246 crate::operation::describe_traffic_mirror_filters::DescribeTrafficMirrorFiltersError::Unhandled(inner) => Error::Unhandled(inner),
10247 }
10248 }
10249}
10250impl<R>
10251 From<
10252 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError, R>,
10253 > for Error
10254where
10255 R: Send + Sync + std::fmt::Debug + 'static,
10256{
10257 fn from(
10258 err: ::aws_smithy_runtime_api::client::result::SdkError<
10259 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError,
10260 R,
10261 >,
10262 ) -> Self {
10263 match err {
10264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10267 source: err.into(),
10268 }),
10269 }
10270 }
10271}
10272impl From<crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError> for Error {
10273 fn from(err: crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError) -> Self {
10274 match err {
10275 crate::operation::describe_traffic_mirror_sessions::DescribeTrafficMirrorSessionsError::Unhandled(inner) => Error::Unhandled(inner),
10276 }
10277 }
10278}
10279impl<R>
10280 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError, R>>
10281 for Error
10282where
10283 R: Send + Sync + std::fmt::Debug + 'static,
10284{
10285 fn from(
10286 err: ::aws_smithy_runtime_api::client::result::SdkError<
10287 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError,
10288 R,
10289 >,
10290 ) -> Self {
10291 match err {
10292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10295 source: err.into(),
10296 }),
10297 }
10298 }
10299}
10300impl From<crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError> for Error {
10301 fn from(err: crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError) -> Self {
10302 match err {
10303 crate::operation::describe_traffic_mirror_targets::DescribeTrafficMirrorTargetsError::Unhandled(inner) => Error::Unhandled(inner),
10304 }
10305 }
10306}
10307impl<R>
10308 From<
10309 ::aws_smithy_runtime_api::client::result::SdkError<
10310 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10311 R,
10312 >,
10313 > for Error
10314where
10315 R: Send + Sync + std::fmt::Debug + 'static,
10316{
10317 fn from(
10318 err: ::aws_smithy_runtime_api::client::result::SdkError<
10319 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError,
10320 R,
10321 >,
10322 ) -> Self {
10323 match err {
10324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10327 source: err.into(),
10328 }),
10329 }
10330 }
10331}
10332impl From<crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError> for Error {
10333 fn from(err: crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError) -> Self {
10334 match err {
10335 crate::operation::describe_transit_gateway_attachments::DescribeTransitGatewayAttachmentsError::Unhandled(inner) => {
10336 Error::Unhandled(inner)
10337 }
10338 }
10339 }
10340}
10341impl<R>
10342 From<
10343 ::aws_smithy_runtime_api::client::result::SdkError<
10344 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10345 R,
10346 >,
10347 > for Error
10348where
10349 R: Send + Sync + std::fmt::Debug + 'static,
10350{
10351 fn from(
10352 err: ::aws_smithy_runtime_api::client::result::SdkError<
10353 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError,
10354 R,
10355 >,
10356 ) -> Self {
10357 match err {
10358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10361 source: err.into(),
10362 }),
10363 }
10364 }
10365}
10366impl From<crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError> for Error {
10367 fn from(err: crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError) -> Self {
10368 match err {
10369 crate::operation::describe_transit_gateway_connect_peers::DescribeTransitGatewayConnectPeersError::Unhandled(inner) => {
10370 Error::Unhandled(inner)
10371 }
10372 }
10373 }
10374}
10375impl<R>
10376 From<
10377 ::aws_smithy_runtime_api::client::result::SdkError<
10378 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError,
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_transit_gateway_connects::DescribeTransitGatewayConnectsError,
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_transit_gateway_connects::DescribeTransitGatewayConnectsError> for Error {
10401 fn from(err: crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError) -> Self {
10402 match err {
10403 crate::operation::describe_transit_gateway_connects::DescribeTransitGatewayConnectsError::Unhandled(inner) => Error::Unhandled(inner),
10404 }
10405 }
10406}
10407impl<R>
10408 From<
10409 ::aws_smithy_runtime_api::client::result::SdkError<
10410 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10411 R,
10412 >,
10413 > for Error
10414where
10415 R: Send + Sync + std::fmt::Debug + 'static,
10416{
10417 fn from(
10418 err: ::aws_smithy_runtime_api::client::result::SdkError<
10419 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError,
10420 R,
10421 >,
10422 ) -> Self {
10423 match err {
10424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10427 source: err.into(),
10428 }),
10429 }
10430 }
10431}
10432impl From<crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError> for Error {
10433 fn from(err: crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError) -> Self {
10434 match err {
10435 crate::operation::describe_transit_gateway_multicast_domains::DescribeTransitGatewayMulticastDomainsError::Unhandled(inner) => {
10436 Error::Unhandled(inner)
10437 }
10438 }
10439 }
10440}
10441impl<R>
10442 From<
10443 ::aws_smithy_runtime_api::client::result::SdkError<
10444 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10445 R,
10446 >,
10447 > for Error
10448where
10449 R: Send + Sync + std::fmt::Debug + 'static,
10450{
10451 fn from(
10452 err: ::aws_smithy_runtime_api::client::result::SdkError<
10453 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError,
10454 R,
10455 >,
10456 ) -> Self {
10457 match err {
10458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10461 source: err.into(),
10462 }),
10463 }
10464 }
10465}
10466impl From<crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError> for Error {
10467 fn from(err: crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError) -> Self {
10468 match err {
10469 crate::operation::describe_transit_gateway_peering_attachments::DescribeTransitGatewayPeeringAttachmentsError::Unhandled(inner) => {
10470 Error::Unhandled(inner)
10471 }
10472 }
10473 }
10474}
10475impl<R>
10476 From<
10477 ::aws_smithy_runtime_api::client::result::SdkError<
10478 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10479 R,
10480 >,
10481 > for Error
10482where
10483 R: Send + Sync + std::fmt::Debug + 'static,
10484{
10485 fn from(
10486 err: ::aws_smithy_runtime_api::client::result::SdkError<
10487 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError,
10488 R,
10489 >,
10490 ) -> Self {
10491 match err {
10492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10495 source: err.into(),
10496 }),
10497 }
10498 }
10499}
10500impl From<crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError> for Error {
10501 fn from(err: crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError) -> Self {
10502 match err {
10503 crate::operation::describe_transit_gateway_policy_tables::DescribeTransitGatewayPolicyTablesError::Unhandled(inner) => {
10504 Error::Unhandled(inner)
10505 }
10506 }
10507 }
10508}
10509impl<R>
10510 From<
10511 ::aws_smithy_runtime_api::client::result::SdkError<
10512 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10513 R,
10514 >,
10515 > for Error
10516where
10517 R: Send + Sync + std::fmt::Debug + 'static,
10518{
10519 fn from(
10520 err: ::aws_smithy_runtime_api::client::result::SdkError<
10521 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError,
10522 R,
10523 >,
10524 ) -> Self {
10525 match err {
10526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10529 source: err.into(),
10530 }),
10531 }
10532 }
10533}
10534impl From<crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError> for Error {
10535 fn from(err: crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError) -> Self {
10536 match err {
10537 crate::operation::describe_transit_gateway_route_table_announcements::DescribeTransitGatewayRouteTableAnnouncementsError::Unhandled(
10538 inner,
10539 ) => Error::Unhandled(inner),
10540 }
10541 }
10542}
10543impl<R>
10544 From<
10545 ::aws_smithy_runtime_api::client::result::SdkError<
10546 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10547 R,
10548 >,
10549 > for Error
10550where
10551 R: Send + Sync + std::fmt::Debug + 'static,
10552{
10553 fn from(
10554 err: ::aws_smithy_runtime_api::client::result::SdkError<
10555 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError,
10556 R,
10557 >,
10558 ) -> Self {
10559 match err {
10560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10563 source: err.into(),
10564 }),
10565 }
10566 }
10567}
10568impl From<crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError> for Error {
10569 fn from(err: crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError) -> Self {
10570 match err {
10571 crate::operation::describe_transit_gateway_route_tables::DescribeTransitGatewayRouteTablesError::Unhandled(inner) => {
10572 Error::Unhandled(inner)
10573 }
10574 }
10575 }
10576}
10577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>>
10578 for Error
10579where
10580 R: Send + Sync + std::fmt::Debug + 'static,
10581{
10582 fn from(
10583 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError, R>,
10584 ) -> Self {
10585 match err {
10586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10589 source: err.into(),
10590 }),
10591 }
10592 }
10593}
10594impl From<crate::operation::describe_transit_gateways::DescribeTransitGatewaysError> for Error {
10595 fn from(err: crate::operation::describe_transit_gateways::DescribeTransitGatewaysError) -> Self {
10596 match err {
10597 crate::operation::describe_transit_gateways::DescribeTransitGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
10598 }
10599 }
10600}
10601impl<R>
10602 From<
10603 ::aws_smithy_runtime_api::client::result::SdkError<
10604 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10605 R,
10606 >,
10607 > for Error
10608where
10609 R: Send + Sync + std::fmt::Debug + 'static,
10610{
10611 fn from(
10612 err: ::aws_smithy_runtime_api::client::result::SdkError<
10613 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError,
10614 R,
10615 >,
10616 ) -> Self {
10617 match err {
10618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10621 source: err.into(),
10622 }),
10623 }
10624 }
10625}
10626impl From<crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError> for Error {
10627 fn from(err: crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError) -> Self {
10628 match err {
10629 crate::operation::describe_transit_gateway_vpc_attachments::DescribeTransitGatewayVpcAttachmentsError::Unhandled(inner) => {
10630 Error::Unhandled(inner)
10631 }
10632 }
10633 }
10634}
10635impl<R>
10636 From<
10637 ::aws_smithy_runtime_api::client::result::SdkError<
10638 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10639 R,
10640 >,
10641 > for Error
10642where
10643 R: Send + Sync + std::fmt::Debug + 'static,
10644{
10645 fn from(
10646 err: ::aws_smithy_runtime_api::client::result::SdkError<
10647 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
10648 R,
10649 >,
10650 ) -> Self {
10651 match err {
10652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10655 source: err.into(),
10656 }),
10657 }
10658 }
10659}
10660impl From<crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError> for Error {
10661 fn from(err: crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError) -> Self {
10662 match err {
10663 crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError::Unhandled(inner) => {
10664 Error::Unhandled(inner)
10665 }
10666 }
10667 }
10668}
10669impl<R>
10670 From<
10671 ::aws_smithy_runtime_api::client::result::SdkError<
10672 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10673 R,
10674 >,
10675 > for Error
10676where
10677 R: Send + Sync + std::fmt::Debug + 'static,
10678{
10679 fn from(
10680 err: ::aws_smithy_runtime_api::client::result::SdkError<
10681 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
10682 R,
10683 >,
10684 ) -> Self {
10685 match err {
10686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10689 source: err.into(),
10690 }),
10691 }
10692 }
10693}
10694impl From<crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError> for Error {
10695 fn from(err: crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError) -> Self {
10696 match err {
10697 crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
10698 }
10699 }
10700}
10701impl<R>
10702 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError, R>>
10703 for Error
10704where
10705 R: Send + Sync + std::fmt::Debug + 'static,
10706{
10707 fn from(
10708 err: ::aws_smithy_runtime_api::client::result::SdkError<
10709 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
10710 R,
10711 >,
10712 ) -> Self {
10713 match err {
10714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10717 source: err.into(),
10718 }),
10719 }
10720 }
10721}
10722impl From<crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError> for Error {
10723 fn from(err: crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError) -> Self {
10724 match err {
10725 crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError::Unhandled(inner) => Error::Unhandled(inner),
10726 }
10727 }
10728}
10729impl<R>
10730 From<
10731 ::aws_smithy_runtime_api::client::result::SdkError<
10732 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10733 R,
10734 >,
10735 > for Error
10736where
10737 R: Send + Sync + std::fmt::Debug + 'static,
10738{
10739 fn from(
10740 err: ::aws_smithy_runtime_api::client::result::SdkError<
10741 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10742 R,
10743 >,
10744 ) -> Self {
10745 match err {
10746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10749 source: err.into(),
10750 }),
10751 }
10752 }
10753}
10754impl From<crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError>
10755 for Error
10756{
10757 fn from(
10758 err: crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
10759 ) -> Self {
10760 match err {
10761 crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
10762 }
10763 }
10764}
10765impl<R>
10766 From<
10767 ::aws_smithy_runtime_api::client::result::SdkError<
10768 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10769 R,
10770 >,
10771 > for Error
10772where
10773 R: Send + Sync + std::fmt::Debug + 'static,
10774{
10775 fn from(
10776 err: ::aws_smithy_runtime_api::client::result::SdkError<
10777 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError,
10778 R,
10779 >,
10780 ) -> Self {
10781 match err {
10782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10785 source: err.into(),
10786 }),
10787 }
10788 }
10789}
10790impl From<crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError> for Error {
10791 fn from(err: crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError) -> Self {
10792 match err {
10793 crate::operation::describe_verified_access_instances::DescribeVerifiedAccessInstancesError::Unhandled(inner) => Error::Unhandled(inner),
10794 }
10795 }
10796}
10797impl<R>
10798 From<
10799 ::aws_smithy_runtime_api::client::result::SdkError<
10800 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10801 R,
10802 >,
10803 > for Error
10804where
10805 R: Send + Sync + std::fmt::Debug + 'static,
10806{
10807 fn from(
10808 err: ::aws_smithy_runtime_api::client::result::SdkError<
10809 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError,
10810 R,
10811 >,
10812 ) -> Self {
10813 match err {
10814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10817 source: err.into(),
10818 }),
10819 }
10820 }
10821}
10822impl From<crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError> for Error {
10823 fn from(err: crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError) -> Self {
10824 match err {
10825 crate::operation::describe_verified_access_trust_providers::DescribeVerifiedAccessTrustProvidersError::Unhandled(inner) => {
10826 Error::Unhandled(inner)
10827 }
10828 }
10829 }
10830}
10831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>>
10832 for Error
10833where
10834 R: Send + Sync + std::fmt::Debug + 'static,
10835{
10836 fn from(
10837 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError, R>,
10838 ) -> Self {
10839 match err {
10840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10843 source: err.into(),
10844 }),
10845 }
10846 }
10847}
10848impl From<crate::operation::describe_volume_attribute::DescribeVolumeAttributeError> for Error {
10849 fn from(err: crate::operation::describe_volume_attribute::DescribeVolumeAttributeError) -> Self {
10850 match err {
10851 crate::operation::describe_volume_attribute::DescribeVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10852 }
10853 }
10854}
10855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
10856where
10857 R: Send + Sync + std::fmt::Debug + 'static,
10858{
10859 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
10860 match err {
10861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10864 source: err.into(),
10865 }),
10866 }
10867 }
10868}
10869impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
10870 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
10871 match err {
10872 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
10873 }
10874 }
10875}
10876impl<R>
10877 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError, R>>
10878 for Error
10879where
10880 R: Send + Sync + std::fmt::Debug + 'static,
10881{
10882 fn from(
10883 err: ::aws_smithy_runtime_api::client::result::SdkError<
10884 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError,
10885 R,
10886 >,
10887 ) -> Self {
10888 match err {
10889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10892 source: err.into(),
10893 }),
10894 }
10895 }
10896}
10897impl From<crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError> for Error {
10898 fn from(err: crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError) -> Self {
10899 match err {
10900 crate::operation::describe_volumes_modifications::DescribeVolumesModificationsError::Unhandled(inner) => Error::Unhandled(inner),
10901 }
10902 }
10903}
10904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>> for Error
10905where
10906 R: Send + Sync + std::fmt::Debug + 'static,
10907{
10908 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volume_status::DescribeVolumeStatusError, R>) -> Self {
10909 match err {
10910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10913 source: err.into(),
10914 }),
10915 }
10916 }
10917}
10918impl From<crate::operation::describe_volume_status::DescribeVolumeStatusError> for Error {
10919 fn from(err: crate::operation::describe_volume_status::DescribeVolumeStatusError) -> Self {
10920 match err {
10921 crate::operation::describe_volume_status::DescribeVolumeStatusError::Unhandled(inner) => Error::Unhandled(inner),
10922 }
10923 }
10924}
10925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>> for Error
10926where
10927 R: Send + Sync + std::fmt::Debug + 'static,
10928{
10929 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError, R>) -> Self {
10930 match err {
10931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10934 source: err.into(),
10935 }),
10936 }
10937 }
10938}
10939impl From<crate::operation::describe_vpc_attribute::DescribeVpcAttributeError> for Error {
10940 fn from(err: crate::operation::describe_vpc_attribute::DescribeVpcAttributeError) -> Self {
10941 match err {
10942 crate::operation::describe_vpc_attribute::DescribeVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
10943 }
10944 }
10945}
10946impl<R>
10947 From<
10948 ::aws_smithy_runtime_api::client::result::SdkError<
10949 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
10950 R,
10951 >,
10952 > for Error
10953where
10954 R: Send + Sync + std::fmt::Debug + 'static,
10955{
10956 fn from(
10957 err: ::aws_smithy_runtime_api::client::result::SdkError<
10958 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError,
10959 R,
10960 >,
10961 ) -> Self {
10962 match err {
10963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10966 source: err.into(),
10967 }),
10968 }
10969 }
10970}
10971impl From<crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError> for Error {
10972 fn from(err: crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError) -> Self {
10973 match err {
10974 crate::operation::describe_vpc_block_public_access_exclusions::DescribeVpcBlockPublicAccessExclusionsError::Unhandled(inner) => {
10975 Error::Unhandled(inner)
10976 }
10977 }
10978 }
10979}
10980impl<R>
10981 From<
10982 ::aws_smithy_runtime_api::client::result::SdkError<
10983 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
10984 R,
10985 >,
10986 > for Error
10987where
10988 R: Send + Sync + std::fmt::Debug + 'static,
10989{
10990 fn from(
10991 err: ::aws_smithy_runtime_api::client::result::SdkError<
10992 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError,
10993 R,
10994 >,
10995 ) -> Self {
10996 match err {
10997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11000 source: err.into(),
11001 }),
11002 }
11003 }
11004}
11005impl From<crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError> for Error {
11006 fn from(err: crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError) -> Self {
11007 match err {
11008 crate::operation::describe_vpc_block_public_access_options::DescribeVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
11009 Error::Unhandled(inner)
11010 }
11011 }
11012 }
11013}
11014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>>
11015 for Error
11016where
11017 R: Send + Sync + std::fmt::Debug + 'static,
11018{
11019 fn from(
11020 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError, R>,
11021 ) -> Self {
11022 match err {
11023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11026 source: err.into(),
11027 }),
11028 }
11029 }
11030}
11031impl From<crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError> for Error {
11032 fn from(err: crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError) -> Self {
11033 match err {
11034 crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
11035 }
11036 }
11037}
11038impl<R>
11039 From<
11040 ::aws_smithy_runtime_api::client::result::SdkError<
11041 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11042 R,
11043 >,
11044 > for Error
11045where
11046 R: Send + Sync + std::fmt::Debug + 'static,
11047{
11048 fn from(
11049 err: ::aws_smithy_runtime_api::client::result::SdkError<
11050 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError,
11051 R,
11052 >,
11053 ) -> Self {
11054 match err {
11055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11058 source: err.into(),
11059 }),
11060 }
11061 }
11062}
11063impl From<crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError> for Error {
11064 fn from(err: crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError) -> Self {
11065 match err {
11066 crate::operation::describe_vpc_classic_link_dns_support::DescribeVpcClassicLinkDnsSupportError::Unhandled(inner) => {
11067 Error::Unhandled(inner)
11068 }
11069 }
11070 }
11071}
11072impl<R>
11073 From<
11074 ::aws_smithy_runtime_api::client::result::SdkError<
11075 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11076 R,
11077 >,
11078 > for Error
11079where
11080 R: Send + Sync + std::fmt::Debug + 'static,
11081{
11082 fn from(
11083 err: ::aws_smithy_runtime_api::client::result::SdkError<
11084 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError,
11085 R,
11086 >,
11087 ) -> Self {
11088 match err {
11089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11092 source: err.into(),
11093 }),
11094 }
11095 }
11096}
11097impl From<crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError> for Error {
11098 fn from(err: crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError) -> Self {
11099 match err {
11100 crate::operation::describe_vpc_endpoint_associations::DescribeVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
11101 }
11102 }
11103}
11104impl<R>
11105 From<
11106 ::aws_smithy_runtime_api::client::result::SdkError<
11107 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11108 R,
11109 >,
11110 > for Error
11111where
11112 R: Send + Sync + std::fmt::Debug + 'static,
11113{
11114 fn from(
11115 err: ::aws_smithy_runtime_api::client::result::SdkError<
11116 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError,
11117 R,
11118 >,
11119 ) -> Self {
11120 match err {
11121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11124 source: err.into(),
11125 }),
11126 }
11127 }
11128}
11129impl From<crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError> for Error {
11130 fn from(err: crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError) -> Self {
11131 match err {
11132 crate::operation::describe_vpc_endpoint_connection_notifications::DescribeVpcEndpointConnectionNotificationsError::Unhandled(inner) => {
11133 Error::Unhandled(inner)
11134 }
11135 }
11136 }
11137}
11138impl<R>
11139 From<
11140 ::aws_smithy_runtime_api::client::result::SdkError<
11141 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11142 R,
11143 >,
11144 > for Error
11145where
11146 R: Send + Sync + std::fmt::Debug + 'static,
11147{
11148 fn from(
11149 err: ::aws_smithy_runtime_api::client::result::SdkError<
11150 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError,
11151 R,
11152 >,
11153 ) -> Self {
11154 match err {
11155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11158 source: err.into(),
11159 }),
11160 }
11161 }
11162}
11163impl From<crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError> for Error {
11164 fn from(err: crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError) -> Self {
11165 match err {
11166 crate::operation::describe_vpc_endpoint_connections::DescribeVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11167 }
11168 }
11169}
11170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>> for Error
11171where
11172 R: Send + Sync + std::fmt::Debug + 'static,
11173{
11174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError, R>) -> Self {
11175 match err {
11176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11179 source: err.into(),
11180 }),
11181 }
11182 }
11183}
11184impl From<crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError> for Error {
11185 fn from(err: crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError) -> Self {
11186 match err {
11187 crate::operation::describe_vpc_endpoints::DescribeVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
11188 }
11189 }
11190}
11191impl<R>
11192 From<
11193 ::aws_smithy_runtime_api::client::result::SdkError<
11194 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11195 R,
11196 >,
11197 > for Error
11198where
11199 R: Send + Sync + std::fmt::Debug + 'static,
11200{
11201 fn from(
11202 err: ::aws_smithy_runtime_api::client::result::SdkError<
11203 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError,
11204 R,
11205 >,
11206 ) -> Self {
11207 match err {
11208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11211 source: err.into(),
11212 }),
11213 }
11214 }
11215}
11216impl From<crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError> for Error {
11217 fn from(err: crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError) -> Self {
11218 match err {
11219 crate::operation::describe_vpc_endpoint_service_configurations::DescribeVpcEndpointServiceConfigurationsError::Unhandled(inner) => {
11220 Error::Unhandled(inner)
11221 }
11222 }
11223 }
11224}
11225impl<R>
11226 From<
11227 ::aws_smithy_runtime_api::client::result::SdkError<
11228 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11229 R,
11230 >,
11231 > for Error
11232where
11233 R: Send + Sync + std::fmt::Debug + 'static,
11234{
11235 fn from(
11236 err: ::aws_smithy_runtime_api::client::result::SdkError<
11237 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError,
11238 R,
11239 >,
11240 ) -> Self {
11241 match err {
11242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11245 source: err.into(),
11246 }),
11247 }
11248 }
11249}
11250impl From<crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError> for Error {
11251 fn from(err: crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError) -> Self {
11252 match err {
11253 crate::operation::describe_vpc_endpoint_service_permissions::DescribeVpcEndpointServicePermissionsError::Unhandled(inner) => {
11254 Error::Unhandled(inner)
11255 }
11256 }
11257 }
11258}
11259impl<R>
11260 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError, R>>
11261 for Error
11262where
11263 R: Send + Sync + std::fmt::Debug + 'static,
11264{
11265 fn from(
11266 err: ::aws_smithy_runtime_api::client::result::SdkError<
11267 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError,
11268 R,
11269 >,
11270 ) -> Self {
11271 match err {
11272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11275 source: err.into(),
11276 }),
11277 }
11278 }
11279}
11280impl From<crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError> for Error {
11281 fn from(err: crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError) -> Self {
11282 match err {
11283 crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesError::Unhandled(inner) => Error::Unhandled(inner),
11284 }
11285 }
11286}
11287impl<R>
11288 From<
11289 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError, R>,
11290 > for Error
11291where
11292 R: Send + Sync + std::fmt::Debug + 'static,
11293{
11294 fn from(
11295 err: ::aws_smithy_runtime_api::client::result::SdkError<
11296 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError,
11297 R,
11298 >,
11299 ) -> Self {
11300 match err {
11301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11304 source: err.into(),
11305 }),
11306 }
11307 }
11308}
11309impl From<crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError> for Error {
11310 fn from(err: crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError) -> Self {
11311 match err {
11312 crate::operation::describe_vpc_peering_connections::DescribeVpcPeeringConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11313 }
11314 }
11315}
11316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>> for Error
11317where
11318 R: Send + Sync + std::fmt::Debug + 'static,
11319{
11320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpcs::DescribeVpcsError, R>) -> Self {
11321 match err {
11322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11325 source: err.into(),
11326 }),
11327 }
11328 }
11329}
11330impl From<crate::operation::describe_vpcs::DescribeVpcsError> for Error {
11331 fn from(err: crate::operation::describe_vpcs::DescribeVpcsError) -> Self {
11332 match err {
11333 crate::operation::describe_vpcs::DescribeVpcsError::Unhandled(inner) => Error::Unhandled(inner),
11334 }
11335 }
11336}
11337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>> for Error
11338where
11339 R: Send + Sync + std::fmt::Debug + 'static,
11340{
11341 fn from(
11342 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError, R>,
11343 ) -> Self {
11344 match err {
11345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11348 source: err.into(),
11349 }),
11350 }
11351 }
11352}
11353impl From<crate::operation::describe_vpn_connections::DescribeVpnConnectionsError> for Error {
11354 fn from(err: crate::operation::describe_vpn_connections::DescribeVpnConnectionsError) -> Self {
11355 match err {
11356 crate::operation::describe_vpn_connections::DescribeVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
11357 }
11358 }
11359}
11360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>> for Error
11361where
11362 R: Send + Sync + std::fmt::Debug + 'static,
11363{
11364 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError, R>) -> Self {
11365 match err {
11366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11369 source: err.into(),
11370 }),
11371 }
11372 }
11373}
11374impl From<crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError> for Error {
11375 fn from(err: crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError) -> Self {
11376 match err {
11377 crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
11378 }
11379 }
11380}
11381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>> for Error
11382where
11383 R: Send + Sync + std::fmt::Debug + 'static,
11384{
11385 fn from(
11386 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError, R>,
11387 ) -> Self {
11388 match err {
11389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11392 source: err.into(),
11393 }),
11394 }
11395 }
11396}
11397impl From<crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError> for Error {
11398 fn from(err: crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError) -> Self {
11399 match err {
11400 crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError::Unhandled(inner) => Error::Unhandled(inner),
11401 }
11402 }
11403}
11404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>> for Error
11405where
11406 R: Send + Sync + std::fmt::Debug + 'static,
11407{
11408 fn from(
11409 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_internet_gateway::DetachInternetGatewayError, R>,
11410 ) -> Self {
11411 match err {
11412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11415 source: err.into(),
11416 }),
11417 }
11418 }
11419}
11420impl From<crate::operation::detach_internet_gateway::DetachInternetGatewayError> for Error {
11421 fn from(err: crate::operation::detach_internet_gateway::DetachInternetGatewayError) -> Self {
11422 match err {
11423 crate::operation::detach_internet_gateway::DetachInternetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11424 }
11425 }
11426}
11427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>> for Error
11428where
11429 R: Send + Sync + std::fmt::Debug + 'static,
11430{
11431 fn from(
11432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_network_interface::DetachNetworkInterfaceError, R>,
11433 ) -> Self {
11434 match err {
11435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11438 source: err.into(),
11439 }),
11440 }
11441 }
11442}
11443impl From<crate::operation::detach_network_interface::DetachNetworkInterfaceError> for Error {
11444 fn from(err: crate::operation::detach_network_interface::DetachNetworkInterfaceError) -> Self {
11445 match err {
11446 crate::operation::detach_network_interface::DetachNetworkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
11447 }
11448 }
11449}
11450impl<R>
11451 From<
11452 ::aws_smithy_runtime_api::client::result::SdkError<
11453 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11454 R,
11455 >,
11456 > for Error
11457where
11458 R: Send + Sync + std::fmt::Debug + 'static,
11459{
11460 fn from(
11461 err: ::aws_smithy_runtime_api::client::result::SdkError<
11462 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError,
11463 R,
11464 >,
11465 ) -> Self {
11466 match err {
11467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11470 source: err.into(),
11471 }),
11472 }
11473 }
11474}
11475impl From<crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError> for Error {
11476 fn from(err: crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError) -> Self {
11477 match err {
11478 crate::operation::detach_verified_access_trust_provider::DetachVerifiedAccessTrustProviderError::Unhandled(inner) => {
11479 Error::Unhandled(inner)
11480 }
11481 }
11482 }
11483}
11484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>> for Error
11485where
11486 R: Send + Sync + std::fmt::Debug + 'static,
11487{
11488 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_volume::DetachVolumeError, R>) -> Self {
11489 match err {
11490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11493 source: err.into(),
11494 }),
11495 }
11496 }
11497}
11498impl From<crate::operation::detach_volume::DetachVolumeError> for Error {
11499 fn from(err: crate::operation::detach_volume::DetachVolumeError) -> Self {
11500 match err {
11501 crate::operation::detach_volume::DetachVolumeError::Unhandled(inner) => Error::Unhandled(inner),
11502 }
11503 }
11504}
11505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>> for Error
11506where
11507 R: Send + Sync + std::fmt::Debug + 'static,
11508{
11509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_vpn_gateway::DetachVpnGatewayError, R>) -> Self {
11510 match err {
11511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11514 source: err.into(),
11515 }),
11516 }
11517 }
11518}
11519impl From<crate::operation::detach_vpn_gateway::DetachVpnGatewayError> for Error {
11520 fn from(err: crate::operation::detach_vpn_gateway::DetachVpnGatewayError) -> Self {
11521 match err {
11522 crate::operation::detach_vpn_gateway::DetachVpnGatewayError::Unhandled(inner) => Error::Unhandled(inner),
11523 }
11524 }
11525}
11526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>> for Error
11527where
11528 R: Send + Sync + std::fmt::Debug + 'static,
11529{
11530 fn from(
11531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_address_transfer::DisableAddressTransferError, R>,
11532 ) -> Self {
11533 match err {
11534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11537 source: err.into(),
11538 }),
11539 }
11540 }
11541}
11542impl From<crate::operation::disable_address_transfer::DisableAddressTransferError> for Error {
11543 fn from(err: crate::operation::disable_address_transfer::DisableAddressTransferError) -> Self {
11544 match err {
11545 crate::operation::disable_address_transfer::DisableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
11546 }
11547 }
11548}
11549impl<R>
11550 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError, R>>
11551 for Error
11552where
11553 R: Send + Sync + std::fmt::Debug + 'static,
11554{
11555 fn from(
11556 err: ::aws_smithy_runtime_api::client::result::SdkError<
11557 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError,
11558 R,
11559 >,
11560 ) -> Self {
11561 match err {
11562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11565 source: err.into(),
11566 }),
11567 }
11568 }
11569}
11570impl From<crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError> for Error {
11571 fn from(err: crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError) -> Self {
11572 match err {
11573 crate::operation::disable_allowed_images_settings::DisableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
11574 }
11575 }
11576}
11577impl<R>
11578 From<
11579 ::aws_smithy_runtime_api::client::result::SdkError<
11580 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11581 R,
11582 >,
11583 > for Error
11584where
11585 R: Send + Sync + std::fmt::Debug + 'static,
11586{
11587 fn from(
11588 err: ::aws_smithy_runtime_api::client::result::SdkError<
11589 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError,
11590 R,
11591 >,
11592 ) -> Self {
11593 match err {
11594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11597 source: err.into(),
11598 }),
11599 }
11600 }
11601}
11602impl From<crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError> for Error {
11603 fn from(err: crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
11604 match err {
11605 crate::operation::disable_aws_network_performance_metric_subscription::DisableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
11606 inner,
11607 ) => Error::Unhandled(inner),
11608 }
11609 }
11610}
11611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>> for Error
11612where
11613 R: Send + Sync + std::fmt::Debug + 'static,
11614{
11615 fn from(
11616 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_capacity_manager::DisableCapacityManagerError, R>,
11617 ) -> Self {
11618 match err {
11619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11622 source: err.into(),
11623 }),
11624 }
11625 }
11626}
11627impl From<crate::operation::disable_capacity_manager::DisableCapacityManagerError> for Error {
11628 fn from(err: crate::operation::disable_capacity_manager::DisableCapacityManagerError) -> Self {
11629 match err {
11630 crate::operation::disable_capacity_manager::DisableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
11631 }
11632 }
11633}
11634impl<R>
11635 From<
11636 ::aws_smithy_runtime_api::client::result::SdkError<
11637 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11638 R,
11639 >,
11640 > for Error
11641where
11642 R: Send + Sync + std::fmt::Debug + 'static,
11643{
11644 fn from(
11645 err: ::aws_smithy_runtime_api::client::result::SdkError<
11646 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError,
11647 R,
11648 >,
11649 ) -> Self {
11650 match err {
11651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11654 source: err.into(),
11655 }),
11656 }
11657 }
11658}
11659impl From<crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError> for Error {
11660 fn from(err: crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError) -> Self {
11661 match err {
11662 crate::operation::disable_ebs_encryption_by_default::DisableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
11663 }
11664 }
11665}
11666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>> for Error
11667where
11668 R: Send + Sync + std::fmt::Debug + 'static,
11669{
11670 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_launch::DisableFastLaunchError, R>) -> Self {
11671 match err {
11672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11675 source: err.into(),
11676 }),
11677 }
11678 }
11679}
11680impl From<crate::operation::disable_fast_launch::DisableFastLaunchError> for Error {
11681 fn from(err: crate::operation::disable_fast_launch::DisableFastLaunchError) -> Self {
11682 match err {
11683 crate::operation::disable_fast_launch::DisableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
11684 }
11685 }
11686}
11687impl<R>
11688 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError, R>>
11689 for Error
11690where
11691 R: Send + Sync + std::fmt::Debug + 'static,
11692{
11693 fn from(
11694 err: ::aws_smithy_runtime_api::client::result::SdkError<
11695 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
11696 R,
11697 >,
11698 ) -> Self {
11699 match err {
11700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11703 source: err.into(),
11704 }),
11705 }
11706 }
11707}
11708impl From<crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError> for Error {
11709 fn from(err: crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError) -> Self {
11710 match err {
11711 crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
11712 }
11713 }
11714}
11715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>> for Error
11716where
11717 R: Send + Sync + std::fmt::Debug + 'static,
11718{
11719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image::DisableImageError, R>) -> Self {
11720 match err {
11721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11724 source: err.into(),
11725 }),
11726 }
11727 }
11728}
11729impl From<crate::operation::disable_image::DisableImageError> for Error {
11730 fn from(err: crate::operation::disable_image::DisableImageError) -> Self {
11731 match err {
11732 crate::operation::disable_image::DisableImageError::Unhandled(inner) => Error::Unhandled(inner),
11733 }
11734 }
11735}
11736impl<R>
11737 From<
11738 ::aws_smithy_runtime_api::client::result::SdkError<
11739 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
11740 R,
11741 >,
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::disable_image_block_public_access::DisableImageBlockPublicAccessError,
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::disable_image_block_public_access::DisableImageBlockPublicAccessError> for Error {
11762 fn from(err: crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError) -> Self {
11763 match err {
11764 crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
11765 }
11766 }
11767}
11768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>>
11769 for Error
11770where
11771 R: Send + Sync + std::fmt::Debug + 'static,
11772{
11773 fn from(
11774 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_image_deprecation::DisableImageDeprecationError, R>,
11775 ) -> Self {
11776 match err {
11777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11780 source: err.into(),
11781 }),
11782 }
11783 }
11784}
11785impl From<crate::operation::disable_image_deprecation::DisableImageDeprecationError> for Error {
11786 fn from(err: crate::operation::disable_image_deprecation::DisableImageDeprecationError) -> Self {
11787 match err {
11788 crate::operation::disable_image_deprecation::DisableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
11789 }
11790 }
11791}
11792impl<R>
11793 From<
11794 ::aws_smithy_runtime_api::client::result::SdkError<
11795 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11796 R,
11797 >,
11798 > for Error
11799where
11800 R: Send + Sync + std::fmt::Debug + 'static,
11801{
11802 fn from(
11803 err: ::aws_smithy_runtime_api::client::result::SdkError<
11804 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
11805 R,
11806 >,
11807 ) -> Self {
11808 match err {
11809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11812 source: err.into(),
11813 }),
11814 }
11815 }
11816}
11817impl From<crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError> for Error {
11818 fn from(err: crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError) -> Self {
11819 match err {
11820 crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError::Unhandled(inner) => {
11821 Error::Unhandled(inner)
11822 }
11823 }
11824 }
11825}
11826impl<R>
11827 From<
11828 ::aws_smithy_runtime_api::client::result::SdkError<
11829 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
11830 R,
11831 >,
11832 > for Error
11833where
11834 R: Send + Sync + std::fmt::Debug + 'static,
11835{
11836 fn from(
11837 err: ::aws_smithy_runtime_api::client::result::SdkError<
11838 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
11839 R,
11840 >,
11841 ) -> Self {
11842 match err {
11843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11846 source: err.into(),
11847 }),
11848 }
11849 }
11850}
11851impl From<crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError> for Error {
11852 fn from(err: crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError) -> Self {
11853 match err {
11854 crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError::Unhandled(inner) => {
11855 Error::Unhandled(inner)
11856 }
11857 }
11858 }
11859}
11860impl<R>
11861 From<
11862 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError, R>,
11863 > for Error
11864where
11865 R: Send + Sync + std::fmt::Debug + 'static,
11866{
11867 fn from(
11868 err: ::aws_smithy_runtime_api::client::result::SdkError<
11869 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError,
11870 R,
11871 >,
11872 ) -> Self {
11873 match err {
11874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11877 source: err.into(),
11878 }),
11879 }
11880 }
11881}
11882impl From<crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError> for Error {
11883 fn from(err: crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError) -> Self {
11884 match err {
11885 crate::operation::disable_route_server_propagation::DisableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
11886 }
11887 }
11888}
11889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>>
11890 for Error
11891where
11892 R: Send + Sync + std::fmt::Debug + 'static,
11893{
11894 fn from(
11895 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError, R>,
11896 ) -> Self {
11897 match err {
11898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11901 source: err.into(),
11902 }),
11903 }
11904 }
11905}
11906impl From<crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError> for Error {
11907 fn from(err: crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError) -> Self {
11908 match err {
11909 crate::operation::disable_serial_console_access::DisableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
11910 }
11911 }
11912}
11913impl<R>
11914 From<
11915 ::aws_smithy_runtime_api::client::result::SdkError<
11916 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
11917 R,
11918 >,
11919 > for Error
11920where
11921 R: Send + Sync + std::fmt::Debug + 'static,
11922{
11923 fn from(
11924 err: ::aws_smithy_runtime_api::client::result::SdkError<
11925 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError,
11926 R,
11927 >,
11928 ) -> Self {
11929 match err {
11930 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11931 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11932 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11933 source: err.into(),
11934 }),
11935 }
11936 }
11937}
11938impl From<crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError> for Error {
11939 fn from(err: crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError) -> Self {
11940 match err {
11941 crate::operation::disable_snapshot_block_public_access::DisableSnapshotBlockPublicAccessError::Unhandled(inner) => {
11942 Error::Unhandled(inner)
11943 }
11944 }
11945 }
11946}
11947impl<R>
11948 From<
11949 ::aws_smithy_runtime_api::client::result::SdkError<
11950 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
11951 R,
11952 >,
11953 > for Error
11954where
11955 R: Send + Sync + std::fmt::Debug + 'static,
11956{
11957 fn from(
11958 err: ::aws_smithy_runtime_api::client::result::SdkError<
11959 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError,
11960 R,
11961 >,
11962 ) -> Self {
11963 match err {
11964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11967 source: err.into(),
11968 }),
11969 }
11970 }
11971}
11972impl From<crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError> for Error {
11973 fn from(err: crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError) -> Self {
11974 match err {
11975 crate::operation::disable_transit_gateway_route_table_propagation::DisableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
11976 Error::Unhandled(inner)
11977 }
11978 }
11979 }
11980}
11981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>>
11982 for Error
11983where
11984 R: Send + Sync + std::fmt::Debug + 'static,
11985{
11986 fn from(
11987 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError, R>,
11988 ) -> Self {
11989 match err {
11990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
11991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
11992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
11993 source: err.into(),
11994 }),
11995 }
11996 }
11997}
11998impl From<crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError> for Error {
11999 fn from(err: crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError) -> Self {
12000 match err {
12001 crate::operation::disable_vgw_route_propagation::DisableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
12002 }
12003 }
12004}
12005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>> for Error
12006where
12007 R: Send + Sync + std::fmt::Debug + 'static,
12008{
12009 fn from(
12010 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError, R>,
12011 ) -> Self {
12012 match err {
12013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12016 source: err.into(),
12017 }),
12018 }
12019 }
12020}
12021impl From<crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError> for Error {
12022 fn from(err: crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError) -> Self {
12023 match err {
12024 crate::operation::disable_vpc_classic_link::DisableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
12025 }
12026 }
12027}
12028impl<R>
12029 From<
12030 ::aws_smithy_runtime_api::client::result::SdkError<
12031 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12032 R,
12033 >,
12034 > for Error
12035where
12036 R: Send + Sync + std::fmt::Debug + 'static,
12037{
12038 fn from(
12039 err: ::aws_smithy_runtime_api::client::result::SdkError<
12040 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError,
12041 R,
12042 >,
12043 ) -> Self {
12044 match err {
12045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12048 source: err.into(),
12049 }),
12050 }
12051 }
12052}
12053impl From<crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError> for Error {
12054 fn from(err: crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError) -> Self {
12055 match err {
12056 crate::operation::disable_vpc_classic_link_dns_support::DisableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
12057 }
12058 }
12059}
12060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>> for Error
12061where
12062 R: Send + Sync + std::fmt::Debug + 'static,
12063{
12064 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_address::DisassociateAddressError, R>) -> Self {
12065 match err {
12066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12069 source: err.into(),
12070 }),
12071 }
12072 }
12073}
12074impl From<crate::operation::disassociate_address::DisassociateAddressError> for Error {
12075 fn from(err: crate::operation::disassociate_address::DisassociateAddressError) -> Self {
12076 match err {
12077 crate::operation::disassociate_address::DisassociateAddressError::Unhandled(inner) => Error::Unhandled(inner),
12078 }
12079 }
12080}
12081impl<R>
12082 From<
12083 ::aws_smithy_runtime_api::client::result::SdkError<
12084 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12085 R,
12086 >,
12087 > for Error
12088where
12089 R: Send + Sync + std::fmt::Debug + 'static,
12090{
12091 fn from(
12092 err: ::aws_smithy_runtime_api::client::result::SdkError<
12093 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError,
12094 R,
12095 >,
12096 ) -> Self {
12097 match err {
12098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12101 source: err.into(),
12102 }),
12103 }
12104 }
12105}
12106impl From<crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError> for Error {
12107 fn from(err: crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError) -> Self {
12108 match err {
12109 crate::operation::disassociate_capacity_reservation_billing_owner::DisassociateCapacityReservationBillingOwnerError::Unhandled(inner) => {
12110 Error::Unhandled(inner)
12111 }
12112 }
12113 }
12114}
12115impl<R>
12116 From<
12117 ::aws_smithy_runtime_api::client::result::SdkError<
12118 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12119 R,
12120 >,
12121 > for Error
12122where
12123 R: Send + Sync + std::fmt::Debug + 'static,
12124{
12125 fn from(
12126 err: ::aws_smithy_runtime_api::client::result::SdkError<
12127 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError,
12128 R,
12129 >,
12130 ) -> Self {
12131 match err {
12132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12135 source: err.into(),
12136 }),
12137 }
12138 }
12139}
12140impl From<crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError> for Error {
12141 fn from(err: crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError) -> Self {
12142 match err {
12143 crate::operation::disassociate_client_vpn_target_network::DisassociateClientVpnTargetNetworkError::Unhandled(inner) => {
12144 Error::Unhandled(inner)
12145 }
12146 }
12147 }
12148}
12149impl<R>
12150 From<
12151 ::aws_smithy_runtime_api::client::result::SdkError<
12152 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12153 R,
12154 >,
12155 > for Error
12156where
12157 R: Send + Sync + std::fmt::Debug + 'static,
12158{
12159 fn from(
12160 err: ::aws_smithy_runtime_api::client::result::SdkError<
12161 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError,
12162 R,
12163 >,
12164 ) -> Self {
12165 match err {
12166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12169 source: err.into(),
12170 }),
12171 }
12172 }
12173}
12174impl From<crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError> for Error {
12175 fn from(err: crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError) -> Self {
12176 match err {
12177 crate::operation::disassociate_enclave_certificate_iam_role::DisassociateEnclaveCertificateIamRoleError::Unhandled(inner) => {
12178 Error::Unhandled(inner)
12179 }
12180 }
12181 }
12182}
12183impl<R>
12184 From<
12185 ::aws_smithy_runtime_api::client::result::SdkError<
12186 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12187 R,
12188 >,
12189 > for Error
12190where
12191 R: Send + Sync + std::fmt::Debug + 'static,
12192{
12193 fn from(
12194 err: ::aws_smithy_runtime_api::client::result::SdkError<
12195 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError,
12196 R,
12197 >,
12198 ) -> Self {
12199 match err {
12200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12203 source: err.into(),
12204 }),
12205 }
12206 }
12207}
12208impl From<crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError> for Error {
12209 fn from(err: crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError) -> Self {
12210 match err {
12211 crate::operation::disassociate_iam_instance_profile::DisassociateIamInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
12212 }
12213 }
12214}
12215impl<R>
12216 From<
12217 ::aws_smithy_runtime_api::client::result::SdkError<
12218 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12219 R,
12220 >,
12221 > for Error
12222where
12223 R: Send + Sync + std::fmt::Debug + 'static,
12224{
12225 fn from(
12226 err: ::aws_smithy_runtime_api::client::result::SdkError<
12227 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError,
12228 R,
12229 >,
12230 ) -> Self {
12231 match err {
12232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12235 source: err.into(),
12236 }),
12237 }
12238 }
12239}
12240impl From<crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError> for Error {
12241 fn from(err: crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError) -> Self {
12242 match err {
12243 crate::operation::disassociate_instance_event_window::DisassociateInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
12244 }
12245 }
12246}
12247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>> for Error
12248where
12249 R: Send + Sync + std::fmt::Debug + 'static,
12250{
12251 fn from(
12252 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError, R>,
12253 ) -> Self {
12254 match err {
12255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12258 source: err.into(),
12259 }),
12260 }
12261 }
12262}
12263impl From<crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError> for Error {
12264 fn from(err: crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError) -> Self {
12265 match err {
12266 crate::operation::disassociate_ipam_byoasn::DisassociateIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
12267 }
12268 }
12269}
12270impl<R>
12271 From<
12272 ::aws_smithy_runtime_api::client::result::SdkError<
12273 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12274 R,
12275 >,
12276 > for Error
12277where
12278 R: Send + Sync + std::fmt::Debug + 'static,
12279{
12280 fn from(
12281 err: ::aws_smithy_runtime_api::client::result::SdkError<
12282 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError,
12283 R,
12284 >,
12285 ) -> Self {
12286 match err {
12287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12290 source: err.into(),
12291 }),
12292 }
12293 }
12294}
12295impl From<crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError> for Error {
12296 fn from(err: crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError) -> Self {
12297 match err {
12298 crate::operation::disassociate_ipam_resource_discovery::DisassociateIpamResourceDiscoveryError::Unhandled(inner) => {
12299 Error::Unhandled(inner)
12300 }
12301 }
12302 }
12303}
12304impl<R>
12305 From<
12306 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError, R>,
12307 > for Error
12308where
12309 R: Send + Sync + std::fmt::Debug + 'static,
12310{
12311 fn from(
12312 err: ::aws_smithy_runtime_api::client::result::SdkError<
12313 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError,
12314 R,
12315 >,
12316 ) -> Self {
12317 match err {
12318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12321 source: err.into(),
12322 }),
12323 }
12324 }
12325}
12326impl From<crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError> for Error {
12327 fn from(err: crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError) -> Self {
12328 match err {
12329 crate::operation::disassociate_nat_gateway_address::DisassociateNatGatewayAddressError::Unhandled(inner) => Error::Unhandled(inner),
12330 }
12331 }
12332}
12333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>>
12334 for Error
12335where
12336 R: Send + Sync + std::fmt::Debug + 'static,
12337{
12338 fn from(
12339 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_server::DisassociateRouteServerError, R>,
12340 ) -> Self {
12341 match err {
12342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12345 source: err.into(),
12346 }),
12347 }
12348 }
12349}
12350impl From<crate::operation::disassociate_route_server::DisassociateRouteServerError> for Error {
12351 fn from(err: crate::operation::disassociate_route_server::DisassociateRouteServerError) -> Self {
12352 match err {
12353 crate::operation::disassociate_route_server::DisassociateRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
12354 }
12355 }
12356}
12357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>> for Error
12358where
12359 R: Send + Sync + std::fmt::Debug + 'static,
12360{
12361 fn from(
12362 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_route_table::DisassociateRouteTableError, R>,
12363 ) -> Self {
12364 match err {
12365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12368 source: err.into(),
12369 }),
12370 }
12371 }
12372}
12373impl From<crate::operation::disassociate_route_table::DisassociateRouteTableError> for Error {
12374 fn from(err: crate::operation::disassociate_route_table::DisassociateRouteTableError) -> Self {
12375 match err {
12376 crate::operation::disassociate_route_table::DisassociateRouteTableError::Unhandled(inner) => Error::Unhandled(inner),
12377 }
12378 }
12379}
12380impl<R>
12381 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError, R>>
12382 for Error
12383where
12384 R: Send + Sync + std::fmt::Debug + 'static,
12385{
12386 fn from(
12387 err: ::aws_smithy_runtime_api::client::result::SdkError<
12388 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError,
12389 R,
12390 >,
12391 ) -> Self {
12392 match err {
12393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12396 source: err.into(),
12397 }),
12398 }
12399 }
12400}
12401impl From<crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError> for Error {
12402 fn from(err: crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError) -> Self {
12403 match err {
12404 crate::operation::disassociate_security_group_vpc::DisassociateSecurityGroupVpcError::Unhandled(inner) => Error::Unhandled(inner),
12405 }
12406 }
12407}
12408impl<R>
12409 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError, R>>
12410 for Error
12411where
12412 R: Send + Sync + std::fmt::Debug + 'static,
12413{
12414 fn from(
12415 err: ::aws_smithy_runtime_api::client::result::SdkError<
12416 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError,
12417 R,
12418 >,
12419 ) -> Self {
12420 match err {
12421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12424 source: err.into(),
12425 }),
12426 }
12427 }
12428}
12429impl From<crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError> for Error {
12430 fn from(err: crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError) -> Self {
12431 match err {
12432 crate::operation::disassociate_subnet_cidr_block::DisassociateSubnetCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12433 }
12434 }
12435}
12436impl<R>
12437 From<
12438 ::aws_smithy_runtime_api::client::result::SdkError<
12439 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12440 R,
12441 >,
12442 > for Error
12443where
12444 R: Send + Sync + std::fmt::Debug + 'static,
12445{
12446 fn from(
12447 err: ::aws_smithy_runtime_api::client::result::SdkError<
12448 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError,
12449 R,
12450 >,
12451 ) -> Self {
12452 match err {
12453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12456 source: err.into(),
12457 }),
12458 }
12459 }
12460}
12461impl From<crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError> for Error {
12462 fn from(err: crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError) -> Self {
12463 match err {
12464 crate::operation::disassociate_transit_gateway_multicast_domain::DisassociateTransitGatewayMulticastDomainError::Unhandled(inner) => {
12465 Error::Unhandled(inner)
12466 }
12467 }
12468 }
12469}
12470impl<R>
12471 From<
12472 ::aws_smithy_runtime_api::client::result::SdkError<
12473 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12474 R,
12475 >,
12476 > for Error
12477where
12478 R: Send + Sync + std::fmt::Debug + 'static,
12479{
12480 fn from(
12481 err: ::aws_smithy_runtime_api::client::result::SdkError<
12482 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError,
12483 R,
12484 >,
12485 ) -> Self {
12486 match err {
12487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12490 source: err.into(),
12491 }),
12492 }
12493 }
12494}
12495impl From<crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError> for Error {
12496 fn from(err: crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError) -> Self {
12497 match err {
12498 crate::operation::disassociate_transit_gateway_policy_table::DisassociateTransitGatewayPolicyTableError::Unhandled(inner) => {
12499 Error::Unhandled(inner)
12500 }
12501 }
12502 }
12503}
12504impl<R>
12505 From<
12506 ::aws_smithy_runtime_api::client::result::SdkError<
12507 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12508 R,
12509 >,
12510 > for Error
12511where
12512 R: Send + Sync + std::fmt::Debug + 'static,
12513{
12514 fn from(
12515 err: ::aws_smithy_runtime_api::client::result::SdkError<
12516 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError,
12517 R,
12518 >,
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::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError> for Error {
12530 fn from(err: crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError) -> Self {
12531 match err {
12532 crate::operation::disassociate_transit_gateway_route_table::DisassociateTransitGatewayRouteTableError::Unhandled(inner) => {
12533 Error::Unhandled(inner)
12534 }
12535 }
12536 }
12537}
12538impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>>
12539 for Error
12540where
12541 R: Send + Sync + std::fmt::Debug + 'static,
12542{
12543 fn from(
12544 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError, R>,
12545 ) -> Self {
12546 match err {
12547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12550 source: err.into(),
12551 }),
12552 }
12553 }
12554}
12555impl From<crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError> for Error {
12556 fn from(err: crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError) -> Self {
12557 match err {
12558 crate::operation::disassociate_trunk_interface::DisassociateTrunkInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
12559 }
12560 }
12561}
12562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>>
12563 for Error
12564where
12565 R: Send + Sync + std::fmt::Debug + 'static,
12566{
12567 fn from(
12568 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError, R>,
12569 ) -> Self {
12570 match err {
12571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12574 source: err.into(),
12575 }),
12576 }
12577 }
12578}
12579impl From<crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError> for Error {
12580 fn from(err: crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError) -> Self {
12581 match err {
12582 crate::operation::disassociate_vpc_cidr_block::DisassociateVpcCidrBlockError::Unhandled(inner) => Error::Unhandled(inner),
12583 }
12584 }
12585}
12586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>> for Error
12587where
12588 R: Send + Sync + std::fmt::Debug + 'static,
12589{
12590 fn from(
12591 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_address_transfer::EnableAddressTransferError, R>,
12592 ) -> Self {
12593 match err {
12594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12597 source: err.into(),
12598 }),
12599 }
12600 }
12601}
12602impl From<crate::operation::enable_address_transfer::EnableAddressTransferError> for Error {
12603 fn from(err: crate::operation::enable_address_transfer::EnableAddressTransferError) -> Self {
12604 match err {
12605 crate::operation::enable_address_transfer::EnableAddressTransferError::Unhandled(inner) => Error::Unhandled(inner),
12606 }
12607 }
12608}
12609impl<R>
12610 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError, R>>
12611 for Error
12612where
12613 R: Send + Sync + std::fmt::Debug + 'static,
12614{
12615 fn from(
12616 err: ::aws_smithy_runtime_api::client::result::SdkError<
12617 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
12618 R,
12619 >,
12620 ) -> Self {
12621 match err {
12622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12625 source: err.into(),
12626 }),
12627 }
12628 }
12629}
12630impl From<crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError> for Error {
12631 fn from(err: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError) -> Self {
12632 match err {
12633 crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
12634 }
12635 }
12636}
12637impl<R>
12638 From<
12639 ::aws_smithy_runtime_api::client::result::SdkError<
12640 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12641 R,
12642 >,
12643 > for Error
12644where
12645 R: Send + Sync + std::fmt::Debug + 'static,
12646{
12647 fn from(
12648 err: ::aws_smithy_runtime_api::client::result::SdkError<
12649 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError,
12650 R,
12651 >,
12652 ) -> Self {
12653 match err {
12654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12657 source: err.into(),
12658 }),
12659 }
12660 }
12661}
12662impl From<crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError> for Error {
12663 fn from(err: crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError) -> Self {
12664 match err {
12665 crate::operation::enable_aws_network_performance_metric_subscription::EnableAwsNetworkPerformanceMetricSubscriptionError::Unhandled(
12666 inner,
12667 ) => Error::Unhandled(inner),
12668 }
12669 }
12670}
12671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>> for Error
12672where
12673 R: Send + Sync + std::fmt::Debug + 'static,
12674{
12675 fn from(
12676 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_capacity_manager::EnableCapacityManagerError, R>,
12677 ) -> Self {
12678 match err {
12679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12682 source: err.into(),
12683 }),
12684 }
12685 }
12686}
12687impl From<crate::operation::enable_capacity_manager::EnableCapacityManagerError> for Error {
12688 fn from(err: crate::operation::enable_capacity_manager::EnableCapacityManagerError) -> Self {
12689 match err {
12690 crate::operation::enable_capacity_manager::EnableCapacityManagerError::Unhandled(inner) => Error::Unhandled(inner),
12691 }
12692 }
12693}
12694impl<R>
12695 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError, R>>
12696 for Error
12697where
12698 R: Send + Sync + std::fmt::Debug + 'static,
12699{
12700 fn from(
12701 err: ::aws_smithy_runtime_api::client::result::SdkError<
12702 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
12703 R,
12704 >,
12705 ) -> Self {
12706 match err {
12707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12710 source: err.into(),
12711 }),
12712 }
12713 }
12714}
12715impl From<crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError> for Error {
12716 fn from(err: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError) -> Self {
12717 match err {
12718 crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
12719 }
12720 }
12721}
12722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>> for Error
12723where
12724 R: Send + Sync + std::fmt::Debug + 'static,
12725{
12726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_launch::EnableFastLaunchError, R>) -> Self {
12727 match err {
12728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12731 source: err.into(),
12732 }),
12733 }
12734 }
12735}
12736impl From<crate::operation::enable_fast_launch::EnableFastLaunchError> for Error {
12737 fn from(err: crate::operation::enable_fast_launch::EnableFastLaunchError) -> Self {
12738 match err {
12739 crate::operation::enable_fast_launch::EnableFastLaunchError::Unhandled(inner) => Error::Unhandled(inner),
12740 }
12741 }
12742}
12743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>>
12744 for Error
12745where
12746 R: Send + Sync + std::fmt::Debug + 'static,
12747{
12748 fn from(
12749 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError, R>,
12750 ) -> Self {
12751 match err {
12752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12755 source: err.into(),
12756 }),
12757 }
12758 }
12759}
12760impl From<crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError> for Error {
12761 fn from(err: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError) -> Self {
12762 match err {
12763 crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError::Unhandled(inner) => Error::Unhandled(inner),
12764 }
12765 }
12766}
12767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>> for Error
12768where
12769 R: Send + Sync + std::fmt::Debug + 'static,
12770{
12771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image::EnableImageError, R>) -> Self {
12772 match err {
12773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12776 source: err.into(),
12777 }),
12778 }
12779 }
12780}
12781impl From<crate::operation::enable_image::EnableImageError> for Error {
12782 fn from(err: crate::operation::enable_image::EnableImageError) -> Self {
12783 match err {
12784 crate::operation::enable_image::EnableImageError::Unhandled(inner) => Error::Unhandled(inner),
12785 }
12786 }
12787}
12788impl<R>
12789 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError, R>>
12790 for Error
12791where
12792 R: Send + Sync + std::fmt::Debug + 'static,
12793{
12794 fn from(
12795 err: ::aws_smithy_runtime_api::client::result::SdkError<
12796 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError,
12797 R,
12798 >,
12799 ) -> Self {
12800 match err {
12801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12804 source: err.into(),
12805 }),
12806 }
12807 }
12808}
12809impl From<crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError> for Error {
12810 fn from(err: crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError) -> Self {
12811 match err {
12812 crate::operation::enable_image_block_public_access::EnableImageBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
12813 }
12814 }
12815}
12816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>> for Error
12817where
12818 R: Send + Sync + std::fmt::Debug + 'static,
12819{
12820 fn from(
12821 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_image_deprecation::EnableImageDeprecationError, R>,
12822 ) -> Self {
12823 match err {
12824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12827 source: err.into(),
12828 }),
12829 }
12830 }
12831}
12832impl From<crate::operation::enable_image_deprecation::EnableImageDeprecationError> for Error {
12833 fn from(err: crate::operation::enable_image_deprecation::EnableImageDeprecationError) -> Self {
12834 match err {
12835 crate::operation::enable_image_deprecation::EnableImageDeprecationError::Unhandled(inner) => Error::Unhandled(inner),
12836 }
12837 }
12838}
12839impl<R>
12840 From<
12841 ::aws_smithy_runtime_api::client::result::SdkError<
12842 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
12843 R,
12844 >,
12845 > for Error
12846where
12847 R: Send + Sync + std::fmt::Debug + 'static,
12848{
12849 fn from(
12850 err: ::aws_smithy_runtime_api::client::result::SdkError<
12851 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError,
12852 R,
12853 >,
12854 ) -> Self {
12855 match err {
12856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12859 source: err.into(),
12860 }),
12861 }
12862 }
12863}
12864impl From<crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError> for Error {
12865 fn from(err: crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError) -> Self {
12866 match err {
12867 crate::operation::enable_image_deregistration_protection::EnableImageDeregistrationProtectionError::Unhandled(inner) => {
12868 Error::Unhandled(inner)
12869 }
12870 }
12871 }
12872}
12873impl<R>
12874 From<
12875 ::aws_smithy_runtime_api::client::result::SdkError<
12876 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
12877 R,
12878 >,
12879 > for Error
12880where
12881 R: Send + Sync + std::fmt::Debug + 'static,
12882{
12883 fn from(
12884 err: ::aws_smithy_runtime_api::client::result::SdkError<
12885 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError,
12886 R,
12887 >,
12888 ) -> Self {
12889 match err {
12890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12893 source: err.into(),
12894 }),
12895 }
12896 }
12897}
12898impl From<crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError> for Error {
12899 fn from(err: crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError) -> Self {
12900 match err {
12901 crate::operation::enable_ipam_organization_admin_account::EnableIpamOrganizationAdminAccountError::Unhandled(inner) => {
12902 Error::Unhandled(inner)
12903 }
12904 }
12905 }
12906}
12907impl<R>
12908 From<
12909 ::aws_smithy_runtime_api::client::result::SdkError<
12910 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
12911 R,
12912 >,
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::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError,
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::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError> for Error {
12933 fn from(err: crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError) -> Self {
12934 match err {
12935 crate::operation::enable_reachability_analyzer_organization_sharing::EnableReachabilityAnalyzerOrganizationSharingError::Unhandled(
12936 inner,
12937 ) => Error::Unhandled(inner),
12938 }
12939 }
12940}
12941impl<R>
12942 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError, R>>
12943 for Error
12944where
12945 R: Send + Sync + std::fmt::Debug + 'static,
12946{
12947 fn from(
12948 err: ::aws_smithy_runtime_api::client::result::SdkError<
12949 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError,
12950 R,
12951 >,
12952 ) -> Self {
12953 match err {
12954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12957 source: err.into(),
12958 }),
12959 }
12960 }
12961}
12962impl From<crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError> for Error {
12963 fn from(err: crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError) -> Self {
12964 match err {
12965 crate::operation::enable_route_server_propagation::EnableRouteServerPropagationError::Unhandled(inner) => Error::Unhandled(inner),
12966 }
12967 }
12968}
12969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>>
12970 for Error
12971where
12972 R: Send + Sync + std::fmt::Debug + 'static,
12973{
12974 fn from(
12975 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError, R>,
12976 ) -> Self {
12977 match err {
12978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
12979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
12980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
12981 source: err.into(),
12982 }),
12983 }
12984 }
12985}
12986impl From<crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError> for Error {
12987 fn from(err: crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError) -> Self {
12988 match err {
12989 crate::operation::enable_serial_console_access::EnableSerialConsoleAccessError::Unhandled(inner) => Error::Unhandled(inner),
12990 }
12991 }
12992}
12993impl<R>
12994 From<
12995 ::aws_smithy_runtime_api::client::result::SdkError<
12996 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
12997 R,
12998 >,
12999 > for Error
13000where
13001 R: Send + Sync + std::fmt::Debug + 'static,
13002{
13003 fn from(
13004 err: ::aws_smithy_runtime_api::client::result::SdkError<
13005 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
13006 R,
13007 >,
13008 ) -> Self {
13009 match err {
13010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13013 source: err.into(),
13014 }),
13015 }
13016 }
13017}
13018impl From<crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError> for Error {
13019 fn from(err: crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError) -> Self {
13020 match err {
13021 crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError::Unhandled(inner) => Error::Unhandled(inner),
13022 }
13023 }
13024}
13025impl<R>
13026 From<
13027 ::aws_smithy_runtime_api::client::result::SdkError<
13028 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13029 R,
13030 >,
13031 > for Error
13032where
13033 R: Send + Sync + std::fmt::Debug + 'static,
13034{
13035 fn from(
13036 err: ::aws_smithy_runtime_api::client::result::SdkError<
13037 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError,
13038 R,
13039 >,
13040 ) -> Self {
13041 match err {
13042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13045 source: err.into(),
13046 }),
13047 }
13048 }
13049}
13050impl From<crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError> for Error {
13051 fn from(err: crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError) -> Self {
13052 match err {
13053 crate::operation::enable_transit_gateway_route_table_propagation::EnableTransitGatewayRouteTablePropagationError::Unhandled(inner) => {
13054 Error::Unhandled(inner)
13055 }
13056 }
13057 }
13058}
13059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>>
13060 for Error
13061where
13062 R: Send + Sync + std::fmt::Debug + 'static,
13063{
13064 fn from(
13065 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError, R>,
13066 ) -> Self {
13067 match err {
13068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13071 source: err.into(),
13072 }),
13073 }
13074 }
13075}
13076impl From<crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError> for Error {
13077 fn from(err: crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError) -> Self {
13078 match err {
13079 crate::operation::enable_vgw_route_propagation::EnableVgwRoutePropagationError::Unhandled(inner) => Error::Unhandled(inner),
13080 }
13081 }
13082}
13083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>> for Error
13084where
13085 R: Send + Sync + std::fmt::Debug + 'static,
13086{
13087 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_volume_io::EnableVolumeIOError, R>) -> Self {
13088 match err {
13089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13092 source: err.into(),
13093 }),
13094 }
13095 }
13096}
13097impl From<crate::operation::enable_volume_io::EnableVolumeIOError> for Error {
13098 fn from(err: crate::operation::enable_volume_io::EnableVolumeIOError) -> Self {
13099 match err {
13100 crate::operation::enable_volume_io::EnableVolumeIOError::Unhandled(inner) => Error::Unhandled(inner),
13101 }
13102 }
13103}
13104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>> for Error
13105where
13106 R: Send + Sync + std::fmt::Debug + 'static,
13107{
13108 fn from(
13109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError, R>,
13110 ) -> Self {
13111 match err {
13112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13115 source: err.into(),
13116 }),
13117 }
13118 }
13119}
13120impl From<crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError> for Error {
13121 fn from(err: crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError) -> Self {
13122 match err {
13123 crate::operation::enable_vpc_classic_link::EnableVpcClassicLinkError::Unhandled(inner) => Error::Unhandled(inner),
13124 }
13125 }
13126}
13127impl<R>
13128 From<
13129 ::aws_smithy_runtime_api::client::result::SdkError<
13130 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13131 R,
13132 >,
13133 > for Error
13134where
13135 R: Send + Sync + std::fmt::Debug + 'static,
13136{
13137 fn from(
13138 err: ::aws_smithy_runtime_api::client::result::SdkError<
13139 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError,
13140 R,
13141 >,
13142 ) -> Self {
13143 match err {
13144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13147 source: err.into(),
13148 }),
13149 }
13150 }
13151}
13152impl From<crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError> for Error {
13153 fn from(err: crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError) -> Self {
13154 match err {
13155 crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportError::Unhandled(inner) => Error::Unhandled(inner),
13156 }
13157 }
13158}
13159impl<R>
13160 From<
13161 ::aws_smithy_runtime_api::client::result::SdkError<
13162 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13163 R,
13164 >,
13165 > for Error
13166where
13167 R: Send + Sync + std::fmt::Debug + 'static,
13168{
13169 fn from(
13170 err: ::aws_smithy_runtime_api::client::result::SdkError<
13171 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13172 R,
13173 >,
13174 ) -> Self {
13175 match err {
13176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13179 source: err.into(),
13180 }),
13181 }
13182 }
13183}
13184impl From<crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError> for Error {
13185 fn from(
13186 err: crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError,
13187 ) -> Self {
13188 match err {
13189 crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
13190 }
13191 }
13192}
13193impl<R>
13194 From<
13195 ::aws_smithy_runtime_api::client::result::SdkError<
13196 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13197 R,
13198 >,
13199 > for Error
13200where
13201 R: Send + Sync + std::fmt::Debug + 'static,
13202{
13203 fn from(
13204 err: ::aws_smithy_runtime_api::client::result::SdkError<
13205 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError,
13206 R,
13207 >,
13208 ) -> Self {
13209 match err {
13210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13213 source: err.into(),
13214 }),
13215 }
13216 }
13217}
13218impl From<crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError> for Error {
13219 fn from(err: crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError) -> Self {
13220 match err {
13221 crate::operation::export_client_vpn_client_configuration::ExportClientVpnClientConfigurationError::Unhandled(inner) => {
13222 Error::Unhandled(inner)
13223 }
13224 }
13225 }
13226}
13227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>> for Error
13228where
13229 R: Send + Sync + std::fmt::Debug + 'static,
13230{
13231 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_image::ExportImageError, R>) -> Self {
13232 match err {
13233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13236 source: err.into(),
13237 }),
13238 }
13239 }
13240}
13241impl From<crate::operation::export_image::ExportImageError> for Error {
13242 fn from(err: crate::operation::export_image::ExportImageError) -> Self {
13243 match err {
13244 crate::operation::export_image::ExportImageError::Unhandled(inner) => Error::Unhandled(inner),
13245 }
13246 }
13247}
13248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>>
13249 for Error
13250where
13251 R: Send + Sync + std::fmt::Debug + 'static,
13252{
13253 fn from(
13254 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError, R>,
13255 ) -> Self {
13256 match err {
13257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13260 source: err.into(),
13261 }),
13262 }
13263 }
13264}
13265impl From<crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError> for Error {
13266 fn from(err: crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError) -> Self {
13267 match err {
13268 crate::operation::export_transit_gateway_routes::ExportTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
13269 }
13270 }
13271}
13272impl<R>
13273 From<
13274 ::aws_smithy_runtime_api::client::result::SdkError<
13275 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13276 R,
13277 >,
13278 > for Error
13279where
13280 R: Send + Sync + std::fmt::Debug + 'static,
13281{
13282 fn from(
13283 err: ::aws_smithy_runtime_api::client::result::SdkError<
13284 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13285 R,
13286 >,
13287 ) -> Self {
13288 match err {
13289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13292 source: err.into(),
13293 }),
13294 }
13295 }
13296}
13297impl From<crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError> for Error {
13298 fn from(
13299 err: crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError,
13300 ) -> Self {
13301 match err {
13302 crate::operation::export_verified_access_instance_client_configuration::ExportVerifiedAccessInstanceClientConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
13303 }
13304 }
13305}
13306impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>>
13307 for Error
13308where
13309 R: Send + Sync + std::fmt::Debug + 'static,
13310{
13311 fn from(
13312 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError, R>,
13313 ) -> Self {
13314 match err {
13315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13318 source: err.into(),
13319 }),
13320 }
13321 }
13322}
13323impl From<crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError> for Error {
13324 fn from(err: crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError) -> Self {
13325 match err {
13326 crate::operation::get_active_vpn_tunnel_status::GetActiveVpnTunnelStatusError::Unhandled(inner) => Error::Unhandled(inner),
13327 }
13328 }
13329}
13330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>>
13331 for Error
13332where
13333 R: Send + Sync + std::fmt::Debug + 'static,
13334{
13335 fn from(
13336 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError, R>,
13337 ) -> Self {
13338 match err {
13339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13342 source: err.into(),
13343 }),
13344 }
13345 }
13346}
13347impl From<crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError> for Error {
13348 fn from(err: crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError) -> Self {
13349 match err {
13350 crate::operation::get_allowed_images_settings::GetAllowedImagesSettingsError::Unhandled(inner) => Error::Unhandled(inner),
13351 }
13352 }
13353}
13354impl<R>
13355 From<
13356 ::aws_smithy_runtime_api::client::result::SdkError<
13357 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13358 R,
13359 >,
13360 > for Error
13361where
13362 R: Send + Sync + std::fmt::Debug + 'static,
13363{
13364 fn from(
13365 err: ::aws_smithy_runtime_api::client::result::SdkError<
13366 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError,
13367 R,
13368 >,
13369 ) -> Self {
13370 match err {
13371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13374 source: err.into(),
13375 }),
13376 }
13377 }
13378}
13379impl From<crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError> for Error {
13380 fn from(err: crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError) -> Self {
13381 match err {
13382 crate::operation::get_associated_enclave_certificate_iam_roles::GetAssociatedEnclaveCertificateIamRolesError::Unhandled(inner) => {
13383 Error::Unhandled(inner)
13384 }
13385 }
13386 }
13387}
13388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>>
13389 for Error
13390where
13391 R: Send + Sync + std::fmt::Debug + 'static,
13392{
13393 fn from(
13394 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError, R>,
13395 ) -> Self {
13396 match err {
13397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13400 source: err.into(),
13401 }),
13402 }
13403 }
13404}
13405impl From<crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError> for Error {
13406 fn from(err: crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError) -> Self {
13407 match err {
13408 crate::operation::get_associated_ipv6_pool_cidrs::GetAssociatedIpv6PoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
13409 }
13410 }
13411}
13412impl<R>
13413 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError, R>>
13414 for Error
13415where
13416 R: Send + Sync + std::fmt::Debug + 'static,
13417{
13418 fn from(
13419 err: ::aws_smithy_runtime_api::client::result::SdkError<
13420 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError,
13421 R,
13422 >,
13423 ) -> Self {
13424 match err {
13425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13428 source: err.into(),
13429 }),
13430 }
13431 }
13432}
13433impl From<crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError> for Error {
13434 fn from(err: crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError) -> Self {
13435 match err {
13436 crate::operation::get_aws_network_performance_data::GetAwsNetworkPerformanceDataError::Unhandled(inner) => Error::Unhandled(inner),
13437 }
13438 }
13439}
13440impl<R>
13441 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError, R>>
13442 for Error
13443where
13444 R: Send + Sync + std::fmt::Debug + 'static,
13445{
13446 fn from(
13447 err: ::aws_smithy_runtime_api::client::result::SdkError<
13448 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError,
13449 R,
13450 >,
13451 ) -> Self {
13452 match err {
13453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13456 source: err.into(),
13457 }),
13458 }
13459 }
13460}
13461impl From<crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError> for Error {
13462 fn from(err: crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError) -> Self {
13463 match err {
13464 crate::operation::get_capacity_manager_attributes::GetCapacityManagerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
13465 }
13466 }
13467}
13468impl<R>
13469 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError, R>>
13470 for Error
13471where
13472 R: Send + Sync + std::fmt::Debug + 'static,
13473{
13474 fn from(
13475 err: ::aws_smithy_runtime_api::client::result::SdkError<
13476 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError,
13477 R,
13478 >,
13479 ) -> Self {
13480 match err {
13481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13484 source: err.into(),
13485 }),
13486 }
13487 }
13488}
13489impl From<crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError> for Error {
13490 fn from(err: crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError) -> Self {
13491 match err {
13492 crate::operation::get_capacity_manager_metric_data::GetCapacityManagerMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
13493 }
13494 }
13495}
13496impl<R>
13497 From<
13498 ::aws_smithy_runtime_api::client::result::SdkError<
13499 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13500 R,
13501 >,
13502 > for Error
13503where
13504 R: Send + Sync + std::fmt::Debug + 'static,
13505{
13506 fn from(
13507 err: ::aws_smithy_runtime_api::client::result::SdkError<
13508 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError,
13509 R,
13510 >,
13511 ) -> Self {
13512 match err {
13513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13516 source: err.into(),
13517 }),
13518 }
13519 }
13520}
13521impl From<crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError> for Error {
13522 fn from(err: crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError) -> Self {
13523 match err {
13524 crate::operation::get_capacity_manager_metric_dimensions::GetCapacityManagerMetricDimensionsError::Unhandled(inner) => {
13525 Error::Unhandled(inner)
13526 }
13527 }
13528 }
13529}
13530impl<R>
13531 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError, R>>
13532 for Error
13533where
13534 R: Send + Sync + std::fmt::Debug + 'static,
13535{
13536 fn from(
13537 err: ::aws_smithy_runtime_api::client::result::SdkError<
13538 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError,
13539 R,
13540 >,
13541 ) -> Self {
13542 match err {
13543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13546 source: err.into(),
13547 }),
13548 }
13549 }
13550}
13551impl From<crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError> for Error {
13552 fn from(err: crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError) -> Self {
13553 match err {
13554 crate::operation::get_capacity_reservation_usage::GetCapacityReservationUsageError::Unhandled(inner) => Error::Unhandled(inner),
13555 }
13556 }
13557}
13558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>> for Error
13559where
13560 R: Send + Sync + std::fmt::Debug + 'static,
13561{
13562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError, R>) -> Self {
13563 match err {
13564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13567 source: err.into(),
13568 }),
13569 }
13570 }
13571}
13572impl From<crate::operation::get_coip_pool_usage::GetCoipPoolUsageError> for Error {
13573 fn from(err: crate::operation::get_coip_pool_usage::GetCoipPoolUsageError) -> Self {
13574 match err {
13575 crate::operation::get_coip_pool_usage::GetCoipPoolUsageError::Unhandled(inner) => Error::Unhandled(inner),
13576 }
13577 }
13578}
13579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>> for Error
13580where
13581 R: Send + Sync + std::fmt::Debug + 'static,
13582{
13583 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_output::GetConsoleOutputError, R>) -> Self {
13584 match err {
13585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13588 source: err.into(),
13589 }),
13590 }
13591 }
13592}
13593impl From<crate::operation::get_console_output::GetConsoleOutputError> for Error {
13594 fn from(err: crate::operation::get_console_output::GetConsoleOutputError) -> Self {
13595 match err {
13596 crate::operation::get_console_output::GetConsoleOutputError::Unhandled(inner) => Error::Unhandled(inner),
13597 }
13598 }
13599}
13600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>> for Error
13601where
13602 R: Send + Sync + std::fmt::Debug + 'static,
13603{
13604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_console_screenshot::GetConsoleScreenshotError, R>) -> Self {
13605 match err {
13606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13609 source: err.into(),
13610 }),
13611 }
13612 }
13613}
13614impl From<crate::operation::get_console_screenshot::GetConsoleScreenshotError> for Error {
13615 fn from(err: crate::operation::get_console_screenshot::GetConsoleScreenshotError) -> Self {
13616 match err {
13617 crate::operation::get_console_screenshot::GetConsoleScreenshotError::Unhandled(inner) => Error::Unhandled(inner),
13618 }
13619 }
13620}
13621impl<R>
13622 From<
13623 ::aws_smithy_runtime_api::client::result::SdkError<
13624 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13625 R,
13626 >,
13627 > for Error
13628where
13629 R: Send + Sync + std::fmt::Debug + 'static,
13630{
13631 fn from(
13632 err: ::aws_smithy_runtime_api::client::result::SdkError<
13633 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError,
13634 R,
13635 >,
13636 ) -> Self {
13637 match err {
13638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13641 source: err.into(),
13642 }),
13643 }
13644 }
13645}
13646impl From<crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError> for Error {
13647 fn from(err: crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError) -> Self {
13648 match err {
13649 crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryError::Unhandled(inner) => {
13650 Error::Unhandled(inner)
13651 }
13652 }
13653 }
13654}
13655impl<R>
13656 From<
13657 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError, R>,
13658 > for Error
13659where
13660 R: Send + Sync + std::fmt::Debug + 'static,
13661{
13662 fn from(
13663 err: ::aws_smithy_runtime_api::client::result::SdkError<
13664 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError,
13665 R,
13666 >,
13667 ) -> Self {
13668 match err {
13669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13672 source: err.into(),
13673 }),
13674 }
13675 }
13676}
13677impl From<crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError> for Error {
13678 fn from(err: crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError) -> Self {
13679 match err {
13680 crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
13681 }
13682 }
13683}
13684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>>
13685 for Error
13686where
13687 R: Send + Sync + std::fmt::Debug + 'static,
13688{
13689 fn from(
13690 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError, R>,
13691 ) -> Self {
13692 match err {
13693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13696 source: err.into(),
13697 }),
13698 }
13699 }
13700}
13701impl From<crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError> for Error {
13702 fn from(err: crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError) -> Self {
13703 match err {
13704 crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
13705 }
13706 }
13707}
13708impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>>
13709 for Error
13710where
13711 R: Send + Sync + std::fmt::Debug + 'static,
13712{
13713 fn from(
13714 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError, R>,
13715 ) -> Self {
13716 match err {
13717 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13718 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13719 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13720 source: err.into(),
13721 }),
13722 }
13723 }
13724}
13725impl From<crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError> for Error {
13726 fn from(err: crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError) -> Self {
13727 match err {
13728 crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError::Unhandled(inner) => Error::Unhandled(inner),
13729 }
13730 }
13731}
13732impl<R>
13733 From<
13734 ::aws_smithy_runtime_api::client::result::SdkError<
13735 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13736 R,
13737 >,
13738 > for Error
13739where
13740 R: Send + Sync + std::fmt::Debug + 'static,
13741{
13742 fn from(
13743 err: ::aws_smithy_runtime_api::client::result::SdkError<
13744 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError,
13745 R,
13746 >,
13747 ) -> Self {
13748 match err {
13749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13752 source: err.into(),
13753 }),
13754 }
13755 }
13756}
13757impl From<crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError> for Error {
13758 fn from(err: crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError) -> Self {
13759 match err {
13760 crate::operation::get_flow_logs_integration_template::GetFlowLogsIntegrationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
13761 }
13762 }
13763}
13764impl<R>
13765 From<
13766 ::aws_smithy_runtime_api::client::result::SdkError<
13767 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13768 R,
13769 >,
13770 > for Error
13771where
13772 R: Send + Sync + std::fmt::Debug + 'static,
13773{
13774 fn from(
13775 err: ::aws_smithy_runtime_api::client::result::SdkError<
13776 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError,
13777 R,
13778 >,
13779 ) -> Self {
13780 match err {
13781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13784 source: err.into(),
13785 }),
13786 }
13787 }
13788}
13789impl From<crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError> for Error {
13790 fn from(err: crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError) -> Self {
13791 match err {
13792 crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
13793 }
13794 }
13795}
13796impl<R>
13797 From<
13798 ::aws_smithy_runtime_api::client::result::SdkError<
13799 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
13800 R,
13801 >,
13802 > for Error
13803where
13804 R: Send + Sync + std::fmt::Debug + 'static,
13805{
13806 fn from(
13807 err: ::aws_smithy_runtime_api::client::result::SdkError<
13808 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError,
13809 R,
13810 >,
13811 ) -> Self {
13812 match err {
13813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13816 source: err.into(),
13817 }),
13818 }
13819 }
13820}
13821impl From<crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError> for Error {
13822 fn from(err: crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError) -> Self {
13823 match err {
13824 crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError::Unhandled(inner) => {
13825 Error::Unhandled(inner)
13826 }
13827 }
13828 }
13829}
13830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>> for Error
13831where
13832 R: Send + Sync + std::fmt::Debug + 'static,
13833{
13834 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_image_ancestry::GetImageAncestryError, R>) -> Self {
13835 match err {
13836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13839 source: err.into(),
13840 }),
13841 }
13842 }
13843}
13844impl From<crate::operation::get_image_ancestry::GetImageAncestryError> for Error {
13845 fn from(err: crate::operation::get_image_ancestry::GetImageAncestryError) -> Self {
13846 match err {
13847 crate::operation::get_image_ancestry::GetImageAncestryError::Unhandled(inner) => Error::Unhandled(inner),
13848 }
13849 }
13850}
13851impl<R>
13852 From<
13853 ::aws_smithy_runtime_api::client::result::SdkError<
13854 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13855 R,
13856 >,
13857 > for Error
13858where
13859 R: Send + Sync + std::fmt::Debug + 'static,
13860{
13861 fn from(
13862 err: ::aws_smithy_runtime_api::client::result::SdkError<
13863 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13864 R,
13865 >,
13866 ) -> Self {
13867 match err {
13868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13871 source: err.into(),
13872 }),
13873 }
13874 }
13875}
13876impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
13877 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
13878 match err {
13879 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
13880 }
13881 }
13882}
13883impl<R>
13884 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
13885 for Error
13886where
13887 R: Send + Sync + std::fmt::Debug + 'static,
13888{
13889 fn from(
13890 err: ::aws_smithy_runtime_api::client::result::SdkError<
13891 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
13892 R,
13893 >,
13894 ) -> Self {
13895 match err {
13896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13899 source: err.into(),
13900 }),
13901 }
13902 }
13903}
13904impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
13905 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
13906 match err {
13907 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
13908 }
13909 }
13910}
13911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
13912where
13913 R: Send + Sync + std::fmt::Debug + 'static,
13914{
13915 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> Self {
13916 match err {
13917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13920 source: err.into(),
13921 }),
13922 }
13923 }
13924}
13925impl From<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
13926 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
13927 match err {
13928 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
13929 }
13930 }
13931}
13932impl<R>
13933 From<
13934 ::aws_smithy_runtime_api::client::result::SdkError<
13935 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13936 R,
13937 >,
13938 > for Error
13939where
13940 R: Send + Sync + std::fmt::Debug + 'static,
13941{
13942 fn from(
13943 err: ::aws_smithy_runtime_api::client::result::SdkError<
13944 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13945 R,
13946 >,
13947 ) -> Self {
13948 match err {
13949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13952 source: err.into(),
13953 }),
13954 }
13955 }
13956}
13957impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
13958 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
13959 match err {
13960 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
13961 Error::Unhandled(inner)
13962 }
13963 }
13964 }
13965}
13966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
13967where
13968 R: Send + Sync + std::fmt::Debug + 'static,
13969{
13970 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
13971 match err {
13972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13975 source: err.into(),
13976 }),
13977 }
13978 }
13979}
13980impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
13981 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
13982 match err {
13983 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
13984 }
13985 }
13986}
13987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
13988where
13989 R: Send + Sync + std::fmt::Debug + 'static,
13990{
13991 fn from(
13992 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
13993 ) -> Self {
13994 match err {
13995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13998 source: err.into(),
13999 }),
14000 }
14001 }
14002}
14003impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
14004 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
14005 match err {
14006 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
14007 }
14008 }
14009}
14010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
14011 for Error
14012where
14013 R: Send + Sync + std::fmt::Debug + 'static,
14014{
14015 fn from(
14016 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
14017 ) -> Self {
14018 match err {
14019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14022 source: err.into(),
14023 }),
14024 }
14025 }
14026}
14027impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14028 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14029 match err {
14030 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14031 }
14032 }
14033}
14034impl<R>
14035 From<
14036 ::aws_smithy_runtime_api::client::result::SdkError<
14037 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14038 R,
14039 >,
14040 > for Error
14041where
14042 R: Send + Sync + std::fmt::Debug + 'static,
14043{
14044 fn from(
14045 err: ::aws_smithy_runtime_api::client::result::SdkError<
14046 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14047 R,
14048 >,
14049 ) -> Self {
14050 match err {
14051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14054 source: err.into(),
14055 }),
14056 }
14057 }
14058}
14059impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14060 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14061 match err {
14062 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14063 Error::Unhandled(inner)
14064 }
14065 }
14066 }
14067}
14068impl<R>
14069 From<
14070 ::aws_smithy_runtime_api::client::result::SdkError<
14071 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14072 R,
14073 >,
14074 > for Error
14075where
14076 R: Send + Sync + std::fmt::Debug + 'static,
14077{
14078 fn from(
14079 err: ::aws_smithy_runtime_api::client::result::SdkError<
14080 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14081 R,
14082 >,
14083 ) -> Self {
14084 match err {
14085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14088 source: err.into(),
14089 }),
14090 }
14091 }
14092}
14093impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14094 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14095 match err {
14096 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14097 }
14098 }
14099}
14100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
14101 for Error
14102where
14103 R: Send + Sync + std::fmt::Debug + 'static,
14104{
14105 fn from(
14106 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
14107 ) -> Self {
14108 match err {
14109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14112 source: err.into(),
14113 }),
14114 }
14115 }
14116}
14117impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
14118 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
14119 match err {
14120 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
14121 }
14122 }
14123}
14124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
14125where
14126 R: Send + Sync + std::fmt::Debug + 'static,
14127{
14128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> Self {
14129 match err {
14130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14133 source: err.into(),
14134 }),
14135 }
14136 }
14137}
14138impl From<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError> for Error {
14139 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
14140 match err {
14141 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14142 }
14143 }
14144}
14145impl<R>
14146 From<
14147 ::aws_smithy_runtime_api::client::result::SdkError<
14148 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14149 R,
14150 >,
14151 > for Error
14152where
14153 R: Send + Sync + std::fmt::Debug + 'static,
14154{
14155 fn from(
14156 err: ::aws_smithy_runtime_api::client::result::SdkError<
14157 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14158 R,
14159 >,
14160 ) -> Self {
14161 match err {
14162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14165 source: err.into(),
14166 }),
14167 }
14168 }
14169}
14170impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
14171 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
14172 match err {
14173 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
14174 }
14175 }
14176}
14177impl<R>
14178 From<
14179 ::aws_smithy_runtime_api::client::result::SdkError<
14180 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14181 R,
14182 >,
14183 > for Error
14184where
14185 R: Send + Sync + std::fmt::Debug + 'static,
14186{
14187 fn from(
14188 err: ::aws_smithy_runtime_api::client::result::SdkError<
14189 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14190 R,
14191 >,
14192 ) -> Self {
14193 match err {
14194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14197 source: err.into(),
14198 }),
14199 }
14200 }
14201}
14202impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
14203 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
14204 match err {
14205 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
14206 Error::Unhandled(inner)
14207 }
14208 }
14209 }
14210}
14211impl<R>
14212 From<
14213 ::aws_smithy_runtime_api::client::result::SdkError<
14214 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14215 R,
14216 >,
14217 > for Error
14218where
14219 R: Send + Sync + std::fmt::Debug + 'static,
14220{
14221 fn from(
14222 err: ::aws_smithy_runtime_api::client::result::SdkError<
14223 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14224 R,
14225 >,
14226 ) -> Self {
14227 match err {
14228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14231 source: err.into(),
14232 }),
14233 }
14234 }
14235}
14236impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
14237 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
14238 match err {
14239 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
14240 Error::Unhandled(inner)
14241 }
14242 }
14243 }
14244}
14245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
14246where
14247 R: Send + Sync + std::fmt::Debug + 'static,
14248{
14249 fn from(
14250 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
14251 ) -> Self {
14252 match err {
14253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14256 source: err.into(),
14257 }),
14258 }
14259 }
14260}
14261impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
14262 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
14263 match err {
14264 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14265 }
14266 }
14267}
14268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
14269where
14270 R: Send + Sync + std::fmt::Debug + 'static,
14271{
14272 fn from(
14273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
14274 ) -> Self {
14275 match err {
14276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14279 source: err.into(),
14280 }),
14281 }
14282 }
14283}
14284impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
14285 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
14286 match err {
14287 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
14288 }
14289 }
14290}
14291impl<R>
14292 From<
14293 ::aws_smithy_runtime_api::client::result::SdkError<
14294 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14295 R,
14296 >,
14297 > for Error
14298where
14299 R: Send + Sync + std::fmt::Debug + 'static,
14300{
14301 fn from(
14302 err: ::aws_smithy_runtime_api::client::result::SdkError<
14303 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14304 R,
14305 >,
14306 ) -> Self {
14307 match err {
14308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14311 source: err.into(),
14312 }),
14313 }
14314 }
14315}
14316impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
14317 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
14318 match err {
14319 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
14320 Error::Unhandled(inner)
14321 }
14322 }
14323 }
14324}
14325impl<R>
14326 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
14327 for Error
14328where
14329 R: Send + Sync + std::fmt::Debug + 'static,
14330{
14331 fn from(
14332 err: ::aws_smithy_runtime_api::client::result::SdkError<
14333 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
14334 R,
14335 >,
14336 ) -> Self {
14337 match err {
14338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14341 source: err.into(),
14342 }),
14343 }
14344 }
14345}
14346impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
14347 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
14348 match err {
14349 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
14350 }
14351 }
14352}
14353impl<R>
14354 From<
14355 ::aws_smithy_runtime_api::client::result::SdkError<
14356 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14357 R,
14358 >,
14359 > for Error
14360where
14361 R: Send + Sync + std::fmt::Debug + 'static,
14362{
14363 fn from(
14364 err: ::aws_smithy_runtime_api::client::result::SdkError<
14365 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14366 R,
14367 >,
14368 ) -> Self {
14369 match err {
14370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14373 source: err.into(),
14374 }),
14375 }
14376 }
14377}
14378impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
14379 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
14380 match err {
14381 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
14382 inner,
14383 ) => Error::Unhandled(inner),
14384 }
14385 }
14386}
14387impl<R>
14388 From<
14389 ::aws_smithy_runtime_api::client::result::SdkError<
14390 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14391 R,
14392 >,
14393 > for Error
14394where
14395 R: Send + Sync + std::fmt::Debug + 'static,
14396{
14397 fn from(
14398 err: ::aws_smithy_runtime_api::client::result::SdkError<
14399 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14400 R,
14401 >,
14402 ) -> Self {
14403 match err {
14404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14407 source: err.into(),
14408 }),
14409 }
14410 }
14411}
14412impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
14413 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
14414 match err {
14415 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
14416 Error::Unhandled(inner)
14417 }
14418 }
14419 }
14420}
14421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
14422where
14423 R: Send + Sync + std::fmt::Debug + 'static,
14424{
14425 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
14426 match err {
14427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14430 source: err.into(),
14431 }),
14432 }
14433 }
14434}
14435impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
14436 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
14437 match err {
14438 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
14439 }
14440 }
14441}
14442impl<R>
14443 From<
14444 ::aws_smithy_runtime_api::client::result::SdkError<
14445 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14446 R,
14447 >,
14448 > for Error
14449where
14450 R: Send + Sync + std::fmt::Debug + 'static,
14451{
14452 fn from(
14453 err: ::aws_smithy_runtime_api::client::result::SdkError<
14454 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14455 R,
14456 >,
14457 ) -> Self {
14458 match err {
14459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14462 source: err.into(),
14463 }),
14464 }
14465 }
14466}
14467impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
14468 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
14469 match err {
14470 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
14471 Error::Unhandled(inner)
14472 }
14473 }
14474 }
14475}
14476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
14477 for Error
14478where
14479 R: Send + Sync + std::fmt::Debug + 'static,
14480{
14481 fn from(
14482 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
14483 ) -> Self {
14484 match err {
14485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14488 source: err.into(),
14489 }),
14490 }
14491 }
14492}
14493impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
14494 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
14495 match err {
14496 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
14497 }
14498 }
14499}
14500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
14501 for Error
14502where
14503 R: Send + Sync + std::fmt::Debug + 'static,
14504{
14505 fn from(
14506 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
14507 ) -> Self {
14508 match err {
14509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14512 source: err.into(),
14513 }),
14514 }
14515 }
14516}
14517impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
14518 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
14519 match err {
14520 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
14521 }
14522 }
14523}
14524impl<R>
14525 From<
14526 ::aws_smithy_runtime_api::client::result::SdkError<
14527 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14528 R,
14529 >,
14530 > for Error
14531where
14532 R: Send + Sync + std::fmt::Debug + 'static,
14533{
14534 fn from(
14535 err: ::aws_smithy_runtime_api::client::result::SdkError<
14536 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14537 R,
14538 >,
14539 ) -> Self {
14540 match err {
14541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14544 source: err.into(),
14545 }),
14546 }
14547 }
14548}
14549impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
14550 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
14551 match err {
14552 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
14553 }
14554 }
14555}
14556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
14557 for Error
14558where
14559 R: Send + Sync + std::fmt::Debug + 'static,
14560{
14561 fn from(
14562 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
14563 ) -> Self {
14564 match err {
14565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14568 source: err.into(),
14569 }),
14570 }
14571 }
14572}
14573impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
14574 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
14575 match err {
14576 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
14577 }
14578 }
14579}
14580impl<R>
14581 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
14582 for Error
14583where
14584 R: Send + Sync + std::fmt::Debug + 'static,
14585{
14586 fn from(
14587 err: ::aws_smithy_runtime_api::client::result::SdkError<
14588 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
14589 R,
14590 >,
14591 ) -> Self {
14592 match err {
14593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14596 source: err.into(),
14597 }),
14598 }
14599 }
14600}
14601impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
14602 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
14603 match err {
14604 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
14605 }
14606 }
14607}
14608impl<R>
14609 From<
14610 ::aws_smithy_runtime_api::client::result::SdkError<
14611 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14612 R,
14613 >,
14614 > for Error
14615where
14616 R: Send + Sync + std::fmt::Debug + 'static,
14617{
14618 fn from(
14619 err: ::aws_smithy_runtime_api::client::result::SdkError<
14620 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14621 R,
14622 >,
14623 ) -> Self {
14624 match err {
14625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14628 source: err.into(),
14629 }),
14630 }
14631 }
14632}
14633impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
14634 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
14635 match err {
14636 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
14637 Error::Unhandled(inner)
14638 }
14639 }
14640 }
14641}
14642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
14643 for Error
14644where
14645 R: Send + Sync + std::fmt::Debug + 'static,
14646{
14647 fn from(
14648 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
14649 ) -> Self {
14650 match err {
14651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14654 source: err.into(),
14655 }),
14656 }
14657 }
14658}
14659impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
14660 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
14661 match err {
14662 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
14663 }
14664 }
14665}
14666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
14667 for Error
14668where
14669 R: Send + Sync + std::fmt::Debug + 'static,
14670{
14671 fn from(
14672 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
14673 ) -> Self {
14674 match err {
14675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14678 source: err.into(),
14679 }),
14680 }
14681 }
14682}
14683impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
14684 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
14685 match err {
14686 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
14687 }
14688 }
14689}
14690impl<R>
14691 From<
14692 ::aws_smithy_runtime_api::client::result::SdkError<
14693 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14694 R,
14695 >,
14696 > for Error
14697where
14698 R: Send + Sync + std::fmt::Debug + 'static,
14699{
14700 fn from(
14701 err: ::aws_smithy_runtime_api::client::result::SdkError<
14702 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14703 R,
14704 >,
14705 ) -> Self {
14706 match err {
14707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14710 source: err.into(),
14711 }),
14712 }
14713 }
14714}
14715impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
14716 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
14717 match err {
14718 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
14719 Error::Unhandled(inner)
14720 }
14721 }
14722 }
14723}
14724impl<R>
14725 From<
14726 ::aws_smithy_runtime_api::client::result::SdkError<
14727 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14728 R,
14729 >,
14730 > for Error
14731where
14732 R: Send + Sync + std::fmt::Debug + 'static,
14733{
14734 fn from(
14735 err: ::aws_smithy_runtime_api::client::result::SdkError<
14736 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14737 R,
14738 >,
14739 ) -> Self {
14740 match err {
14741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14744 source: err.into(),
14745 }),
14746 }
14747 }
14748}
14749impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
14750 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
14751 match err {
14752 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
14753 inner,
14754 ) => Error::Unhandled(inner),
14755 }
14756 }
14757}
14758impl<R>
14759 From<
14760 ::aws_smithy_runtime_api::client::result::SdkError<
14761 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14762 R,
14763 >,
14764 > for Error
14765where
14766 R: Send + Sync + std::fmt::Debug + 'static,
14767{
14768 fn from(
14769 err: ::aws_smithy_runtime_api::client::result::SdkError<
14770 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14771 R,
14772 >,
14773 ) -> Self {
14774 match err {
14775 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14776 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14777 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14778 source: err.into(),
14779 }),
14780 }
14781 }
14782}
14783impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
14784 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
14785 match err {
14786 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
14787 Error::Unhandled(inner)
14788 }
14789 }
14790 }
14791}
14792impl<R>
14793 From<
14794 ::aws_smithy_runtime_api::client::result::SdkError<
14795 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14796 R,
14797 >,
14798 > for Error
14799where
14800 R: Send + Sync + std::fmt::Debug + 'static,
14801{
14802 fn from(
14803 err: ::aws_smithy_runtime_api::client::result::SdkError<
14804 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14805 R,
14806 >,
14807 ) -> Self {
14808 match err {
14809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14812 source: err.into(),
14813 }),
14814 }
14815 }
14816}
14817impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
14818 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
14819 match err {
14820 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
14821 Error::Unhandled(inner)
14822 }
14823 }
14824 }
14825}
14826impl<R>
14827 From<
14828 ::aws_smithy_runtime_api::client::result::SdkError<
14829 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14830 R,
14831 >,
14832 > for Error
14833where
14834 R: Send + Sync + std::fmt::Debug + 'static,
14835{
14836 fn from(
14837 err: ::aws_smithy_runtime_api::client::result::SdkError<
14838 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14839 R,
14840 >,
14841 ) -> Self {
14842 match err {
14843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14846 source: err.into(),
14847 }),
14848 }
14849 }
14850}
14851impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
14852 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
14853 match err {
14854 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
14855 Error::Unhandled(inner)
14856 }
14857 }
14858 }
14859}
14860impl<R>
14861 From<
14862 ::aws_smithy_runtime_api::client::result::SdkError<
14863 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14864 R,
14865 >,
14866 > for Error
14867where
14868 R: Send + Sync + std::fmt::Debug + 'static,
14869{
14870 fn from(
14871 err: ::aws_smithy_runtime_api::client::result::SdkError<
14872 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14873 R,
14874 >,
14875 ) -> Self {
14876 match err {
14877 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14878 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14879 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14880 source: err.into(),
14881 }),
14882 }
14883 }
14884}
14885impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
14886 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
14887 match err {
14888 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
14889 Error::Unhandled(inner)
14890 }
14891 }
14892 }
14893}
14894impl<R>
14895 From<
14896 ::aws_smithy_runtime_api::client::result::SdkError<
14897 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14898 R,
14899 >,
14900 > for Error
14901where
14902 R: Send + Sync + std::fmt::Debug + 'static,
14903{
14904 fn from(
14905 err: ::aws_smithy_runtime_api::client::result::SdkError<
14906 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14907 R,
14908 >,
14909 ) -> Self {
14910 match err {
14911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14914 source: err.into(),
14915 }),
14916 }
14917 }
14918}
14919impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
14920 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
14921 match err {
14922 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
14923 Error::Unhandled(inner)
14924 }
14925 }
14926 }
14927}
14928impl<R>
14929 From<
14930 ::aws_smithy_runtime_api::client::result::SdkError<
14931 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14932 R,
14933 >,
14934 > for Error
14935where
14936 R: Send + Sync + std::fmt::Debug + 'static,
14937{
14938 fn from(
14939 err: ::aws_smithy_runtime_api::client::result::SdkError<
14940 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14941 R,
14942 >,
14943 ) -> Self {
14944 match err {
14945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14948 source: err.into(),
14949 }),
14950 }
14951 }
14952}
14953impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
14954 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
14955 match err {
14956 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14957 }
14958 }
14959}
14960impl<R>
14961 From<
14962 ::aws_smithy_runtime_api::client::result::SdkError<
14963 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14964 R,
14965 >,
14966 > for Error
14967where
14968 R: Send + Sync + std::fmt::Debug + 'static,
14969{
14970 fn from(
14971 err: ::aws_smithy_runtime_api::client::result::SdkError<
14972 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14973 R,
14974 >,
14975 ) -> Self {
14976 match err {
14977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14980 source: err.into(),
14981 }),
14982 }
14983 }
14984}
14985impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
14986 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
14987 match err {
14988 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
14989 Error::Unhandled(inner)
14990 }
14991 }
14992 }
14993}
14994impl<R>
14995 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
14996 for Error
14997where
14998 R: Send + Sync + std::fmt::Debug + 'static,
14999{
15000 fn from(
15001 err: ::aws_smithy_runtime_api::client::result::SdkError<
15002 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
15003 R,
15004 >,
15005 ) -> Self {
15006 match err {
15007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15010 source: err.into(),
15011 }),
15012 }
15013 }
15014}
15015impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
15016 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
15017 match err {
15018 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
15019 }
15020 }
15021}
15022impl<R>
15023 From<
15024 ::aws_smithy_runtime_api::client::result::SdkError<
15025 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15026 R,
15027 >,
15028 > for Error
15029where
15030 R: Send + Sync + std::fmt::Debug + 'static,
15031{
15032 fn from(
15033 err: ::aws_smithy_runtime_api::client::result::SdkError<
15034 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15035 R,
15036 >,
15037 ) -> Self {
15038 match err {
15039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15042 source: err.into(),
15043 }),
15044 }
15045 }
15046}
15047impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
15048 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
15049 match err {
15050 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
15051 Error::Unhandled(inner)
15052 }
15053 }
15054 }
15055}
15056impl<R>
15057 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
15058 for Error
15059where
15060 R: Send + Sync + std::fmt::Debug + 'static,
15061{
15062 fn from(
15063 err: ::aws_smithy_runtime_api::client::result::SdkError<
15064 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
15065 R,
15066 >,
15067 ) -> Self {
15068 match err {
15069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15072 source: err.into(),
15073 }),
15074 }
15075 }
15076}
15077impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
15078 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
15079 match err {
15080 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
15081 }
15082 }
15083}
15084impl<R>
15085 From<
15086 ::aws_smithy_runtime_api::client::result::SdkError<
15087 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15088 R,
15089 >,
15090 > for Error
15091where
15092 R: Send + Sync + std::fmt::Debug + 'static,
15093{
15094 fn from(
15095 err: ::aws_smithy_runtime_api::client::result::SdkError<
15096 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15097 R,
15098 >,
15099 ) -> Self {
15100 match err {
15101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15104 source: err.into(),
15105 }),
15106 }
15107 }
15108}
15109impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
15110 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
15111 match err {
15112 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
15113 }
15114 }
15115}
15116impl<R>
15117 From<
15118 ::aws_smithy_runtime_api::client::result::SdkError<
15119 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15120 R,
15121 >,
15122 > for Error
15123where
15124 R: Send + Sync + std::fmt::Debug + 'static,
15125{
15126 fn from(
15127 err: ::aws_smithy_runtime_api::client::result::SdkError<
15128 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15129 R,
15130 >,
15131 ) -> Self {
15132 match err {
15133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15136 source: err.into(),
15137 }),
15138 }
15139 }
15140}
15141impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
15142 fn from(
15143 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15144 ) -> Self {
15145 match err {
15146 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
15147 }
15148 }
15149}
15150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
15151where
15152 R: Send + Sync + std::fmt::Debug + 'static,
15153{
15154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> 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::import_image::ImportImageError> for Error {
15165 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
15166 match err {
15167 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
15168 }
15169 }
15170}
15171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>> for Error
15172where
15173 R: Send + Sync + std::fmt::Debug + 'static,
15174{
15175 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, R>) -> Self {
15176 match err {
15177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15180 source: err.into(),
15181 }),
15182 }
15183 }
15184}
15185impl From<crate::operation::import_instance::ImportInstanceError> for Error {
15186 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
15187 match err {
15188 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
15189 }
15190 }
15191}
15192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>> for Error
15193where
15194 R: Send + Sync + std::fmt::Debug + 'static,
15195{
15196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, R>) -> Self {
15197 match err {
15198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15201 source: err.into(),
15202 }),
15203 }
15204 }
15205}
15206impl From<crate::operation::import_key_pair::ImportKeyPairError> for Error {
15207 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
15208 match err {
15209 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
15210 }
15211 }
15212}
15213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>> for Error
15214where
15215 R: Send + Sync + std::fmt::Debug + 'static,
15216{
15217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, R>) -> Self {
15218 match err {
15219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15222 source: err.into(),
15223 }),
15224 }
15225 }
15226}
15227impl From<crate::operation::import_snapshot::ImportSnapshotError> for Error {
15228 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
15229 match err {
15230 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15231 }
15232 }
15233}
15234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>> for Error
15235where
15236 R: Send + Sync + std::fmt::Debug + 'static,
15237{
15238 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, R>) -> Self {
15239 match err {
15240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15243 source: err.into(),
15244 }),
15245 }
15246 }
15247}
15248impl From<crate::operation::import_volume::ImportVolumeError> for Error {
15249 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
15250 match err {
15251 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
15252 }
15253 }
15254}
15255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
15256 for Error
15257where
15258 R: Send + Sync + std::fmt::Debug + 'static,
15259{
15260 fn from(
15261 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
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::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
15273 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
15274 match err {
15275 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15276 }
15277 }
15278}
15279impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
15280 for Error
15281where
15282 R: Send + Sync + std::fmt::Debug + 'static,
15283{
15284 fn from(
15285 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
15286 ) -> Self {
15287 match err {
15288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15291 source: err.into(),
15292 }),
15293 }
15294 }
15295}
15296impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
15297 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
15298 match err {
15299 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15300 }
15301 }
15302}
15303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
15304where
15305 R: Send + Sync + std::fmt::Debug + 'static,
15306{
15307 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> Self {
15308 match err {
15309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15312 source: err.into(),
15313 }),
15314 }
15315 }
15316}
15317impl From<crate::operation::lock_snapshot::LockSnapshotError> for Error {
15318 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
15319 match err {
15320 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15321 }
15322 }
15323}
15324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
15325where
15326 R: Send + Sync + std::fmt::Debug + 'static,
15327{
15328 fn from(
15329 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
15330 ) -> Self {
15331 match err {
15332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15335 source: err.into(),
15336 }),
15337 }
15338 }
15339}
15340impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
15341 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
15342 match err {
15343 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15344 }
15345 }
15346}
15347impl<R>
15348 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
15349 for Error
15350where
15351 R: Send + Sync + std::fmt::Debug + 'static,
15352{
15353 fn from(
15354 err: ::aws_smithy_runtime_api::client::result::SdkError<
15355 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
15356 R,
15357 >,
15358 ) -> Self {
15359 match err {
15360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15363 source: err.into(),
15364 }),
15365 }
15366 }
15367}
15368impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
15369 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
15370 match err {
15371 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
15372 }
15373 }
15374}
15375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
15376 for Error
15377where
15378 R: Send + Sync + std::fmt::Debug + 'static,
15379{
15380 fn from(
15381 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
15382 ) -> Self {
15383 match err {
15384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15387 source: err.into(),
15388 }),
15389 }
15390 }
15391}
15392impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
15393 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
15394 match err {
15395 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
15396 }
15397 }
15398}
15399impl<R>
15400 From<
15401 ::aws_smithy_runtime_api::client::result::SdkError<
15402 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15403 R,
15404 >,
15405 > for Error
15406where
15407 R: Send + Sync + std::fmt::Debug + 'static,
15408{
15409 fn from(
15410 err: ::aws_smithy_runtime_api::client::result::SdkError<
15411 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15412 R,
15413 >,
15414 ) -> Self {
15415 match err {
15416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15419 source: err.into(),
15420 }),
15421 }
15422 }
15423}
15424impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
15425 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
15426 match err {
15427 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
15428 }
15429 }
15430}
15431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
15432 for Error
15433where
15434 R: Send + Sync + std::fmt::Debug + 'static,
15435{
15436 fn from(
15437 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
15438 ) -> Self {
15439 match err {
15440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15443 source: err.into(),
15444 }),
15445 }
15446 }
15447}
15448impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
15449 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
15450 match err {
15451 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15452 }
15453 }
15454}
15455impl<R>
15456 From<
15457 ::aws_smithy_runtime_api::client::result::SdkError<
15458 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15459 R,
15460 >,
15461 > for Error
15462where
15463 R: Send + Sync + std::fmt::Debug + 'static,
15464{
15465 fn from(
15466 err: ::aws_smithy_runtime_api::client::result::SdkError<
15467 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15468 R,
15469 >,
15470 ) -> Self {
15471 match err {
15472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15475 source: err.into(),
15476 }),
15477 }
15478 }
15479}
15480impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
15481 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
15482 match err {
15483 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
15484 }
15485 }
15486}
15487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
15488 for Error
15489where
15490 R: Send + Sync + std::fmt::Debug + 'static,
15491{
15492 fn from(
15493 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
15494 ) -> Self {
15495 match err {
15496 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15497 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15498 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15499 source: err.into(),
15500 }),
15501 }
15502 }
15503}
15504impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
15505 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
15506 match err {
15507 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
15508 }
15509 }
15510}
15511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
15512where
15513 R: Send + Sync + std::fmt::Debug + 'static,
15514{
15515 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> Self {
15516 match err {
15517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15520 source: err.into(),
15521 }),
15522 }
15523 }
15524}
15525impl From<crate::operation::modify_fleet::ModifyFleetError> for Error {
15526 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
15527 match err {
15528 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
15529 }
15530 }
15531}
15532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
15533 for Error
15534where
15535 R: Send + Sync + std::fmt::Debug + 'static,
15536{
15537 fn from(
15538 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
15539 ) -> Self {
15540 match err {
15541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15544 source: err.into(),
15545 }),
15546 }
15547 }
15548}
15549impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
15550 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
15551 match err {
15552 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15553 }
15554 }
15555}
15556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
15557where
15558 R: Send + Sync + std::fmt::Debug + 'static,
15559{
15560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> Self {
15561 match err {
15562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15565 source: err.into(),
15566 }),
15567 }
15568 }
15569}
15570impl From<crate::operation::modify_hosts::ModifyHostsError> for Error {
15571 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
15572 match err {
15573 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
15574 }
15575 }
15576}
15577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
15578 for Error
15579where
15580 R: Send + Sync + std::fmt::Debug + 'static,
15581{
15582 fn from(
15583 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
15584 ) -> Self {
15585 match err {
15586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15589 source: err.into(),
15590 }),
15591 }
15592 }
15593}
15594impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
15595 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
15596 match err {
15597 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15598 }
15599 }
15600}
15601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
15602where
15603 R: Send + Sync + std::fmt::Debug + 'static,
15604{
15605 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> Self {
15606 match err {
15607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15610 source: err.into(),
15611 }),
15612 }
15613 }
15614}
15615impl From<crate::operation::modify_id_format::ModifyIdFormatError> for Error {
15616 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
15617 match err {
15618 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15619 }
15620 }
15621}
15622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>> for Error
15623where
15624 R: Send + Sync + std::fmt::Debug + 'static,
15625{
15626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, R>) -> Self {
15627 match err {
15628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15631 source: err.into(),
15632 }),
15633 }
15634 }
15635}
15636impl From<crate::operation::modify_image_attribute::ModifyImageAttributeError> for Error {
15637 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
15638 match err {
15639 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15640 }
15641 }
15642}
15643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
15644 for Error
15645where
15646 R: Send + Sync + std::fmt::Debug + 'static,
15647{
15648 fn from(
15649 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
15650 ) -> Self {
15651 match err {
15652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15655 source: err.into(),
15656 }),
15657 }
15658 }
15659}
15660impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
15661 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
15662 match err {
15663 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15664 }
15665 }
15666}
15667impl<R>
15668 From<
15669 ::aws_smithy_runtime_api::client::result::SdkError<
15670 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15671 R,
15672 >,
15673 > for Error
15674where
15675 R: Send + Sync + std::fmt::Debug + 'static,
15676{
15677 fn from(
15678 err: ::aws_smithy_runtime_api::client::result::SdkError<
15679 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15680 R,
15681 >,
15682 ) -> Self {
15683 match err {
15684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15687 source: err.into(),
15688 }),
15689 }
15690 }
15691}
15692impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
15693 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
15694 match err {
15695 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
15696 Error::Unhandled(inner)
15697 }
15698 }
15699 }
15700}
15701impl<R>
15702 From<
15703 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
15704 > for Error
15705where
15706 R: Send + Sync + std::fmt::Debug + 'static,
15707{
15708 fn from(
15709 err: ::aws_smithy_runtime_api::client::result::SdkError<
15710 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
15711 R,
15712 >,
15713 ) -> Self {
15714 match err {
15715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15718 source: err.into(),
15719 }),
15720 }
15721 }
15722}
15723impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
15724 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
15725 match err {
15726 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15727 }
15728 }
15729}
15730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
15731 for Error
15732where
15733 R: Send + Sync + std::fmt::Debug + 'static,
15734{
15735 fn from(
15736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
15737 ) -> Self {
15738 match err {
15739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15742 source: err.into(),
15743 }),
15744 }
15745 }
15746}
15747impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
15748 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
15749 match err {
15750 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15751 }
15752 }
15753}
15754impl<R>
15755 From<
15756 ::aws_smithy_runtime_api::client::result::SdkError<
15757 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15758 R,
15759 >,
15760 > for Error
15761where
15762 R: Send + Sync + std::fmt::Debug + 'static,
15763{
15764 fn from(
15765 err: ::aws_smithy_runtime_api::client::result::SdkError<
15766 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15767 R,
15768 >,
15769 ) -> Self {
15770 match err {
15771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15774 source: err.into(),
15775 }),
15776 }
15777 }
15778}
15779impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
15780 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
15781 match err {
15782 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
15783 Error::Unhandled(inner)
15784 }
15785 }
15786 }
15787}
15788impl<R>
15789 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
15790 for Error
15791where
15792 R: Send + Sync + std::fmt::Debug + 'static,
15793{
15794 fn from(
15795 err: ::aws_smithy_runtime_api::client::result::SdkError<
15796 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
15797 R,
15798 >,
15799 ) -> Self {
15800 match err {
15801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15804 source: err.into(),
15805 }),
15806 }
15807 }
15808}
15809impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
15810 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
15811 match err {
15812 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
15813 }
15814 }
15815}
15816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
15817 for Error
15818where
15819 R: Send + Sync + std::fmt::Debug + 'static,
15820{
15821 fn from(
15822 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
15823 ) -> Self {
15824 match err {
15825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15828 source: err.into(),
15829 }),
15830 }
15831 }
15832}
15833impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
15834 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
15835 match err {
15836 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
15837 }
15838 }
15839}
15840impl<R>
15841 From<
15842 ::aws_smithy_runtime_api::client::result::SdkError<
15843 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15844 R,
15845 >,
15846 > for Error
15847where
15848 R: Send + Sync + std::fmt::Debug + 'static,
15849{
15850 fn from(
15851 err: ::aws_smithy_runtime_api::client::result::SdkError<
15852 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15853 R,
15854 >,
15855 ) -> Self {
15856 match err {
15857 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15858 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15859 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15860 source: err.into(),
15861 }),
15862 }
15863 }
15864}
15865impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
15866 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
15867 match err {
15868 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15869 }
15870 }
15871}
15872impl<R>
15873 From<
15874 ::aws_smithy_runtime_api::client::result::SdkError<
15875 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15876 R,
15877 >,
15878 > for Error
15879where
15880 R: Send + Sync + std::fmt::Debug + 'static,
15881{
15882 fn from(
15883 err: ::aws_smithy_runtime_api::client::result::SdkError<
15884 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15885 R,
15886 >,
15887 ) -> Self {
15888 match err {
15889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15892 source: err.into(),
15893 }),
15894 }
15895 }
15896}
15897impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
15898 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
15899 match err {
15900 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
15901 }
15902 }
15903}
15904impl<R>
15905 From<
15906 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
15907 > for Error
15908where
15909 R: Send + Sync + std::fmt::Debug + 'static,
15910{
15911 fn from(
15912 err: ::aws_smithy_runtime_api::client::result::SdkError<
15913 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
15914 R,
15915 >,
15916 ) -> Self {
15917 match err {
15918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15921 source: err.into(),
15922 }),
15923 }
15924 }
15925}
15926impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
15927 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
15928 match err {
15929 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15930 }
15931 }
15932}
15933impl<R>
15934 From<
15935 ::aws_smithy_runtime_api::client::result::SdkError<
15936 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15937 R,
15938 >,
15939 > for Error
15940where
15941 R: Send + Sync + std::fmt::Debug + 'static,
15942{
15943 fn from(
15944 err: ::aws_smithy_runtime_api::client::result::SdkError<
15945 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15946 R,
15947 >,
15948 ) -> Self {
15949 match err {
15950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15953 source: err.into(),
15954 }),
15955 }
15956 }
15957}
15958impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
15959 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
15960 match err {
15961 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
15962 Error::Unhandled(inner)
15963 }
15964 }
15965 }
15966}
15967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
15968 for Error
15969where
15970 R: Send + Sync + std::fmt::Debug + 'static,
15971{
15972 fn from(
15973 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
15974 ) -> Self {
15975 match err {
15976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15979 source: err.into(),
15980 }),
15981 }
15982 }
15983}
15984impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
15985 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
15986 match err {
15987 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
15988 }
15989 }
15990}
15991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
15992where
15993 R: Send + Sync + std::fmt::Debug + 'static,
15994{
15995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> Self {
15996 match err {
15997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16000 source: err.into(),
16001 }),
16002 }
16003 }
16004}
16005impl From<crate::operation::modify_ipam::ModifyIpamError> for Error {
16006 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
16007 match err {
16008 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
16009 }
16010 }
16011}
16012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>> for Error
16013where
16014 R: Send + Sync + std::fmt::Debug + 'static,
16015{
16016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, R>) -> Self {
16017 match err {
16018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16021 source: err.into(),
16022 }),
16023 }
16024 }
16025}
16026impl From<crate::operation::modify_ipam_pool::ModifyIpamPoolError> for Error {
16027 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
16028 match err {
16029 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
16030 }
16031 }
16032}
16033impl<R>
16034 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
16035 for Error
16036where
16037 R: Send + Sync + std::fmt::Debug + 'static,
16038{
16039 fn from(
16040 err: ::aws_smithy_runtime_api::client::result::SdkError<
16041 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
16042 R,
16043 >,
16044 ) -> Self {
16045 match err {
16046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16049 source: err.into(),
16050 }),
16051 }
16052 }
16053}
16054impl From<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
16055 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
16056 match err {
16057 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
16058 }
16059 }
16060}
16061impl<R>
16062 From<
16063 ::aws_smithy_runtime_api::client::result::SdkError<
16064 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16065 R,
16066 >,
16067 > for Error
16068where
16069 R: Send + Sync + std::fmt::Debug + 'static,
16070{
16071 fn from(
16072 err: ::aws_smithy_runtime_api::client::result::SdkError<
16073 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16074 R,
16075 >,
16076 ) -> Self {
16077 match err {
16078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16081 source: err.into(),
16082 }),
16083 }
16084 }
16085}
16086impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
16087 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
16088 match err {
16089 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
16090 Error::Unhandled(inner)
16091 }
16092 }
16093 }
16094}
16095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
16096 for Error
16097where
16098 R: Send + Sync + std::fmt::Debug + 'static,
16099{
16100 fn from(
16101 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
16102 ) -> Self {
16103 match err {
16104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16107 source: err.into(),
16108 }),
16109 }
16110 }
16111}
16112impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
16113 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
16114 match err {
16115 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
16116 }
16117 }
16118}
16119impl<R>
16120 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
16121 for Error
16122where
16123 R: Send + Sync + std::fmt::Debug + 'static,
16124{
16125 fn from(
16126 err: ::aws_smithy_runtime_api::client::result::SdkError<
16127 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
16128 R,
16129 >,
16130 ) -> Self {
16131 match err {
16132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16135 source: err.into(),
16136 }),
16137 }
16138 }
16139}
16140impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
16141 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
16142 match err {
16143 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
16144 }
16145 }
16146}
16147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
16148where
16149 R: Send + Sync + std::fmt::Debug + 'static,
16150{
16151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> Self {
16152 match err {
16153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16156 source: err.into(),
16157 }),
16158 }
16159 }
16160}
16161impl From<crate::operation::modify_ipam_scope::ModifyIpamScopeError> for Error {
16162 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
16163 match err {
16164 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
16165 }
16166 }
16167}
16168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>> for Error
16169where
16170 R: Send + Sync + std::fmt::Debug + 'static,
16171{
16172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, R>) -> Self {
16173 match err {
16174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16177 source: err.into(),
16178 }),
16179 }
16180 }
16181}
16182impl From<crate::operation::modify_launch_template::ModifyLaunchTemplateError> for Error {
16183 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
16184 match err {
16185 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
16186 }
16187 }
16188}
16189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
16190 for Error
16191where
16192 R: Send + Sync + std::fmt::Debug + 'static,
16193{
16194 fn from(
16195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
16196 ) -> Self {
16197 match err {
16198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16201 source: err.into(),
16202 }),
16203 }
16204 }
16205}
16206impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
16207 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
16208 match err {
16209 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
16210 }
16211 }
16212}
16213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
16214 for Error
16215where
16216 R: Send + Sync + std::fmt::Debug + 'static,
16217{
16218 fn from(
16219 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
16220 ) -> Self {
16221 match err {
16222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16225 source: err.into(),
16226 }),
16227 }
16228 }
16229}
16230impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
16231 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
16232 match err {
16233 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
16234 }
16235 }
16236}
16237impl<R>
16238 From<
16239 ::aws_smithy_runtime_api::client::result::SdkError<
16240 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16241 R,
16242 >,
16243 > for Error
16244where
16245 R: Send + Sync + std::fmt::Debug + 'static,
16246{
16247 fn from(
16248 err: ::aws_smithy_runtime_api::client::result::SdkError<
16249 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16250 R,
16251 >,
16252 ) -> Self {
16253 match err {
16254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16257 source: err.into(),
16258 }),
16259 }
16260 }
16261}
16262impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
16263 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
16264 match err {
16265 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16266 }
16267 }
16268}
16269impl<R>
16270 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
16271 for Error
16272where
16273 R: Send + Sync + std::fmt::Debug + 'static,
16274{
16275 fn from(
16276 err: ::aws_smithy_runtime_api::client::result::SdkError<
16277 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
16278 R,
16279 >,
16280 ) -> Self {
16281 match err {
16282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16285 source: err.into(),
16286 }),
16287 }
16288 }
16289}
16290impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
16291 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
16292 match err {
16293 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16294 }
16295 }
16296}
16297impl<R>
16298 From<
16299 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
16300 > for Error
16301where
16302 R: Send + Sync + std::fmt::Debug + 'static,
16303{
16304 fn from(
16305 err: ::aws_smithy_runtime_api::client::result::SdkError<
16306 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
16307 R,
16308 >,
16309 ) -> Self {
16310 match err {
16311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16314 source: err.into(),
16315 }),
16316 }
16317 }
16318}
16319impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
16320 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
16321 match err {
16322 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16323 }
16324 }
16325}
16326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
16327 for Error
16328where
16329 R: Send + Sync + std::fmt::Debug + 'static,
16330{
16331 fn from(
16332 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
16333 ) -> Self {
16334 match err {
16335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16338 source: err.into(),
16339 }),
16340 }
16341 }
16342}
16343impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
16344 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
16345 match err {
16346 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
16347 }
16348 }
16349}
16350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
16351where
16352 R: Send + Sync + std::fmt::Debug + 'static,
16353{
16354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> Self {
16355 match err {
16356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16359 source: err.into(),
16360 }),
16361 }
16362 }
16363}
16364impl From<crate::operation::modify_route_server::ModifyRouteServerError> for Error {
16365 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
16366 match err {
16367 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
16368 }
16369 }
16370}
16371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
16372 for Error
16373where
16374 R: Send + Sync + std::fmt::Debug + 'static,
16375{
16376 fn from(
16377 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
16378 ) -> Self {
16379 match err {
16380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16383 source: err.into(),
16384 }),
16385 }
16386 }
16387}
16388impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
16389 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
16390 match err {
16391 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
16392 }
16393 }
16394}
16395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
16396 for Error
16397where
16398 R: Send + Sync + std::fmt::Debug + 'static,
16399{
16400 fn from(
16401 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
16402 ) -> Self {
16403 match err {
16404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16407 source: err.into(),
16408 }),
16409 }
16410 }
16411}
16412impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
16413 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
16414 match err {
16415 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16416 }
16417 }
16418}
16419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
16420where
16421 R: Send + Sync + std::fmt::Debug + 'static,
16422{
16423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> Self {
16424 match err {
16425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16428 source: err.into(),
16429 }),
16430 }
16431 }
16432}
16433impl From<crate::operation::modify_snapshot_tier::ModifySnapshotTierError> for Error {
16434 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
16435 match err {
16436 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
16437 }
16438 }
16439}
16440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
16441 for Error
16442where
16443 R: Send + Sync + std::fmt::Debug + 'static,
16444{
16445 fn from(
16446 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
16447 ) -> Self {
16448 match err {
16449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16452 source: err.into(),
16453 }),
16454 }
16455 }
16456}
16457impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
16458 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
16459 match err {
16460 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
16461 }
16462 }
16463}
16464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
16465where
16466 R: Send + Sync + std::fmt::Debug + 'static,
16467{
16468 fn from(
16469 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
16470 ) -> Self {
16471 match err {
16472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16475 source: err.into(),
16476 }),
16477 }
16478 }
16479}
16480impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
16481 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
16482 match err {
16483 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16484 }
16485 }
16486}
16487impl<R>
16488 From<
16489 ::aws_smithy_runtime_api::client::result::SdkError<
16490 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16491 R,
16492 >,
16493 > for Error
16494where
16495 R: Send + Sync + std::fmt::Debug + 'static,
16496{
16497 fn from(
16498 err: ::aws_smithy_runtime_api::client::result::SdkError<
16499 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16500 R,
16501 >,
16502 ) -> Self {
16503 match err {
16504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16507 source: err.into(),
16508 }),
16509 }
16510 }
16511}
16512impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
16513 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
16514 match err {
16515 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
16516 Error::Unhandled(inner)
16517 }
16518 }
16519 }
16520}
16521impl<R>
16522 From<
16523 ::aws_smithy_runtime_api::client::result::SdkError<
16524 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16525 R,
16526 >,
16527 > for Error
16528where
16529 R: Send + Sync + std::fmt::Debug + 'static,
16530{
16531 fn from(
16532 err: ::aws_smithy_runtime_api::client::result::SdkError<
16533 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16534 R,
16535 >,
16536 ) -> Self {
16537 match err {
16538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16541 source: err.into(),
16542 }),
16543 }
16544 }
16545}
16546impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
16547 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
16548 match err {
16549 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
16550 }
16551 }
16552}
16553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
16554 for Error
16555where
16556 R: Send + Sync + std::fmt::Debug + 'static,
16557{
16558 fn from(
16559 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
16560 ) -> Self {
16561 match err {
16562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16565 source: err.into(),
16566 }),
16567 }
16568 }
16569}
16570impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
16571 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
16572 match err {
16573 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
16574 }
16575 }
16576}
16577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
16578where
16579 R: Send + Sync + std::fmt::Debug + 'static,
16580{
16581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> Self {
16582 match err {
16583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16586 source: err.into(),
16587 }),
16588 }
16589 }
16590}
16591impl From<crate::operation::modify_transit_gateway::ModifyTransitGatewayError> for Error {
16592 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
16593 match err {
16594 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
16595 }
16596 }
16597}
16598impl<R>
16599 From<
16600 ::aws_smithy_runtime_api::client::result::SdkError<
16601 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16602 R,
16603 >,
16604 > for Error
16605where
16606 R: Send + Sync + std::fmt::Debug + 'static,
16607{
16608 fn from(
16609 err: ::aws_smithy_runtime_api::client::result::SdkError<
16610 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16611 R,
16612 >,
16613 ) -> Self {
16614 match err {
16615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16618 source: err.into(),
16619 }),
16620 }
16621 }
16622}
16623impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
16624 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
16625 match err {
16626 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
16627 Error::Unhandled(inner)
16628 }
16629 }
16630 }
16631}
16632impl<R>
16633 From<
16634 ::aws_smithy_runtime_api::client::result::SdkError<
16635 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16636 R,
16637 >,
16638 > for Error
16639where
16640 R: Send + Sync + std::fmt::Debug + 'static,
16641{
16642 fn from(
16643 err: ::aws_smithy_runtime_api::client::result::SdkError<
16644 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16645 R,
16646 >,
16647 ) -> Self {
16648 match err {
16649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16652 source: err.into(),
16653 }),
16654 }
16655 }
16656}
16657impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
16658 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
16659 match err {
16660 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
16661 Error::Unhandled(inner)
16662 }
16663 }
16664 }
16665}
16666impl<R>
16667 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
16668 for Error
16669where
16670 R: Send + Sync + std::fmt::Debug + 'static,
16671{
16672 fn from(
16673 err: ::aws_smithy_runtime_api::client::result::SdkError<
16674 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
16675 R,
16676 >,
16677 ) -> Self {
16678 match err {
16679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16682 source: err.into(),
16683 }),
16684 }
16685 }
16686}
16687impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
16688 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
16689 match err {
16690 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16691 }
16692 }
16693}
16694impl<R>
16695 From<
16696 ::aws_smithy_runtime_api::client::result::SdkError<
16697 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16698 R,
16699 >,
16700 > for Error
16701where
16702 R: Send + Sync + std::fmt::Debug + 'static,
16703{
16704 fn from(
16705 err: ::aws_smithy_runtime_api::client::result::SdkError<
16706 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16707 R,
16708 >,
16709 ) -> Self {
16710 match err {
16711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16714 source: err.into(),
16715 }),
16716 }
16717 }
16718}
16719impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
16720 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
16721 match err {
16722 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
16723 Error::Unhandled(inner)
16724 }
16725 }
16726 }
16727}
16728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
16729 for Error
16730where
16731 R: Send + Sync + std::fmt::Debug + 'static,
16732{
16733 fn from(
16734 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
16735 ) -> Self {
16736 match err {
16737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16740 source: err.into(),
16741 }),
16742 }
16743 }
16744}
16745impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
16746 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
16747 match err {
16748 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
16749 }
16750 }
16751}
16752impl<R>
16753 From<
16754 ::aws_smithy_runtime_api::client::result::SdkError<
16755 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16756 R,
16757 >,
16758 > for Error
16759where
16760 R: Send + Sync + std::fmt::Debug + 'static,
16761{
16762 fn from(
16763 err: ::aws_smithy_runtime_api::client::result::SdkError<
16764 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16765 R,
16766 >,
16767 ) -> Self {
16768 match err {
16769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16772 source: err.into(),
16773 }),
16774 }
16775 }
16776}
16777impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
16778 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
16779 match err {
16780 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16781 }
16782 }
16783}
16784impl<R>
16785 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
16786 for Error
16787where
16788 R: Send + Sync + std::fmt::Debug + 'static,
16789{
16790 fn from(
16791 err: ::aws_smithy_runtime_api::client::result::SdkError<
16792 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
16793 R,
16794 >,
16795 ) -> Self {
16796 match err {
16797 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16798 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16799 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16800 source: err.into(),
16801 }),
16802 }
16803 }
16804}
16805impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
16806 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
16807 match err {
16808 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
16809 }
16810 }
16811}
16812impl<R>
16813 From<
16814 ::aws_smithy_runtime_api::client::result::SdkError<
16815 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16816 R,
16817 >,
16818 > for Error
16819where
16820 R: Send + Sync + std::fmt::Debug + 'static,
16821{
16822 fn from(
16823 err: ::aws_smithy_runtime_api::client::result::SdkError<
16824 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16825 R,
16826 >,
16827 ) -> Self {
16828 match err {
16829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16832 source: err.into(),
16833 }),
16834 }
16835 }
16836}
16837impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
16838 fn from(
16839 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16840 ) -> Self {
16841 match err {
16842 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
16843 }
16844 }
16845}
16846impl<R>
16847 From<
16848 ::aws_smithy_runtime_api::client::result::SdkError<
16849 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16850 R,
16851 >,
16852 > for Error
16853where
16854 R: Send + Sync + std::fmt::Debug + 'static,
16855{
16856 fn from(
16857 err: ::aws_smithy_runtime_api::client::result::SdkError<
16858 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16859 R,
16860 >,
16861 ) -> Self {
16862 match err {
16863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16866 source: err.into(),
16867 }),
16868 }
16869 }
16870}
16871impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
16872 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
16873 match err {
16874 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
16875 Error::Unhandled(inner)
16876 }
16877 }
16878 }
16879}
16880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
16881where
16882 R: Send + Sync + std::fmt::Debug + 'static,
16883{
16884 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> Self {
16885 match err {
16886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16889 source: err.into(),
16890 }),
16891 }
16892 }
16893}
16894impl From<crate::operation::modify_volume::ModifyVolumeError> for Error {
16895 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
16896 match err {
16897 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
16898 }
16899 }
16900}
16901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
16902where
16903 R: Send + Sync + std::fmt::Debug + 'static,
16904{
16905 fn from(
16906 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
16907 ) -> Self {
16908 match err {
16909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16912 source: err.into(),
16913 }),
16914 }
16915 }
16916}
16917impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
16918 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
16919 match err {
16920 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16921 }
16922 }
16923}
16924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
16925where
16926 R: Send + Sync + std::fmt::Debug + 'static,
16927{
16928 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> Self {
16929 match err {
16930 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16931 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16932 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16933 source: err.into(),
16934 }),
16935 }
16936 }
16937}
16938impl From<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError> for Error {
16939 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
16940 match err {
16941 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16942 }
16943 }
16944}
16945impl<R>
16946 From<
16947 ::aws_smithy_runtime_api::client::result::SdkError<
16948 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16949 R,
16950 >,
16951 > for Error
16952where
16953 R: Send + Sync + std::fmt::Debug + 'static,
16954{
16955 fn from(
16956 err: ::aws_smithy_runtime_api::client::result::SdkError<
16957 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16958 R,
16959 >,
16960 ) -> Self {
16961 match err {
16962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16965 source: err.into(),
16966 }),
16967 }
16968 }
16969}
16970impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
16971 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
16972 match err {
16973 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
16974 Error::Unhandled(inner)
16975 }
16976 }
16977 }
16978}
16979impl<R>
16980 From<
16981 ::aws_smithy_runtime_api::client::result::SdkError<
16982 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16983 R,
16984 >,
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<
16991 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16992 R,
16993 >,
16994 ) -> Self {
16995 match err {
16996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16999 source: err.into(),
17000 }),
17001 }
17002 }
17003}
17004impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
17005 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
17006 match err {
17007 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
17008 Error::Unhandled(inner)
17009 }
17010 }
17011 }
17012}
17013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
17014where
17015 R: Send + Sync + std::fmt::Debug + 'static,
17016{
17017 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
17018 match err {
17019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17022 source: err.into(),
17023 }),
17024 }
17025 }
17026}
17027impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
17028 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
17029 match err {
17030 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17031 }
17032 }
17033}
17034impl<R>
17035 From<
17036 ::aws_smithy_runtime_api::client::result::SdkError<
17037 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17038 R,
17039 >,
17040 > for Error
17041where
17042 R: Send + Sync + std::fmt::Debug + 'static,
17043{
17044 fn from(
17045 err: ::aws_smithy_runtime_api::client::result::SdkError<
17046 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17047 R,
17048 >,
17049 ) -> Self {
17050 match err {
17051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17054 source: err.into(),
17055 }),
17056 }
17057 }
17058}
17059impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
17060 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
17061 match err {
17062 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
17063 Error::Unhandled(inner)
17064 }
17065 }
17066 }
17067}
17068impl<R>
17069 From<
17070 ::aws_smithy_runtime_api::client::result::SdkError<
17071 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17072 R,
17073 >,
17074 > for Error
17075where
17076 R: Send + Sync + std::fmt::Debug + 'static,
17077{
17078 fn from(
17079 err: ::aws_smithy_runtime_api::client::result::SdkError<
17080 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17081 R,
17082 >,
17083 ) -> Self {
17084 match err {
17085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17088 source: err.into(),
17089 }),
17090 }
17091 }
17092}
17093impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
17094 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
17095 match err {
17096 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
17097 Error::Unhandled(inner)
17098 }
17099 }
17100 }
17101}
17102impl<R>
17103 From<
17104 ::aws_smithy_runtime_api::client::result::SdkError<
17105 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17106 R,
17107 >,
17108 > for Error
17109where
17110 R: Send + Sync + std::fmt::Debug + 'static,
17111{
17112 fn from(
17113 err: ::aws_smithy_runtime_api::client::result::SdkError<
17114 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17115 R,
17116 >,
17117 ) -> Self {
17118 match err {
17119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17122 source: err.into(),
17123 }),
17124 }
17125 }
17126}
17127impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
17128 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
17129 match err {
17130 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
17131 inner,
17132 ) => Error::Unhandled(inner),
17133 }
17134 }
17135}
17136impl<R>
17137 From<
17138 ::aws_smithy_runtime_api::client::result::SdkError<
17139 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17140 R,
17141 >,
17142 > for Error
17143where
17144 R: Send + Sync + std::fmt::Debug + 'static,
17145{
17146 fn from(
17147 err: ::aws_smithy_runtime_api::client::result::SdkError<
17148 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17149 R,
17150 >,
17151 ) -> Self {
17152 match err {
17153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17156 source: err.into(),
17157 }),
17158 }
17159 }
17160}
17161impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
17162 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
17163 match err {
17164 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
17165 Error::Unhandled(inner)
17166 }
17167 }
17168 }
17169}
17170impl<R>
17171 From<
17172 ::aws_smithy_runtime_api::client::result::SdkError<
17173 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17174 R,
17175 >,
17176 > for Error
17177where
17178 R: Send + Sync + std::fmt::Debug + 'static,
17179{
17180 fn from(
17181 err: ::aws_smithy_runtime_api::client::result::SdkError<
17182 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17183 R,
17184 >,
17185 ) -> Self {
17186 match err {
17187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17190 source: err.into(),
17191 }),
17192 }
17193 }
17194}
17195impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
17196 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
17197 match err {
17198 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
17199 Error::Unhandled(inner)
17200 }
17201 }
17202 }
17203}
17204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
17205where
17206 R: Send + Sync + std::fmt::Debug + 'static,
17207{
17208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
17209 match err {
17210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17213 source: err.into(),
17214 }),
17215 }
17216 }
17217}
17218impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
17219 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
17220 match err {
17221 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
17222 }
17223 }
17224}
17225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>> for Error
17226where
17227 R: Send + Sync + std::fmt::Debug + 'static,
17228{
17229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, R>) -> Self {
17230 match err {
17231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17234 source: err.into(),
17235 }),
17236 }
17237 }
17238}
17239impl From<crate::operation::modify_vpn_connection::ModifyVpnConnectionError> for Error {
17240 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
17241 match err {
17242 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17243 }
17244 }
17245}
17246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
17247 for Error
17248where
17249 R: Send + Sync + std::fmt::Debug + 'static,
17250{
17251 fn from(
17252 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
17253 ) -> Self {
17254 match err {
17255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17258 source: err.into(),
17259 }),
17260 }
17261 }
17262}
17263impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
17264 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
17265 match err {
17266 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17267 }
17268 }
17269}
17270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
17271 for Error
17272where
17273 R: Send + Sync + std::fmt::Debug + 'static,
17274{
17275 fn from(
17276 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
17277 ) -> Self {
17278 match err {
17279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17282 source: err.into(),
17283 }),
17284 }
17285 }
17286}
17287impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
17288 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
17289 match err {
17290 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
17291 }
17292 }
17293}
17294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
17295 for Error
17296where
17297 R: Send + Sync + std::fmt::Debug + 'static,
17298{
17299 fn from(
17300 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
17301 ) -> Self {
17302 match err {
17303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17306 source: err.into(),
17307 }),
17308 }
17309 }
17310}
17311impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
17312 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
17313 match err {
17314 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17315 }
17316 }
17317}
17318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
17319where
17320 R: Send + Sync + std::fmt::Debug + 'static,
17321{
17322 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> Self {
17323 match err {
17324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17327 source: err.into(),
17328 }),
17329 }
17330 }
17331}
17332impl From<crate::operation::monitor_instances::MonitorInstancesError> for Error {
17333 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
17334 match err {
17335 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17336 }
17337 }
17338}
17339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>> for Error
17340where
17341 R: Send + Sync + std::fmt::Debug + 'static,
17342{
17343 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, R>) -> Self {
17344 match err {
17345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17348 source: err.into(),
17349 }),
17350 }
17351 }
17352}
17353impl From<crate::operation::move_address_to_vpc::MoveAddressToVpcError> for Error {
17354 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
17355 match err {
17356 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
17357 }
17358 }
17359}
17360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>> for Error
17361where
17362 R: Send + Sync + std::fmt::Debug + 'static,
17363{
17364 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, R>) -> Self {
17365 match err {
17366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17369 source: err.into(),
17370 }),
17371 }
17372 }
17373}
17374impl From<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
17375 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
17376 match err {
17377 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
17378 }
17379 }
17380}
17381impl<R>
17382 From<
17383 ::aws_smithy_runtime_api::client::result::SdkError<
17384 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17385 R,
17386 >,
17387 > for Error
17388where
17389 R: Send + Sync + std::fmt::Debug + 'static,
17390{
17391 fn from(
17392 err: ::aws_smithy_runtime_api::client::result::SdkError<
17393 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17394 R,
17395 >,
17396 ) -> Self {
17397 match err {
17398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17401 source: err.into(),
17402 }),
17403 }
17404 }
17405}
17406impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
17407 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
17408 match err {
17409 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17410 }
17411 }
17412}
17413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
17414where
17415 R: Send + Sync + std::fmt::Debug + 'static,
17416{
17417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
17418 match err {
17419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17422 source: err.into(),
17423 }),
17424 }
17425 }
17426}
17427impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
17428 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
17429 match err {
17430 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
17431 }
17432 }
17433}
17434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>> for Error
17435where
17436 R: Send + Sync + std::fmt::Debug + 'static,
17437{
17438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, R>) -> Self {
17439 match err {
17440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17443 source: err.into(),
17444 }),
17445 }
17446 }
17447}
17448impl From<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError> for Error {
17449 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
17450 match err {
17451 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
17452 }
17453 }
17454}
17455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
17456where
17457 R: Send + Sync + std::fmt::Debug + 'static,
17458{
17459 fn from(
17460 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
17461 ) -> Self {
17462 match err {
17463 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17464 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17465 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17466 source: err.into(),
17467 }),
17468 }
17469 }
17470}
17471impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
17472 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
17473 match err {
17474 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17475 }
17476 }
17477}
17478impl<R>
17479 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
17480 for Error
17481where
17482 R: Send + Sync + std::fmt::Debug + 'static,
17483{
17484 fn from(
17485 err: ::aws_smithy_runtime_api::client::result::SdkError<
17486 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
17487 R,
17488 >,
17489 ) -> Self {
17490 match err {
17491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17494 source: err.into(),
17495 }),
17496 }
17497 }
17498}
17499impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
17500 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
17501 match err {
17502 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17503 }
17504 }
17505}
17506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
17507where
17508 R: Send + Sync + std::fmt::Debug + 'static,
17509{
17510 fn from(
17511 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
17512 ) -> Self {
17513 match err {
17514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17517 source: err.into(),
17518 }),
17519 }
17520 }
17521}
17522impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
17523 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
17524 match err {
17525 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
17526 }
17527 }
17528}
17529impl<R>
17530 From<
17531 ::aws_smithy_runtime_api::client::result::SdkError<
17532 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17533 R,
17534 >,
17535 > for Error
17536where
17537 R: Send + Sync + std::fmt::Debug + 'static,
17538{
17539 fn from(
17540 err: ::aws_smithy_runtime_api::client::result::SdkError<
17541 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17542 R,
17543 >,
17544 ) -> Self {
17545 match err {
17546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17549 source: err.into(),
17550 }),
17551 }
17552 }
17553}
17554impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
17555 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
17556 match err {
17557 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
17558 }
17559 }
17560}
17561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
17562 for Error
17563where
17564 R: Send + Sync + std::fmt::Debug + 'static,
17565{
17566 fn from(
17567 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
17568 ) -> Self {
17569 match err {
17570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17573 source: err.into(),
17574 }),
17575 }
17576 }
17577}
17578impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
17579 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
17580 match err {
17581 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
17582 }
17583 }
17584}
17585impl<R>
17586 From<
17587 ::aws_smithy_runtime_api::client::result::SdkError<
17588 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17589 R,
17590 >,
17591 > for Error
17592where
17593 R: Send + Sync + std::fmt::Debug + 'static,
17594{
17595 fn from(
17596 err: ::aws_smithy_runtime_api::client::result::SdkError<
17597 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17598 R,
17599 >,
17600 ) -> Self {
17601 match err {
17602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17605 source: err.into(),
17606 }),
17607 }
17608 }
17609}
17610impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
17611 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
17612 match err {
17613 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
17614 Error::Unhandled(inner)
17615 }
17616 }
17617 }
17618}
17619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
17620 for Error
17621where
17622 R: Send + Sync + std::fmt::Debug + 'static,
17623{
17624 fn from(
17625 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
17626 ) -> Self {
17627 match err {
17628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17631 source: err.into(),
17632 }),
17633 }
17634 }
17635}
17636impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
17637 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
17638 match err {
17639 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17640 }
17641 }
17642}
17643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
17644where
17645 R: Send + Sync + std::fmt::Debug + 'static,
17646{
17647 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> Self {
17648 match err {
17649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17652 source: err.into(),
17653 }),
17654 }
17655 }
17656}
17657impl From<crate::operation::reboot_instances::RebootInstancesError> for Error {
17658 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
17659 match err {
17660 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17661 }
17662 }
17663}
17664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>> for Error
17665where
17666 R: Send + Sync + std::fmt::Debug + 'static,
17667{
17668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, R>) -> Self {
17669 match err {
17670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17673 source: err.into(),
17674 }),
17675 }
17676 }
17677}
17678impl From<crate::operation::register_image::RegisterImageError> for Error {
17679 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
17680 match err {
17681 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
17682 }
17683 }
17684}
17685impl<R>
17686 From<
17687 ::aws_smithy_runtime_api::client::result::SdkError<
17688 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17689 R,
17690 >,
17691 > for Error
17692where
17693 R: Send + Sync + std::fmt::Debug + 'static,
17694{
17695 fn from(
17696 err: ::aws_smithy_runtime_api::client::result::SdkError<
17697 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17698 R,
17699 >,
17700 ) -> Self {
17701 match err {
17702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17705 source: err.into(),
17706 }),
17707 }
17708 }
17709}
17710impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
17711 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
17712 match err {
17713 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
17714 Error::Unhandled(inner)
17715 }
17716 }
17717 }
17718}
17719impl<R>
17720 From<
17721 ::aws_smithy_runtime_api::client::result::SdkError<
17722 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17723 R,
17724 >,
17725 > for Error
17726where
17727 R: Send + Sync + std::fmt::Debug + 'static,
17728{
17729 fn from(
17730 err: ::aws_smithy_runtime_api::client::result::SdkError<
17731 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17732 R,
17733 >,
17734 ) -> Self {
17735 match err {
17736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17739 source: err.into(),
17740 }),
17741 }
17742 }
17743}
17744impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
17745 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
17746 match err {
17747 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
17748 inner,
17749 ) => Error::Unhandled(inner),
17750 }
17751 }
17752}
17753impl<R>
17754 From<
17755 ::aws_smithy_runtime_api::client::result::SdkError<
17756 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17757 R,
17758 >,
17759 > for Error
17760where
17761 R: Send + Sync + std::fmt::Debug + 'static,
17762{
17763 fn from(
17764 err: ::aws_smithy_runtime_api::client::result::SdkError<
17765 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17766 R,
17767 >,
17768 ) -> Self {
17769 match err {
17770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17773 source: err.into(),
17774 }),
17775 }
17776 }
17777}
17778impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
17779 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
17780 match err {
17781 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
17782 inner,
17783 ) => Error::Unhandled(inner),
17784 }
17785 }
17786}
17787impl<R>
17788 From<
17789 ::aws_smithy_runtime_api::client::result::SdkError<
17790 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17791 R,
17792 >,
17793 > for Error
17794where
17795 R: Send + Sync + std::fmt::Debug + 'static,
17796{
17797 fn from(
17798 err: ::aws_smithy_runtime_api::client::result::SdkError<
17799 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17800 R,
17801 >,
17802 ) -> Self {
17803 match err {
17804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17807 source: err.into(),
17808 }),
17809 }
17810 }
17811}
17812impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
17813 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
17814 match err {
17815 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
17816 Error::Unhandled(inner)
17817 }
17818 }
17819 }
17820}
17821impl<R>
17822 From<
17823 ::aws_smithy_runtime_api::client::result::SdkError<
17824 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17825 R,
17826 >,
17827 > for Error
17828where
17829 R: Send + Sync + std::fmt::Debug + 'static,
17830{
17831 fn from(
17832 err: ::aws_smithy_runtime_api::client::result::SdkError<
17833 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17834 R,
17835 >,
17836 ) -> Self {
17837 match err {
17838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17841 source: err.into(),
17842 }),
17843 }
17844 }
17845}
17846impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
17847 fn from(
17848 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17849 ) -> Self {
17850 match err {
17851 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
17852 }
17853 }
17854}
17855impl<R>
17856 From<
17857 ::aws_smithy_runtime_api::client::result::SdkError<
17858 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17859 R,
17860 >,
17861 > for Error
17862where
17863 R: Send + Sync + std::fmt::Debug + 'static,
17864{
17865 fn from(
17866 err: ::aws_smithy_runtime_api::client::result::SdkError<
17867 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17868 R,
17869 >,
17870 ) -> 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::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
17881 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
17882 match err {
17883 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
17884 Error::Unhandled(inner)
17885 }
17886 }
17887 }
17888}
17889impl<R>
17890 From<
17891 ::aws_smithy_runtime_api::client::result::SdkError<
17892 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17893 R,
17894 >,
17895 > for Error
17896where
17897 R: Send + Sync + std::fmt::Debug + 'static,
17898{
17899 fn from(
17900 err: ::aws_smithy_runtime_api::client::result::SdkError<
17901 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17902 R,
17903 >,
17904 ) -> Self {
17905 match err {
17906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17909 source: err.into(),
17910 }),
17911 }
17912 }
17913}
17914impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
17915 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
17916 match err {
17917 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17918 Error::Unhandled(inner)
17919 }
17920 }
17921 }
17922}
17923impl<R>
17924 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
17925 for Error
17926where
17927 R: Send + Sync + std::fmt::Debug + 'static,
17928{
17929 fn from(
17930 err: ::aws_smithy_runtime_api::client::result::SdkError<
17931 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
17932 R,
17933 >,
17934 ) -> Self {
17935 match err {
17936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17939 source: err.into(),
17940 }),
17941 }
17942 }
17943}
17944impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
17945 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
17946 match err {
17947 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
17948 }
17949 }
17950}
17951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
17952 for Error
17953where
17954 R: Send + Sync + std::fmt::Debug + 'static,
17955{
17956 fn from(
17957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
17958 ) -> Self {
17959 match err {
17960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17963 source: err.into(),
17964 }),
17965 }
17966 }
17967}
17968impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
17969 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
17970 match err {
17971 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17972 }
17973 }
17974}
17975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
17976where
17977 R: Send + Sync + std::fmt::Debug + 'static,
17978{
17979 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> Self {
17980 match err {
17981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17984 source: err.into(),
17985 }),
17986 }
17987 }
17988}
17989impl From<crate::operation::release_address::ReleaseAddressError> for Error {
17990 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
17991 match err {
17992 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
17993 }
17994 }
17995}
17996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>> for Error
17997where
17998 R: Send + Sync + std::fmt::Debug + 'static,
17999{
18000 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, R>) -> Self {
18001 match err {
18002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18005 source: err.into(),
18006 }),
18007 }
18008 }
18009}
18010impl From<crate::operation::release_hosts::ReleaseHostsError> for Error {
18011 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
18012 match err {
18013 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
18014 }
18015 }
18016}
18017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
18018 for Error
18019where
18020 R: Send + Sync + std::fmt::Debug + 'static,
18021{
18022 fn from(
18023 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
18024 ) -> Self {
18025 match err {
18026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18029 source: err.into(),
18030 }),
18031 }
18032 }
18033}
18034impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
18035 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
18036 match err {
18037 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
18038 }
18039 }
18040}
18041impl<R>
18042 From<
18043 ::aws_smithy_runtime_api::client::result::SdkError<
18044 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18045 R,
18046 >,
18047 > for Error
18048where
18049 R: Send + Sync + std::fmt::Debug + 'static,
18050{
18051 fn from(
18052 err: ::aws_smithy_runtime_api::client::result::SdkError<
18053 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18054 R,
18055 >,
18056 ) -> Self {
18057 match err {
18058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18061 source: err.into(),
18062 }),
18063 }
18064 }
18065}
18066impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
18067 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
18068 match err {
18069 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
18070 Error::Unhandled(inner)
18071 }
18072 }
18073 }
18074}
18075impl<R>
18076 From<
18077 ::aws_smithy_runtime_api::client::result::SdkError<
18078 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18079 R,
18080 >,
18081 > for Error
18082where
18083 R: Send + Sync + std::fmt::Debug + 'static,
18084{
18085 fn from(
18086 err: ::aws_smithy_runtime_api::client::result::SdkError<
18087 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18088 R,
18089 >,
18090 ) -> Self {
18091 match err {
18092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18095 source: err.into(),
18096 }),
18097 }
18098 }
18099}
18100impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
18101 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
18102 match err {
18103 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
18104 inner,
18105 ) => Error::Unhandled(inner),
18106 }
18107 }
18108}
18109impl<R>
18110 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
18111 for Error
18112where
18113 R: Send + Sync + std::fmt::Debug + 'static,
18114{
18115 fn from(
18116 err: ::aws_smithy_runtime_api::client::result::SdkError<
18117 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
18118 R,
18119 >,
18120 ) -> Self {
18121 match err {
18122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18125 source: err.into(),
18126 }),
18127 }
18128 }
18129}
18130impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
18131 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
18132 match err {
18133 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18134 }
18135 }
18136}
18137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
18138 for Error
18139where
18140 R: Send + Sync + std::fmt::Debug + 'static,
18141{
18142 fn from(
18143 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
18144 ) -> Self {
18145 match err {
18146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18149 source: err.into(),
18150 }),
18151 }
18152 }
18153}
18154impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
18155 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
18156 match err {
18157 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
18158 }
18159 }
18160}
18161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
18162where
18163 R: Send + Sync + std::fmt::Debug + 'static,
18164{
18165 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> Self {
18166 match err {
18167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18170 source: err.into(),
18171 }),
18172 }
18173 }
18174}
18175impl From<crate::operation::replace_route::ReplaceRouteError> for Error {
18176 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
18177 match err {
18178 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
18179 }
18180 }
18181}
18182impl<R>
18183 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
18184 for Error
18185where
18186 R: Send + Sync + std::fmt::Debug + 'static,
18187{
18188 fn from(
18189 err: ::aws_smithy_runtime_api::client::result::SdkError<
18190 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
18191 R,
18192 >,
18193 ) -> Self {
18194 match err {
18195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18198 source: err.into(),
18199 }),
18200 }
18201 }
18202}
18203impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
18204 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
18205 match err {
18206 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18207 }
18208 }
18209}
18210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
18211 for Error
18212where
18213 R: Send + Sync + std::fmt::Debug + 'static,
18214{
18215 fn from(
18216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
18217 ) -> 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::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
18228 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
18229 match err {
18230 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
18231 }
18232 }
18233}
18234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
18235where
18236 R: Send + Sync + std::fmt::Debug + 'static,
18237{
18238 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
18239 match err {
18240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18243 source: err.into(),
18244 }),
18245 }
18246 }
18247}
18248impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
18249 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
18250 match err {
18251 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
18252 }
18253 }
18254}
18255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>> for Error
18256where
18257 R: Send + Sync + std::fmt::Debug + 'static,
18258{
18259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, R>) -> Self {
18260 match err {
18261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18264 source: err.into(),
18265 }),
18266 }
18267 }
18268}
18269impl From<crate::operation::report_instance_status::ReportInstanceStatusError> for Error {
18270 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
18271 match err {
18272 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
18273 }
18274 }
18275}
18276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>> for Error
18277where
18278 R: Send + Sync + std::fmt::Debug + 'static,
18279{
18280 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, R>) -> Self {
18281 match err {
18282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18285 source: err.into(),
18286 }),
18287 }
18288 }
18289}
18290impl From<crate::operation::request_spot_fleet::RequestSpotFleetError> for Error {
18291 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
18292 match err {
18293 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
18294 }
18295 }
18296}
18297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>> for Error
18298where
18299 R: Send + Sync + std::fmt::Debug + 'static,
18300{
18301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, R>) -> Self {
18302 match err {
18303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18306 source: err.into(),
18307 }),
18308 }
18309 }
18310}
18311impl From<crate::operation::request_spot_instances::RequestSpotInstancesError> for Error {
18312 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
18313 match err {
18314 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18315 }
18316 }
18317}
18318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
18319where
18320 R: Send + Sync + std::fmt::Debug + 'static,
18321{
18322 fn from(
18323 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
18324 ) -> Self {
18325 match err {
18326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18329 source: err.into(),
18330 }),
18331 }
18332 }
18333}
18334impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
18335 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
18336 match err {
18337 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18338 }
18339 }
18340}
18341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
18342 for Error
18343where
18344 R: Send + Sync + std::fmt::Debug + 'static,
18345{
18346 fn from(
18347 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
18348 ) -> Self {
18349 match err {
18350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18353 source: err.into(),
18354 }),
18355 }
18356 }
18357}
18358impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
18359 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
18360 match err {
18361 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
18362 }
18363 }
18364}
18365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
18366 for Error
18367where
18368 R: Send + Sync + std::fmt::Debug + 'static,
18369{
18370 fn from(
18371 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
18372 ) -> Self {
18373 match err {
18374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18377 source: err.into(),
18378 }),
18379 }
18380 }
18381}
18382impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
18383 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
18384 match err {
18385 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18386 }
18387 }
18388}
18389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
18390where
18391 R: Send + Sync + std::fmt::Debug + 'static,
18392{
18393 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> Self {
18394 match err {
18395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18398 source: err.into(),
18399 }),
18400 }
18401 }
18402}
18403impl From<crate::operation::reset_image_attribute::ResetImageAttributeError> for Error {
18404 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
18405 match err {
18406 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18407 }
18408 }
18409}
18410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
18411where
18412 R: Send + Sync + std::fmt::Debug + 'static,
18413{
18414 fn from(
18415 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
18416 ) -> Self {
18417 match err {
18418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18421 source: err.into(),
18422 }),
18423 }
18424 }
18425}
18426impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
18427 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
18428 match err {
18429 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18430 }
18431 }
18432}
18433impl<R>
18434 From<
18435 ::aws_smithy_runtime_api::client::result::SdkError<
18436 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18437 R,
18438 >,
18439 > for Error
18440where
18441 R: Send + Sync + std::fmt::Debug + 'static,
18442{
18443 fn from(
18444 err: ::aws_smithy_runtime_api::client::result::SdkError<
18445 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18446 R,
18447 >,
18448 ) -> Self {
18449 match err {
18450 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18451 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18452 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18453 source: err.into(),
18454 }),
18455 }
18456 }
18457}
18458impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
18459 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
18460 match err {
18461 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18462 }
18463 }
18464}
18465impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
18466where
18467 R: Send + Sync + std::fmt::Debug + 'static,
18468{
18469 fn from(
18470 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
18471 ) -> Self {
18472 match err {
18473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18476 source: err.into(),
18477 }),
18478 }
18479 }
18480}
18481impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
18482 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
18483 match err {
18484 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18485 }
18486 }
18487}
18488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
18489 for Error
18490where
18491 R: Send + Sync + std::fmt::Debug + 'static,
18492{
18493 fn from(
18494 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
18495 ) -> Self {
18496 match err {
18497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18500 source: err.into(),
18501 }),
18502 }
18503 }
18504}
18505impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
18506 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
18507 match err {
18508 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
18509 }
18510 }
18511}
18512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
18513 for Error
18514where
18515 R: Send + Sync + std::fmt::Debug + 'static,
18516{
18517 fn from(
18518 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
18519 ) -> Self {
18520 match err {
18521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18524 source: err.into(),
18525 }),
18526 }
18527 }
18528}
18529impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
18530 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
18531 match err {
18532 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18533 }
18534 }
18535}
18536impl<R>
18537 From<
18538 ::aws_smithy_runtime_api::client::result::SdkError<
18539 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18540 R,
18541 >,
18542 > for Error
18543where
18544 R: Send + Sync + std::fmt::Debug + 'static,
18545{
18546 fn from(
18547 err: ::aws_smithy_runtime_api::client::result::SdkError<
18548 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18549 R,
18550 >,
18551 ) -> Self {
18552 match err {
18553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18556 source: err.into(),
18557 }),
18558 }
18559 }
18560}
18561impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
18562 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
18563 match err {
18564 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
18565 }
18566 }
18567}
18568impl<R>
18569 From<
18570 ::aws_smithy_runtime_api::client::result::SdkError<
18571 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18572 R,
18573 >,
18574 > for Error
18575where
18576 R: Send + Sync + std::fmt::Debug + 'static,
18577{
18578 fn from(
18579 err: ::aws_smithy_runtime_api::client::result::SdkError<
18580 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18581 R,
18582 >,
18583 ) -> Self {
18584 match err {
18585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18588 source: err.into(),
18589 }),
18590 }
18591 }
18592}
18593impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
18594 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
18595 match err {
18596 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18597 }
18598 }
18599}
18600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
18601where
18602 R: Send + Sync + std::fmt::Debug + 'static,
18603{
18604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> Self {
18605 match err {
18606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18609 source: err.into(),
18610 }),
18611 }
18612 }
18613}
18614impl From<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError> for Error {
18615 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
18616 match err {
18617 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
18618 }
18619 }
18620}
18621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
18622 for Error
18623where
18624 R: Send + Sync + std::fmt::Debug + 'static,
18625{
18626 fn from(
18627 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
18628 ) -> Self {
18629 match err {
18630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18633 source: err.into(),
18634 }),
18635 }
18636 }
18637}
18638impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
18639 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
18640 match err {
18641 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
18642 }
18643 }
18644}
18645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
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<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
18652 ) -> Self {
18653 match err {
18654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18657 source: err.into(),
18658 }),
18659 }
18660 }
18661}
18662impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
18663 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
18664 match err {
18665 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
18666 }
18667 }
18668}
18669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
18670 for Error
18671where
18672 R: Send + Sync + std::fmt::Debug + 'static,
18673{
18674 fn from(
18675 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
18676 ) -> Self {
18677 match err {
18678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18681 source: err.into(),
18682 }),
18683 }
18684 }
18685}
18686impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
18687 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
18688 match err {
18689 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
18690 }
18691 }
18692}
18693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
18694where
18695 R: Send + Sync + std::fmt::Debug + 'static,
18696{
18697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> Self {
18698 match err {
18699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18702 source: err.into(),
18703 }),
18704 }
18705 }
18706}
18707impl From<crate::operation::run_instances::RunInstancesError> for Error {
18708 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
18709 match err {
18710 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18711 }
18712 }
18713}
18714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
18715where
18716 R: Send + Sync + std::fmt::Debug + 'static,
18717{
18718 fn from(
18719 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
18720 ) -> Self {
18721 match err {
18722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18725 source: err.into(),
18726 }),
18727 }
18728 }
18729}
18730impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
18731 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
18732 match err {
18733 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18734 }
18735 }
18736}
18737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
18738 for Error
18739where
18740 R: Send + Sync + std::fmt::Debug + 'static,
18741{
18742 fn from(
18743 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
18744 ) -> Self {
18745 match err {
18746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18749 source: err.into(),
18750 }),
18751 }
18752 }
18753}
18754impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
18755 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
18756 match err {
18757 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18758 }
18759 }
18760}
18761impl<R>
18762 From<
18763 ::aws_smithy_runtime_api::client::result::SdkError<
18764 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18765 R,
18766 >,
18767 > for Error
18768where
18769 R: Send + Sync + std::fmt::Debug + 'static,
18770{
18771 fn from(
18772 err: ::aws_smithy_runtime_api::client::result::SdkError<
18773 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18774 R,
18775 >,
18776 ) -> Self {
18777 match err {
18778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18781 source: err.into(),
18782 }),
18783 }
18784 }
18785}
18786impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
18787 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
18788 match err {
18789 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
18790 Error::Unhandled(inner)
18791 }
18792 }
18793 }
18794}
18795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
18796 for Error
18797where
18798 R: Send + Sync + std::fmt::Debug + 'static,
18799{
18800 fn from(
18801 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
18802 ) -> Self {
18803 match err {
18804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18807 source: err.into(),
18808 }),
18809 }
18810 }
18811}
18812impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
18813 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
18814 match err {
18815 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18816 }
18817 }
18818}
18819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
18820 for Error
18821where
18822 R: Send + Sync + std::fmt::Debug + 'static,
18823{
18824 fn from(
18825 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
18826 ) -> Self {
18827 match err {
18828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18831 source: err.into(),
18832 }),
18833 }
18834 }
18835}
18836impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
18837 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
18838 match err {
18839 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
18840 }
18841 }
18842}
18843impl<R>
18844 From<
18845 ::aws_smithy_runtime_api::client::result::SdkError<
18846 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18847 R,
18848 >,
18849 > for Error
18850where
18851 R: Send + Sync + std::fmt::Debug + 'static,
18852{
18853 fn from(
18854 err: ::aws_smithy_runtime_api::client::result::SdkError<
18855 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18856 R,
18857 >,
18858 ) -> Self {
18859 match err {
18860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18863 source: err.into(),
18864 }),
18865 }
18866 }
18867}
18868impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
18869 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
18870 match err {
18871 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
18872 }
18873 }
18874}
18875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
18876where
18877 R: Send + Sync + std::fmt::Debug + 'static,
18878{
18879 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> Self {
18880 match err {
18881 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18882 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18883 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18884 source: err.into(),
18885 }),
18886 }
18887 }
18888}
18889impl From<crate::operation::start_instances::StartInstancesError> for Error {
18890 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
18891 match err {
18892 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18893 }
18894 }
18895}
18896impl<R>
18897 From<
18898 ::aws_smithy_runtime_api::client::result::SdkError<
18899 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18900 R,
18901 >,
18902 > for Error
18903where
18904 R: Send + Sync + std::fmt::Debug + 'static,
18905{
18906 fn from(
18907 err: ::aws_smithy_runtime_api::client::result::SdkError<
18908 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18909 R,
18910 >,
18911 ) -> Self {
18912 match err {
18913 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18914 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18915 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18916 source: err.into(),
18917 }),
18918 }
18919 }
18920}
18921impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
18922 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
18923 match err {
18924 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
18925 Error::Unhandled(inner)
18926 }
18927 }
18928 }
18929}
18930impl<R>
18931 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
18932 for Error
18933where
18934 R: Send + Sync + std::fmt::Debug + 'static,
18935{
18936 fn from(
18937 err: ::aws_smithy_runtime_api::client::result::SdkError<
18938 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
18939 R,
18940 >,
18941 ) -> Self {
18942 match err {
18943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18946 source: err.into(),
18947 }),
18948 }
18949 }
18950}
18951impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
18952 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
18953 match err {
18954 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
18955 }
18956 }
18957}
18958impl<R>
18959 From<
18960 ::aws_smithy_runtime_api::client::result::SdkError<
18961 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
18962 R,
18963 >,
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::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
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::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
18984 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
18985 match err {
18986 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
18987 inner,
18988 ) => Error::Unhandled(inner),
18989 }
18990 }
18991}
18992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
18993where
18994 R: Send + Sync + std::fmt::Debug + 'static,
18995{
18996 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
18997 match err {
18998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19001 source: err.into(),
19002 }),
19003 }
19004 }
19005}
19006impl From<crate::operation::stop_instances::StopInstancesError> for Error {
19007 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
19008 match err {
19009 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19010 }
19011 }
19012}
19013impl<R>
19014 From<
19015 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
19016 > for Error
19017where
19018 R: Send + Sync + std::fmt::Debug + 'static,
19019{
19020 fn from(
19021 err: ::aws_smithy_runtime_api::client::result::SdkError<
19022 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
19023 R,
19024 >,
19025 ) -> Self {
19026 match err {
19027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19030 source: err.into(),
19031 }),
19032 }
19033 }
19034}
19035impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
19036 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
19037 match err {
19038 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19039 }
19040 }
19041}
19042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
19043where
19044 R: Send + Sync + std::fmt::Debug + 'static,
19045{
19046 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> 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::terminate_instances::TerminateInstancesError> for Error {
19057 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
19058 match err {
19059 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19060 }
19061 }
19062}
19063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
19064where
19065 R: Send + Sync + std::fmt::Debug + 'static,
19066{
19067 fn from(
19068 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
19069 ) -> Self {
19070 match err {
19071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19074 source: err.into(),
19075 }),
19076 }
19077 }
19078}
19079impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
19080 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
19081 match err {
19082 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
19083 }
19084 }
19085}
19086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
19087 for Error
19088where
19089 R: Send + Sync + std::fmt::Debug + 'static,
19090{
19091 fn from(
19092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
19093 ) -> Self {
19094 match err {
19095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19098 source: err.into(),
19099 }),
19100 }
19101 }
19102}
19103impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
19104 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
19105 match err {
19106 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
19107 }
19108 }
19109}
19110impl<R>
19111 From<
19112 ::aws_smithy_runtime_api::client::result::SdkError<
19113 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19114 R,
19115 >,
19116 > for Error
19117where
19118 R: Send + Sync + std::fmt::Debug + 'static,
19119{
19120 fn from(
19121 err: ::aws_smithy_runtime_api::client::result::SdkError<
19122 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19123 R,
19124 >,
19125 ) -> Self {
19126 match err {
19127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19130 source: err.into(),
19131 }),
19132 }
19133 }
19134}
19135impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
19136 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
19137 match err {
19138 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
19139 Error::Unhandled(inner)
19140 }
19141 }
19142 }
19143}
19144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
19145where
19146 R: Send + Sync + std::fmt::Debug + 'static,
19147{
19148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
19149 match err {
19150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19153 source: err.into(),
19154 }),
19155 }
19156 }
19157}
19158impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
19159 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
19160 match err {
19161 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
19162 }
19163 }
19164}
19165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>> for Error
19166where
19167 R: Send + Sync + std::fmt::Debug + 'static,
19168{
19169 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, R>) -> Self {
19170 match err {
19171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19174 source: err.into(),
19175 }),
19176 }
19177 }
19178}
19179impl From<crate::operation::unmonitor_instances::UnmonitorInstancesError> for Error {
19180 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
19181 match err {
19182 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19183 }
19184 }
19185}
19186impl<R>
19187 From<
19188 ::aws_smithy_runtime_api::client::result::SdkError<
19189 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19190 R,
19191 >,
19192 > for Error
19193where
19194 R: Send + Sync + std::fmt::Debug + 'static,
19195{
19196 fn from(
19197 err: ::aws_smithy_runtime_api::client::result::SdkError<
19198 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19199 R,
19200 >,
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::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
19212 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
19213 match err {
19214 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
19215 Error::Unhandled(inner)
19216 }
19217 }
19218 }
19219}
19220impl<R>
19221 From<
19222 ::aws_smithy_runtime_api::client::result::SdkError<
19223 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19224 R,
19225 >,
19226 > for Error
19227where
19228 R: Send + Sync + std::fmt::Debug + 'static,
19229{
19230 fn from(
19231 err: ::aws_smithy_runtime_api::client::result::SdkError<
19232 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19233 R,
19234 >,
19235 ) -> Self {
19236 match err {
19237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19240 source: err.into(),
19241 }),
19242 }
19243 }
19244}
19245impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
19246 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
19247 match err {
19248 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
19249 Error::Unhandled(inner)
19250 }
19251 }
19252 }
19253}
19254impl<R>
19255 From<
19256 ::aws_smithy_runtime_api::client::result::SdkError<
19257 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19258 R,
19259 >,
19260 > for Error
19261where
19262 R: Send + Sync + std::fmt::Debug + 'static,
19263{
19264 fn from(
19265 err: ::aws_smithy_runtime_api::client::result::SdkError<
19266 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19267 R,
19268 >,
19269 ) -> Self {
19270 match err {
19271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19274 source: err.into(),
19275 }),
19276 }
19277 }
19278}
19279impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
19280 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
19281 match err {
19282 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
19283 Error::Unhandled(inner)
19284 }
19285 }
19286 }
19287}
19288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
19289where
19290 R: Send + Sync + std::fmt::Debug + 'static,
19291{
19292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
19293 match err {
19294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19297 source: err.into(),
19298 }),
19299 }
19300 }
19301}
19302impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
19303 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
19304 match err {
19305 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
19306 }
19307 }
19308}
19309impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
19310where
19311 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
19312 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
19313{
19314 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
19315 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19316 meta: ::std::default::Default::default(),
19317 source: err.into(),
19318 })
19319 }
19320}
19321impl ::std::error::Error for Error {
19322 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
19323 match self {
19324 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
19325 }
19326 }
19327}
19328impl ::aws_types::request_id::RequestId for Error {
19329 fn request_id(&self) -> Option<&str> {
19330 match self {
19331 Self::Unhandled(e) => e.meta.request_id(),
19332 }
19333 }
19334}