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>
13831 From<
13832 ::aws_smithy_runtime_api::client::result::SdkError<
13833 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13834 R,
13835 >,
13836 > for Error
13837where
13838 R: Send + Sync + std::fmt::Debug + 'static,
13839{
13840 fn from(
13841 err: ::aws_smithy_runtime_api::client::result::SdkError<
13842 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError,
13843 R,
13844 >,
13845 ) -> Self {
13846 match err {
13847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13850 source: err.into(),
13851 }),
13852 }
13853 }
13854}
13855impl From<crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError> for Error {
13856 fn from(err: crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError) -> Self {
13857 match err {
13858 crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError::Unhandled(inner) => Error::Unhandled(inner),
13859 }
13860 }
13861}
13862impl<R>
13863 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError, R>>
13864 for Error
13865where
13866 R: Send + Sync + std::fmt::Debug + 'static,
13867{
13868 fn from(
13869 err: ::aws_smithy_runtime_api::client::result::SdkError<
13870 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError,
13871 R,
13872 >,
13873 ) -> Self {
13874 match err {
13875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13878 source: err.into(),
13879 }),
13880 }
13881 }
13882}
13883impl From<crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError> for Error {
13884 fn from(err: crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError) -> Self {
13885 match err {
13886 crate::operation::get_instance_metadata_defaults::GetInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
13887 }
13888 }
13889}
13890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>> for Error
13891where
13892 R: Send + Sync + std::fmt::Debug + 'static,
13893{
13894 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError, R>) -> 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_tpm_ek_pub::GetInstanceTpmEkPubError> for Error {
13905 fn from(err: crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError) -> Self {
13906 match err {
13907 crate::operation::get_instance_tpm_ek_pub::GetInstanceTpmEkPubError::Unhandled(inner) => Error::Unhandled(inner),
13908 }
13909 }
13910}
13911impl<R>
13912 From<
13913 ::aws_smithy_runtime_api::client::result::SdkError<
13914 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13915 R,
13916 >,
13917 > for Error
13918where
13919 R: Send + Sync + std::fmt::Debug + 'static,
13920{
13921 fn from(
13922 err: ::aws_smithy_runtime_api::client::result::SdkError<
13923 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError,
13924 R,
13925 >,
13926 ) -> Self {
13927 match err {
13928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13931 source: err.into(),
13932 }),
13933 }
13934 }
13935}
13936impl From<crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError> for Error {
13937 fn from(err: crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError) -> Self {
13938 match err {
13939 crate::operation::get_instance_types_from_instance_requirements::GetInstanceTypesFromInstanceRequirementsError::Unhandled(inner) => {
13940 Error::Unhandled(inner)
13941 }
13942 }
13943 }
13944}
13945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>> for Error
13946where
13947 R: Send + Sync + std::fmt::Debug + 'static,
13948{
13949 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError, R>) -> Self {
13950 match err {
13951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13954 source: err.into(),
13955 }),
13956 }
13957 }
13958}
13959impl From<crate::operation::get_instance_uefi_data::GetInstanceUefiDataError> for Error {
13960 fn from(err: crate::operation::get_instance_uefi_data::GetInstanceUefiDataError) -> Self {
13961 match err {
13962 crate::operation::get_instance_uefi_data::GetInstanceUefiDataError::Unhandled(inner) => Error::Unhandled(inner),
13963 }
13964 }
13965}
13966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>> for Error
13967where
13968 R: Send + Sync + std::fmt::Debug + 'static,
13969{
13970 fn from(
13971 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError, R>,
13972 ) -> Self {
13973 match err {
13974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
13976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
13977 source: err.into(),
13978 }),
13979 }
13980 }
13981}
13982impl From<crate::operation::get_ipam_address_history::GetIpamAddressHistoryError> for Error {
13983 fn from(err: crate::operation::get_ipam_address_history::GetIpamAddressHistoryError) -> Self {
13984 match err {
13985 crate::operation::get_ipam_address_history::GetIpamAddressHistoryError::Unhandled(inner) => Error::Unhandled(inner),
13986 }
13987 }
13988}
13989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>>
13990 for Error
13991where
13992 R: Send + Sync + std::fmt::Debug + 'static,
13993{
13994 fn from(
13995 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError, R>,
13996 ) -> Self {
13997 match err {
13998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
13999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14001 source: err.into(),
14002 }),
14003 }
14004 }
14005}
14006impl From<crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError> for Error {
14007 fn from(err: crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError) -> Self {
14008 match err {
14009 crate::operation::get_ipam_discovered_accounts::GetIpamDiscoveredAccountsError::Unhandled(inner) => Error::Unhandled(inner),
14010 }
14011 }
14012}
14013impl<R>
14014 From<
14015 ::aws_smithy_runtime_api::client::result::SdkError<
14016 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14017 R,
14018 >,
14019 > for Error
14020where
14021 R: Send + Sync + std::fmt::Debug + 'static,
14022{
14023 fn from(
14024 err: ::aws_smithy_runtime_api::client::result::SdkError<
14025 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError,
14026 R,
14027 >,
14028 ) -> Self {
14029 match err {
14030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14033 source: err.into(),
14034 }),
14035 }
14036 }
14037}
14038impl From<crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError> for Error {
14039 fn from(err: crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError) -> Self {
14040 match err {
14041 crate::operation::get_ipam_discovered_public_addresses::GetIpamDiscoveredPublicAddressesError::Unhandled(inner) => {
14042 Error::Unhandled(inner)
14043 }
14044 }
14045 }
14046}
14047impl<R>
14048 From<
14049 ::aws_smithy_runtime_api::client::result::SdkError<
14050 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14051 R,
14052 >,
14053 > for Error
14054where
14055 R: Send + Sync + std::fmt::Debug + 'static,
14056{
14057 fn from(
14058 err: ::aws_smithy_runtime_api::client::result::SdkError<
14059 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError,
14060 R,
14061 >,
14062 ) -> Self {
14063 match err {
14064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14067 source: err.into(),
14068 }),
14069 }
14070 }
14071}
14072impl From<crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError> for Error {
14073 fn from(err: crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError) -> Self {
14074 match err {
14075 crate::operation::get_ipam_discovered_resource_cidrs::GetIpamDiscoveredResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14076 }
14077 }
14078}
14079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>>
14080 for Error
14081where
14082 R: Send + Sync + std::fmt::Debug + 'static,
14083{
14084 fn from(
14085 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError, R>,
14086 ) -> Self {
14087 match err {
14088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14091 source: err.into(),
14092 }),
14093 }
14094 }
14095}
14096impl From<crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError> for Error {
14097 fn from(err: crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError) -> Self {
14098 match err {
14099 crate::operation::get_ipam_pool_allocations::GetIpamPoolAllocationsError::Unhandled(inner) => Error::Unhandled(inner),
14100 }
14101 }
14102}
14103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>> for Error
14104where
14105 R: Send + Sync + std::fmt::Debug + 'static,
14106{
14107 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError, R>) -> 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_cidrs::GetIpamPoolCidrsError> for Error {
14118 fn from(err: crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError) -> Self {
14119 match err {
14120 crate::operation::get_ipam_pool_cidrs::GetIpamPoolCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14121 }
14122 }
14123}
14124impl<R>
14125 From<
14126 ::aws_smithy_runtime_api::client::result::SdkError<
14127 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14128 R,
14129 >,
14130 > for Error
14131where
14132 R: Send + Sync + std::fmt::Debug + 'static,
14133{
14134 fn from(
14135 err: ::aws_smithy_runtime_api::client::result::SdkError<
14136 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError,
14137 R,
14138 >,
14139 ) -> Self {
14140 match err {
14141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14144 source: err.into(),
14145 }),
14146 }
14147 }
14148}
14149impl From<crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError> for Error {
14150 fn from(err: crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError) -> Self {
14151 match err {
14152 crate::operation::get_ipam_prefix_list_resolver_rules::GetIpamPrefixListResolverRulesError::Unhandled(inner) => Error::Unhandled(inner),
14153 }
14154 }
14155}
14156impl<R>
14157 From<
14158 ::aws_smithy_runtime_api::client::result::SdkError<
14159 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14160 R,
14161 >,
14162 > for Error
14163where
14164 R: Send + Sync + std::fmt::Debug + 'static,
14165{
14166 fn from(
14167 err: ::aws_smithy_runtime_api::client::result::SdkError<
14168 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError,
14169 R,
14170 >,
14171 ) -> Self {
14172 match err {
14173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14176 source: err.into(),
14177 }),
14178 }
14179 }
14180}
14181impl From<crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError> for Error {
14182 fn from(err: crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError) -> Self {
14183 match err {
14184 crate::operation::get_ipam_prefix_list_resolver_version_entries::GetIpamPrefixListResolverVersionEntriesError::Unhandled(inner) => {
14185 Error::Unhandled(inner)
14186 }
14187 }
14188 }
14189}
14190impl<R>
14191 From<
14192 ::aws_smithy_runtime_api::client::result::SdkError<
14193 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14194 R,
14195 >,
14196 > for Error
14197where
14198 R: Send + Sync + std::fmt::Debug + 'static,
14199{
14200 fn from(
14201 err: ::aws_smithy_runtime_api::client::result::SdkError<
14202 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError,
14203 R,
14204 >,
14205 ) -> Self {
14206 match err {
14207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14210 source: err.into(),
14211 }),
14212 }
14213 }
14214}
14215impl From<crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError> for Error {
14216 fn from(err: crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError) -> Self {
14217 match err {
14218 crate::operation::get_ipam_prefix_list_resolver_versions::GetIpamPrefixListResolverVersionsError::Unhandled(inner) => {
14219 Error::Unhandled(inner)
14220 }
14221 }
14222 }
14223}
14224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>> for Error
14225where
14226 R: Send + Sync + std::fmt::Debug + 'static,
14227{
14228 fn from(
14229 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError, R>,
14230 ) -> Self {
14231 match err {
14232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14235 source: err.into(),
14236 }),
14237 }
14238 }
14239}
14240impl From<crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError> for Error {
14241 fn from(err: crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError) -> Self {
14242 match err {
14243 crate::operation::get_ipam_resource_cidrs::GetIpamResourceCidrsError::Unhandled(inner) => Error::Unhandled(inner),
14244 }
14245 }
14246}
14247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>> for Error
14248where
14249 R: Send + Sync + std::fmt::Debug + 'static,
14250{
14251 fn from(
14252 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_template_data::GetLaunchTemplateDataError, R>,
14253 ) -> Self {
14254 match err {
14255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14258 source: err.into(),
14259 }),
14260 }
14261 }
14262}
14263impl From<crate::operation::get_launch_template_data::GetLaunchTemplateDataError> for Error {
14264 fn from(err: crate::operation::get_launch_template_data::GetLaunchTemplateDataError) -> Self {
14265 match err {
14266 crate::operation::get_launch_template_data::GetLaunchTemplateDataError::Unhandled(inner) => Error::Unhandled(inner),
14267 }
14268 }
14269}
14270impl<R>
14271 From<
14272 ::aws_smithy_runtime_api::client::result::SdkError<
14273 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14274 R,
14275 >,
14276 > for Error
14277where
14278 R: Send + Sync + std::fmt::Debug + 'static,
14279{
14280 fn from(
14281 err: ::aws_smithy_runtime_api::client::result::SdkError<
14282 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError,
14283 R,
14284 >,
14285 ) -> Self {
14286 match err {
14287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14290 source: err.into(),
14291 }),
14292 }
14293 }
14294}
14295impl From<crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError> for Error {
14296 fn from(err: crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError) -> Self {
14297 match err {
14298 crate::operation::get_managed_prefix_list_associations::GetManagedPrefixListAssociationsError::Unhandled(inner) => {
14299 Error::Unhandled(inner)
14300 }
14301 }
14302 }
14303}
14304impl<R>
14305 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError, R>>
14306 for Error
14307where
14308 R: Send + Sync + std::fmt::Debug + 'static,
14309{
14310 fn from(
14311 err: ::aws_smithy_runtime_api::client::result::SdkError<
14312 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError,
14313 R,
14314 >,
14315 ) -> Self {
14316 match err {
14317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14320 source: err.into(),
14321 }),
14322 }
14323 }
14324}
14325impl From<crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError> for Error {
14326 fn from(err: crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError) -> Self {
14327 match err {
14328 crate::operation::get_managed_prefix_list_entries::GetManagedPrefixListEntriesError::Unhandled(inner) => Error::Unhandled(inner),
14329 }
14330 }
14331}
14332impl<R>
14333 From<
14334 ::aws_smithy_runtime_api::client::result::SdkError<
14335 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14336 R,
14337 >,
14338 > for Error
14339where
14340 R: Send + Sync + std::fmt::Debug + 'static,
14341{
14342 fn from(
14343 err: ::aws_smithy_runtime_api::client::result::SdkError<
14344 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError,
14345 R,
14346 >,
14347 ) -> Self {
14348 match err {
14349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14352 source: err.into(),
14353 }),
14354 }
14355 }
14356}
14357impl From<crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError> for Error {
14358 fn from(err: crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError) -> Self {
14359 match err {
14360 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsError::Unhandled(
14361 inner,
14362 ) => Error::Unhandled(inner),
14363 }
14364 }
14365}
14366impl<R>
14367 From<
14368 ::aws_smithy_runtime_api::client::result::SdkError<
14369 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14370 R,
14371 >,
14372 > for Error
14373where
14374 R: Send + Sync + std::fmt::Debug + 'static,
14375{
14376 fn from(
14377 err: ::aws_smithy_runtime_api::client::result::SdkError<
14378 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError,
14379 R,
14380 >,
14381 ) -> Self {
14382 match err {
14383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14386 source: err.into(),
14387 }),
14388 }
14389 }
14390}
14391impl From<crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError> for Error {
14392 fn from(err: crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError) -> Self {
14393 match err {
14394 crate::operation::get_network_insights_access_scope_content::GetNetworkInsightsAccessScopeContentError::Unhandled(inner) => {
14395 Error::Unhandled(inner)
14396 }
14397 }
14398 }
14399}
14400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>> for Error
14401where
14402 R: Send + Sync + std::fmt::Debug + 'static,
14403{
14404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_password_data::GetPasswordDataError, R>) -> Self {
14405 match err {
14406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14409 source: err.into(),
14410 }),
14411 }
14412 }
14413}
14414impl From<crate::operation::get_password_data::GetPasswordDataError> for Error {
14415 fn from(err: crate::operation::get_password_data::GetPasswordDataError) -> Self {
14416 match err {
14417 crate::operation::get_password_data::GetPasswordDataError::Unhandled(inner) => Error::Unhandled(inner),
14418 }
14419 }
14420}
14421impl<R>
14422 From<
14423 ::aws_smithy_runtime_api::client::result::SdkError<
14424 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14425 R,
14426 >,
14427 > for Error
14428where
14429 R: Send + Sync + std::fmt::Debug + 'static,
14430{
14431 fn from(
14432 err: ::aws_smithy_runtime_api::client::result::SdkError<
14433 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError,
14434 R,
14435 >,
14436 ) -> Self {
14437 match err {
14438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14441 source: err.into(),
14442 }),
14443 }
14444 }
14445}
14446impl From<crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError> for Error {
14447 fn from(err: crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError) -> Self {
14448 match err {
14449 crate::operation::get_reserved_instances_exchange_quote::GetReservedInstancesExchangeQuoteError::Unhandled(inner) => {
14450 Error::Unhandled(inner)
14451 }
14452 }
14453 }
14454}
14455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>>
14456 for Error
14457where
14458 R: Send + Sync + std::fmt::Debug + 'static,
14459{
14460 fn from(
14461 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_associations::GetRouteServerAssociationsError, R>,
14462 ) -> Self {
14463 match err {
14464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14467 source: err.into(),
14468 }),
14469 }
14470 }
14471}
14472impl From<crate::operation::get_route_server_associations::GetRouteServerAssociationsError> for Error {
14473 fn from(err: crate::operation::get_route_server_associations::GetRouteServerAssociationsError) -> Self {
14474 match err {
14475 crate::operation::get_route_server_associations::GetRouteServerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
14476 }
14477 }
14478}
14479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>>
14480 for Error
14481where
14482 R: Send + Sync + std::fmt::Debug + 'static,
14483{
14484 fn from(
14485 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError, R>,
14486 ) -> Self {
14487 match err {
14488 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14489 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14490 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14491 source: err.into(),
14492 }),
14493 }
14494 }
14495}
14496impl From<crate::operation::get_route_server_propagations::GetRouteServerPropagationsError> for Error {
14497 fn from(err: crate::operation::get_route_server_propagations::GetRouteServerPropagationsError) -> Self {
14498 match err {
14499 crate::operation::get_route_server_propagations::GetRouteServerPropagationsError::Unhandled(inner) => Error::Unhandled(inner),
14500 }
14501 }
14502}
14503impl<R>
14504 From<
14505 ::aws_smithy_runtime_api::client::result::SdkError<
14506 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14507 R,
14508 >,
14509 > for Error
14510where
14511 R: Send + Sync + std::fmt::Debug + 'static,
14512{
14513 fn from(
14514 err: ::aws_smithy_runtime_api::client::result::SdkError<
14515 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
14516 R,
14517 >,
14518 ) -> Self {
14519 match err {
14520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14523 source: err.into(),
14524 }),
14525 }
14526 }
14527}
14528impl From<crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError> for Error {
14529 fn from(err: crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError) -> Self {
14530 match err {
14531 crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError::Unhandled(inner) => Error::Unhandled(inner),
14532 }
14533 }
14534}
14535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>>
14536 for Error
14537where
14538 R: Send + Sync + std::fmt::Debug + 'static,
14539{
14540 fn from(
14541 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError, R>,
14542 ) -> Self {
14543 match err {
14544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14547 source: err.into(),
14548 }),
14549 }
14550 }
14551}
14552impl From<crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError> for Error {
14553 fn from(err: crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError) -> Self {
14554 match err {
14555 crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError::Unhandled(inner) => Error::Unhandled(inner),
14556 }
14557 }
14558}
14559impl<R>
14560 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError, R>>
14561 for Error
14562where
14563 R: Send + Sync + std::fmt::Debug + 'static,
14564{
14565 fn from(
14566 err: ::aws_smithy_runtime_api::client::result::SdkError<
14567 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
14568 R,
14569 >,
14570 ) -> Self {
14571 match err {
14572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14575 source: err.into(),
14576 }),
14577 }
14578 }
14579}
14580impl From<crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError> for Error {
14581 fn from(err: crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError) -> Self {
14582 match err {
14583 crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError::Unhandled(inner) => Error::Unhandled(inner),
14584 }
14585 }
14586}
14587impl<R>
14588 From<
14589 ::aws_smithy_runtime_api::client::result::SdkError<
14590 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14591 R,
14592 >,
14593 > for Error
14594where
14595 R: Send + Sync + std::fmt::Debug + 'static,
14596{
14597 fn from(
14598 err: ::aws_smithy_runtime_api::client::result::SdkError<
14599 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError,
14600 R,
14601 >,
14602 ) -> Self {
14603 match err {
14604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14607 source: err.into(),
14608 }),
14609 }
14610 }
14611}
14612impl From<crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError> for Error {
14613 fn from(err: crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError) -> Self {
14614 match err {
14615 crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError::Unhandled(inner) => {
14616 Error::Unhandled(inner)
14617 }
14618 }
14619 }
14620}
14621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>>
14622 for Error
14623where
14624 R: Send + Sync + std::fmt::Debug + 'static,
14625{
14626 fn from(
14627 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError, R>,
14628 ) -> Self {
14629 match err {
14630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14633 source: err.into(),
14634 }),
14635 }
14636 }
14637}
14638impl From<crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError> for Error {
14639 fn from(err: crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError) -> Self {
14640 match err {
14641 crate::operation::get_spot_placement_scores::GetSpotPlacementScoresError::Unhandled(inner) => Error::Unhandled(inner),
14642 }
14643 }
14644}
14645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>>
14646 for Error
14647where
14648 R: Send + Sync + std::fmt::Debug + 'static,
14649{
14650 fn from(
14651 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError, R>,
14652 ) -> Self {
14653 match err {
14654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14657 source: err.into(),
14658 }),
14659 }
14660 }
14661}
14662impl From<crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError> for Error {
14663 fn from(err: crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError) -> Self {
14664 match err {
14665 crate::operation::get_subnet_cidr_reservations::GetSubnetCidrReservationsError::Unhandled(inner) => Error::Unhandled(inner),
14666 }
14667 }
14668}
14669impl<R>
14670 From<
14671 ::aws_smithy_runtime_api::client::result::SdkError<
14672 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14673 R,
14674 >,
14675 > for Error
14676where
14677 R: Send + Sync + std::fmt::Debug + 'static,
14678{
14679 fn from(
14680 err: ::aws_smithy_runtime_api::client::result::SdkError<
14681 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError,
14682 R,
14683 >,
14684 ) -> Self {
14685 match err {
14686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14689 source: err.into(),
14690 }),
14691 }
14692 }
14693}
14694impl From<crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError> for Error {
14695 fn from(err: crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError) -> Self {
14696 match err {
14697 crate::operation::get_transit_gateway_attachment_propagations::GetTransitGatewayAttachmentPropagationsError::Unhandled(inner) => {
14698 Error::Unhandled(inner)
14699 }
14700 }
14701 }
14702}
14703impl<R>
14704 From<
14705 ::aws_smithy_runtime_api::client::result::SdkError<
14706 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14707 R,
14708 >,
14709 > for Error
14710where
14711 R: Send + Sync + std::fmt::Debug + 'static,
14712{
14713 fn from(
14714 err: ::aws_smithy_runtime_api::client::result::SdkError<
14715 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError,
14716 R,
14717 >,
14718 ) -> Self {
14719 match err {
14720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14723 source: err.into(),
14724 }),
14725 }
14726 }
14727}
14728impl From<crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError> for Error {
14729 fn from(err: crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError) -> Self {
14730 match err {
14731 crate::operation::get_transit_gateway_multicast_domain_associations::GetTransitGatewayMulticastDomainAssociationsError::Unhandled(
14732 inner,
14733 ) => Error::Unhandled(inner),
14734 }
14735 }
14736}
14737impl<R>
14738 From<
14739 ::aws_smithy_runtime_api::client::result::SdkError<
14740 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14741 R,
14742 >,
14743 > for Error
14744where
14745 R: Send + Sync + std::fmt::Debug + 'static,
14746{
14747 fn from(
14748 err: ::aws_smithy_runtime_api::client::result::SdkError<
14749 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError,
14750 R,
14751 >,
14752 ) -> Self {
14753 match err {
14754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14757 source: err.into(),
14758 }),
14759 }
14760 }
14761}
14762impl From<crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError> for Error {
14763 fn from(err: crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError) -> Self {
14764 match err {
14765 crate::operation::get_transit_gateway_policy_table_associations::GetTransitGatewayPolicyTableAssociationsError::Unhandled(inner) => {
14766 Error::Unhandled(inner)
14767 }
14768 }
14769 }
14770}
14771impl<R>
14772 From<
14773 ::aws_smithy_runtime_api::client::result::SdkError<
14774 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14775 R,
14776 >,
14777 > for Error
14778where
14779 R: Send + Sync + std::fmt::Debug + 'static,
14780{
14781 fn from(
14782 err: ::aws_smithy_runtime_api::client::result::SdkError<
14783 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError,
14784 R,
14785 >,
14786 ) -> Self {
14787 match err {
14788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14791 source: err.into(),
14792 }),
14793 }
14794 }
14795}
14796impl From<crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError> for Error {
14797 fn from(err: crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError) -> Self {
14798 match err {
14799 crate::operation::get_transit_gateway_policy_table_entries::GetTransitGatewayPolicyTableEntriesError::Unhandled(inner) => {
14800 Error::Unhandled(inner)
14801 }
14802 }
14803 }
14804}
14805impl<R>
14806 From<
14807 ::aws_smithy_runtime_api::client::result::SdkError<
14808 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14809 R,
14810 >,
14811 > for Error
14812where
14813 R: Send + Sync + std::fmt::Debug + 'static,
14814{
14815 fn from(
14816 err: ::aws_smithy_runtime_api::client::result::SdkError<
14817 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError,
14818 R,
14819 >,
14820 ) -> Self {
14821 match err {
14822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14825 source: err.into(),
14826 }),
14827 }
14828 }
14829}
14830impl From<crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError> for Error {
14831 fn from(err: crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError) -> Self {
14832 match err {
14833 crate::operation::get_transit_gateway_prefix_list_references::GetTransitGatewayPrefixListReferencesError::Unhandled(inner) => {
14834 Error::Unhandled(inner)
14835 }
14836 }
14837 }
14838}
14839impl<R>
14840 From<
14841 ::aws_smithy_runtime_api::client::result::SdkError<
14842 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14843 R,
14844 >,
14845 > for Error
14846where
14847 R: Send + Sync + std::fmt::Debug + 'static,
14848{
14849 fn from(
14850 err: ::aws_smithy_runtime_api::client::result::SdkError<
14851 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError,
14852 R,
14853 >,
14854 ) -> Self {
14855 match err {
14856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14859 source: err.into(),
14860 }),
14861 }
14862 }
14863}
14864impl From<crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError> for Error {
14865 fn from(err: crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError) -> Self {
14866 match err {
14867 crate::operation::get_transit_gateway_route_table_associations::GetTransitGatewayRouteTableAssociationsError::Unhandled(inner) => {
14868 Error::Unhandled(inner)
14869 }
14870 }
14871 }
14872}
14873impl<R>
14874 From<
14875 ::aws_smithy_runtime_api::client::result::SdkError<
14876 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14877 R,
14878 >,
14879 > for Error
14880where
14881 R: Send + Sync + std::fmt::Debug + 'static,
14882{
14883 fn from(
14884 err: ::aws_smithy_runtime_api::client::result::SdkError<
14885 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError,
14886 R,
14887 >,
14888 ) -> Self {
14889 match err {
14890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14893 source: err.into(),
14894 }),
14895 }
14896 }
14897}
14898impl From<crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError> for Error {
14899 fn from(err: crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError) -> Self {
14900 match err {
14901 crate::operation::get_transit_gateway_route_table_propagations::GetTransitGatewayRouteTablePropagationsError::Unhandled(inner) => {
14902 Error::Unhandled(inner)
14903 }
14904 }
14905 }
14906}
14907impl<R>
14908 From<
14909 ::aws_smithy_runtime_api::client::result::SdkError<
14910 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14911 R,
14912 >,
14913 > for Error
14914where
14915 R: Send + Sync + std::fmt::Debug + 'static,
14916{
14917 fn from(
14918 err: ::aws_smithy_runtime_api::client::result::SdkError<
14919 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError,
14920 R,
14921 >,
14922 ) -> Self {
14923 match err {
14924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14927 source: err.into(),
14928 }),
14929 }
14930 }
14931}
14932impl From<crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError> for Error {
14933 fn from(err: crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError) -> Self {
14934 match err {
14935 crate::operation::get_verified_access_endpoint_policy::GetVerifiedAccessEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14936 }
14937 }
14938}
14939impl<R>
14940 From<
14941 ::aws_smithy_runtime_api::client::result::SdkError<
14942 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14943 R,
14944 >,
14945 > for Error
14946where
14947 R: Send + Sync + std::fmt::Debug + 'static,
14948{
14949 fn from(
14950 err: ::aws_smithy_runtime_api::client::result::SdkError<
14951 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError,
14952 R,
14953 >,
14954 ) -> Self {
14955 match err {
14956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14959 source: err.into(),
14960 }),
14961 }
14962 }
14963}
14964impl From<crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError> for Error {
14965 fn from(err: crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError) -> Self {
14966 match err {
14967 crate::operation::get_verified_access_endpoint_targets::GetVerifiedAccessEndpointTargetsError::Unhandled(inner) => {
14968 Error::Unhandled(inner)
14969 }
14970 }
14971 }
14972}
14973impl<R>
14974 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError, R>>
14975 for Error
14976where
14977 R: Send + Sync + std::fmt::Debug + 'static,
14978{
14979 fn from(
14980 err: ::aws_smithy_runtime_api::client::result::SdkError<
14981 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError,
14982 R,
14983 >,
14984 ) -> Self {
14985 match err {
14986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
14987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
14988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
14989 source: err.into(),
14990 }),
14991 }
14992 }
14993}
14994impl From<crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError> for Error {
14995 fn from(err: crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError) -> Self {
14996 match err {
14997 crate::operation::get_verified_access_group_policy::GetVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
14998 }
14999 }
15000}
15001impl<R>
15002 From<
15003 ::aws_smithy_runtime_api::client::result::SdkError<
15004 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15005 R,
15006 >,
15007 > for Error
15008where
15009 R: Send + Sync + std::fmt::Debug + 'static,
15010{
15011 fn from(
15012 err: ::aws_smithy_runtime_api::client::result::SdkError<
15013 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError,
15014 R,
15015 >,
15016 ) -> Self {
15017 match err {
15018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15021 source: err.into(),
15022 }),
15023 }
15024 }
15025}
15026impl From<crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError> for Error {
15027 fn from(err: crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError) -> Self {
15028 match err {
15029 crate::operation::get_vpn_connection_device_sample_configuration::GetVpnConnectionDeviceSampleConfigurationError::Unhandled(inner) => {
15030 Error::Unhandled(inner)
15031 }
15032 }
15033 }
15034}
15035impl<R>
15036 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError, R>>
15037 for Error
15038where
15039 R: Send + Sync + std::fmt::Debug + 'static,
15040{
15041 fn from(
15042 err: ::aws_smithy_runtime_api::client::result::SdkError<
15043 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError,
15044 R,
15045 >,
15046 ) -> Self {
15047 match err {
15048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15051 source: err.into(),
15052 }),
15053 }
15054 }
15055}
15056impl From<crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError> for Error {
15057 fn from(err: crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError) -> Self {
15058 match err {
15059 crate::operation::get_vpn_connection_device_types::GetVpnConnectionDeviceTypesError::Unhandled(inner) => Error::Unhandled(inner),
15060 }
15061 }
15062}
15063impl<R>
15064 From<
15065 ::aws_smithy_runtime_api::client::result::SdkError<
15066 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15067 R,
15068 >,
15069 > for Error
15070where
15071 R: Send + Sync + std::fmt::Debug + 'static,
15072{
15073 fn from(
15074 err: ::aws_smithy_runtime_api::client::result::SdkError<
15075 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError,
15076 R,
15077 >,
15078 ) -> Self {
15079 match err {
15080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15083 source: err.into(),
15084 }),
15085 }
15086 }
15087}
15088impl From<crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError> for Error {
15089 fn from(err: crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError) -> Self {
15090 match err {
15091 crate::operation::get_vpn_tunnel_replacement_status::GetVpnTunnelReplacementStatusError::Unhandled(inner) => Error::Unhandled(inner),
15092 }
15093 }
15094}
15095impl<R>
15096 From<
15097 ::aws_smithy_runtime_api::client::result::SdkError<
15098 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15099 R,
15100 >,
15101 > for Error
15102where
15103 R: Send + Sync + std::fmt::Debug + 'static,
15104{
15105 fn from(
15106 err: ::aws_smithy_runtime_api::client::result::SdkError<
15107 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15108 R,
15109 >,
15110 ) -> Self {
15111 match err {
15112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15115 source: err.into(),
15116 }),
15117 }
15118 }
15119}
15120impl From<crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError> for Error {
15121 fn from(
15122 err: crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError,
15123 ) -> Self {
15124 match err {
15125 crate::operation::import_client_vpn_client_certificate_revocation_list::ImportClientVpnClientCertificateRevocationListError::Unhandled(inner) => Error::Unhandled(inner),
15126 }
15127 }
15128}
15129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>> for Error
15130where
15131 R: Send + Sync + std::fmt::Debug + 'static,
15132{
15133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_image::ImportImageError, R>) -> Self {
15134 match err {
15135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15138 source: err.into(),
15139 }),
15140 }
15141 }
15142}
15143impl From<crate::operation::import_image::ImportImageError> for Error {
15144 fn from(err: crate::operation::import_image::ImportImageError) -> Self {
15145 match err {
15146 crate::operation::import_image::ImportImageError::Unhandled(inner) => Error::Unhandled(inner),
15147 }
15148 }
15149}
15150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_instance::ImportInstanceError, 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_instance::ImportInstanceError, 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_instance::ImportInstanceError> for Error {
15165 fn from(err: crate::operation::import_instance::ImportInstanceError) -> Self {
15166 match err {
15167 crate::operation::import_instance::ImportInstanceError::Unhandled(inner) => Error::Unhandled(inner),
15168 }
15169 }
15170}
15171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_pair::ImportKeyPairError, 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_key_pair::ImportKeyPairError, 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_key_pair::ImportKeyPairError> for Error {
15186 fn from(err: crate::operation::import_key_pair::ImportKeyPairError) -> Self {
15187 match err {
15188 crate::operation::import_key_pair::ImportKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
15189 }
15190 }
15191}
15192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_snapshot::ImportSnapshotError, 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_snapshot::ImportSnapshotError, 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_snapshot::ImportSnapshotError> for Error {
15207 fn from(err: crate::operation::import_snapshot::ImportSnapshotError) -> Self {
15208 match err {
15209 crate::operation::import_snapshot::ImportSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15210 }
15211 }
15212}
15213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_volume::ImportVolumeError, 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_volume::ImportVolumeError, 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_volume::ImportVolumeError> for Error {
15228 fn from(err: crate::operation::import_volume::ImportVolumeError) -> Self {
15229 match err {
15230 crate::operation::import_volume::ImportVolumeError::Unhandled(inner) => Error::Unhandled(inner),
15231 }
15232 }
15233}
15234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>>
15235 for Error
15236where
15237 R: Send + Sync + std::fmt::Debug + 'static,
15238{
15239 fn from(
15240 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError, R>,
15241 ) -> Self {
15242 match err {
15243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15246 source: err.into(),
15247 }),
15248 }
15249 }
15250}
15251impl From<crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError> for Error {
15252 fn from(err: crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError) -> Self {
15253 match err {
15254 crate::operation::list_images_in_recycle_bin::ListImagesInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15255 }
15256 }
15257}
15258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>>
15259 for Error
15260where
15261 R: Send + Sync + std::fmt::Debug + 'static,
15262{
15263 fn from(
15264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError, R>,
15265 ) -> Self {
15266 match err {
15267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15270 source: err.into(),
15271 }),
15272 }
15273 }
15274}
15275impl From<crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError> for Error {
15276 fn from(err: crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError) -> Self {
15277 match err {
15278 crate::operation::list_snapshots_in_recycle_bin::ListSnapshotsInRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
15279 }
15280 }
15281}
15282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>> for Error
15283where
15284 R: Send + Sync + std::fmt::Debug + 'static,
15285{
15286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lock_snapshot::LockSnapshotError, R>) -> 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::lock_snapshot::LockSnapshotError> for Error {
15297 fn from(err: crate::operation::lock_snapshot::LockSnapshotError) -> Self {
15298 match err {
15299 crate::operation::lock_snapshot::LockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
15300 }
15301 }
15302}
15303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>> for Error
15304where
15305 R: Send + Sync + std::fmt::Debug + 'static,
15306{
15307 fn from(
15308 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_address_attribute::ModifyAddressAttributeError, R>,
15309 ) -> Self {
15310 match err {
15311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15314 source: err.into(),
15315 }),
15316 }
15317 }
15318}
15319impl From<crate::operation::modify_address_attribute::ModifyAddressAttributeError> for Error {
15320 fn from(err: crate::operation::modify_address_attribute::ModifyAddressAttributeError) -> Self {
15321 match err {
15322 crate::operation::modify_address_attribute::ModifyAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15323 }
15324 }
15325}
15326impl<R>
15327 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError, R>>
15328 for Error
15329where
15330 R: Send + Sync + std::fmt::Debug + 'static,
15331{
15332 fn from(
15333 err: ::aws_smithy_runtime_api::client::result::SdkError<
15334 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError,
15335 R,
15336 >,
15337 ) -> Self {
15338 match err {
15339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15342 source: err.into(),
15343 }),
15344 }
15345 }
15346}
15347impl From<crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError> for Error {
15348 fn from(err: crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError) -> Self {
15349 match err {
15350 crate::operation::modify_availability_zone_group::ModifyAvailabilityZoneGroupError::Unhandled(inner) => Error::Unhandled(inner),
15351 }
15352 }
15353}
15354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
15355 for Error
15356where
15357 R: Send + Sync + std::fmt::Debug + 'static,
15358{
15359 fn from(
15360 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
15361 ) -> Self {
15362 match err {
15363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15366 source: err.into(),
15367 }),
15368 }
15369 }
15370}
15371impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
15372 fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
15373 match err {
15374 crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
15375 }
15376 }
15377}
15378impl<R>
15379 From<
15380 ::aws_smithy_runtime_api::client::result::SdkError<
15381 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15382 R,
15383 >,
15384 > for Error
15385where
15386 R: Send + Sync + std::fmt::Debug + 'static,
15387{
15388 fn from(
15389 err: ::aws_smithy_runtime_api::client::result::SdkError<
15390 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError,
15391 R,
15392 >,
15393 ) -> Self {
15394 match err {
15395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15398 source: err.into(),
15399 }),
15400 }
15401 }
15402}
15403impl From<crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError> for Error {
15404 fn from(err: crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError) -> Self {
15405 match err {
15406 crate::operation::modify_capacity_reservation_fleet::ModifyCapacityReservationFleetError::Unhandled(inner) => Error::Unhandled(inner),
15407 }
15408 }
15409}
15410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>>
15411 for Error
15412where
15413 R: Send + Sync + std::fmt::Debug + 'static,
15414{
15415 fn from(
15416 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError, R>,
15417 ) -> Self {
15418 match err {
15419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15422 source: err.into(),
15423 }),
15424 }
15425 }
15426}
15427impl From<crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError> for Error {
15428 fn from(err: crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError) -> Self {
15429 match err {
15430 crate::operation::modify_client_vpn_endpoint::ModifyClientVpnEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15431 }
15432 }
15433}
15434impl<R>
15435 From<
15436 ::aws_smithy_runtime_api::client::result::SdkError<
15437 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15438 R,
15439 >,
15440 > for Error
15441where
15442 R: Send + Sync + std::fmt::Debug + 'static,
15443{
15444 fn from(
15445 err: ::aws_smithy_runtime_api::client::result::SdkError<
15446 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError,
15447 R,
15448 >,
15449 ) -> Self {
15450 match err {
15451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15454 source: err.into(),
15455 }),
15456 }
15457 }
15458}
15459impl From<crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError> for Error {
15460 fn from(err: crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError) -> Self {
15461 match err {
15462 crate::operation::modify_default_credit_specification::ModifyDefaultCreditSpecificationError::Unhandled(inner) => Error::Unhandled(inner),
15463 }
15464 }
15465}
15466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>>
15467 for Error
15468where
15469 R: Send + Sync + std::fmt::Debug + 'static,
15470{
15471 fn from(
15472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError, R>,
15473 ) -> Self {
15474 match err {
15475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15478 source: err.into(),
15479 }),
15480 }
15481 }
15482}
15483impl From<crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError> for Error {
15484 fn from(err: crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError) -> Self {
15485 match err {
15486 crate::operation::modify_ebs_default_kms_key_id::ModifyEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
15487 }
15488 }
15489}
15490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>> for Error
15491where
15492 R: Send + Sync + std::fmt::Debug + 'static,
15493{
15494 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fleet::ModifyFleetError, R>) -> 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_fleet::ModifyFleetError> for Error {
15505 fn from(err: crate::operation::modify_fleet::ModifyFleetError) -> Self {
15506 match err {
15507 crate::operation::modify_fleet::ModifyFleetError::Unhandled(inner) => Error::Unhandled(inner),
15508 }
15509 }
15510}
15511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>>
15512 for Error
15513where
15514 R: Send + Sync + std::fmt::Debug + 'static,
15515{
15516 fn from(
15517 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError, R>,
15518 ) -> Self {
15519 match err {
15520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15523 source: err.into(),
15524 }),
15525 }
15526 }
15527}
15528impl From<crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError> for Error {
15529 fn from(err: crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError) -> Self {
15530 match err {
15531 crate::operation::modify_fpga_image_attribute::ModifyFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15532 }
15533 }
15534}
15535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>> for Error
15536where
15537 R: Send + Sync + std::fmt::Debug + 'static,
15538{
15539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_hosts::ModifyHostsError, R>) -> 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_hosts::ModifyHostsError> for Error {
15550 fn from(err: crate::operation::modify_hosts::ModifyHostsError) -> Self {
15551 match err {
15552 crate::operation::modify_hosts::ModifyHostsError::Unhandled(inner) => Error::Unhandled(inner),
15553 }
15554 }
15555}
15556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>>
15557 for Error
15558where
15559 R: Send + Sync + std::fmt::Debug + 'static,
15560{
15561 fn from(
15562 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError, R>,
15563 ) -> Self {
15564 match err {
15565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15568 source: err.into(),
15569 }),
15570 }
15571 }
15572}
15573impl From<crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError> for Error {
15574 fn from(err: crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError) -> Self {
15575 match err {
15576 crate::operation::modify_identity_id_format::ModifyIdentityIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15577 }
15578 }
15579}
15580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>> for Error
15581where
15582 R: Send + Sync + std::fmt::Debug + 'static,
15583{
15584 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_id_format::ModifyIdFormatError, R>) -> 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_id_format::ModifyIdFormatError> for Error {
15595 fn from(err: crate::operation::modify_id_format::ModifyIdFormatError) -> Self {
15596 match err {
15597 crate::operation::modify_id_format::ModifyIdFormatError::Unhandled(inner) => Error::Unhandled(inner),
15598 }
15599 }
15600}
15601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_image_attribute::ModifyImageAttributeError, 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_image_attribute::ModifyImageAttributeError, 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_image_attribute::ModifyImageAttributeError> for Error {
15616 fn from(err: crate::operation::modify_image_attribute::ModifyImageAttributeError) -> Self {
15617 match err {
15618 crate::operation::modify_image_attribute::ModifyImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15619 }
15620 }
15621}
15622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>>
15623 for Error
15624where
15625 R: Send + Sync + std::fmt::Debug + 'static,
15626{
15627 fn from(
15628 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError, R>,
15629 ) -> Self {
15630 match err {
15631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15634 source: err.into(),
15635 }),
15636 }
15637 }
15638}
15639impl From<crate::operation::modify_instance_attribute::ModifyInstanceAttributeError> for Error {
15640 fn from(err: crate::operation::modify_instance_attribute::ModifyInstanceAttributeError) -> Self {
15641 match err {
15642 crate::operation::modify_instance_attribute::ModifyInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
15643 }
15644 }
15645}
15646impl<R>
15647 From<
15648 ::aws_smithy_runtime_api::client::result::SdkError<
15649 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15650 R,
15651 >,
15652 > for Error
15653where
15654 R: Send + Sync + std::fmt::Debug + 'static,
15655{
15656 fn from(
15657 err: ::aws_smithy_runtime_api::client::result::SdkError<
15658 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError,
15659 R,
15660 >,
15661 ) -> Self {
15662 match err {
15663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15666 source: err.into(),
15667 }),
15668 }
15669 }
15670}
15671impl From<crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError> for Error {
15672 fn from(err: crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError) -> Self {
15673 match err {
15674 crate::operation::modify_instance_capacity_reservation_attributes::ModifyInstanceCapacityReservationAttributesError::Unhandled(inner) => {
15675 Error::Unhandled(inner)
15676 }
15677 }
15678 }
15679}
15680impl<R>
15681 From<
15682 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError, R>,
15683 > for Error
15684where
15685 R: Send + Sync + std::fmt::Debug + 'static,
15686{
15687 fn from(
15688 err: ::aws_smithy_runtime_api::client::result::SdkError<
15689 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError,
15690 R,
15691 >,
15692 ) -> Self {
15693 match err {
15694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15697 source: err.into(),
15698 }),
15699 }
15700 }
15701}
15702impl From<crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError> for Error {
15703 fn from(err: crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError) -> Self {
15704 match err {
15705 crate::operation::modify_instance_connect_endpoint::ModifyInstanceConnectEndpointError::Unhandled(inner) => Error::Unhandled(inner),
15706 }
15707 }
15708}
15709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>>
15710 for Error
15711where
15712 R: Send + Sync + std::fmt::Debug + 'static,
15713{
15714 fn from(
15715 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError, R>,
15716 ) -> Self {
15717 match err {
15718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15721 source: err.into(),
15722 }),
15723 }
15724 }
15725}
15726impl From<crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError> for Error {
15727 fn from(err: crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError) -> Self {
15728 match err {
15729 crate::operation::modify_instance_cpu_options::ModifyInstanceCpuOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15730 }
15731 }
15732}
15733impl<R>
15734 From<
15735 ::aws_smithy_runtime_api::client::result::SdkError<
15736 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15737 R,
15738 >,
15739 > for Error
15740where
15741 R: Send + Sync + std::fmt::Debug + 'static,
15742{
15743 fn from(
15744 err: ::aws_smithy_runtime_api::client::result::SdkError<
15745 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError,
15746 R,
15747 >,
15748 ) -> Self {
15749 match err {
15750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15753 source: err.into(),
15754 }),
15755 }
15756 }
15757}
15758impl From<crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError> for Error {
15759 fn from(err: crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError) -> Self {
15760 match err {
15761 crate::operation::modify_instance_credit_specification::ModifyInstanceCreditSpecificationError::Unhandled(inner) => {
15762 Error::Unhandled(inner)
15763 }
15764 }
15765 }
15766}
15767impl<R>
15768 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError, R>>
15769 for Error
15770where
15771 R: Send + Sync + std::fmt::Debug + 'static,
15772{
15773 fn from(
15774 err: ::aws_smithy_runtime_api::client::result::SdkError<
15775 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError,
15776 R,
15777 >,
15778 ) -> Self {
15779 match err {
15780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15783 source: err.into(),
15784 }),
15785 }
15786 }
15787}
15788impl From<crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError> for Error {
15789 fn from(err: crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError) -> Self {
15790 match err {
15791 crate::operation::modify_instance_event_start_time::ModifyInstanceEventStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
15792 }
15793 }
15794}
15795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>>
15796 for Error
15797where
15798 R: Send + Sync + std::fmt::Debug + 'static,
15799{
15800 fn from(
15801 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError, R>,
15802 ) -> Self {
15803 match err {
15804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15807 source: err.into(),
15808 }),
15809 }
15810 }
15811}
15812impl From<crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError> for Error {
15813 fn from(err: crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError) -> Self {
15814 match err {
15815 crate::operation::modify_instance_event_window::ModifyInstanceEventWindowError::Unhandled(inner) => Error::Unhandled(inner),
15816 }
15817 }
15818}
15819impl<R>
15820 From<
15821 ::aws_smithy_runtime_api::client::result::SdkError<
15822 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15823 R,
15824 >,
15825 > for Error
15826where
15827 R: Send + Sync + std::fmt::Debug + 'static,
15828{
15829 fn from(
15830 err: ::aws_smithy_runtime_api::client::result::SdkError<
15831 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError,
15832 R,
15833 >,
15834 ) -> Self {
15835 match err {
15836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15839 source: err.into(),
15840 }),
15841 }
15842 }
15843}
15844impl From<crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError> for Error {
15845 fn from(err: crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError) -> Self {
15846 match err {
15847 crate::operation::modify_instance_maintenance_options::ModifyInstanceMaintenanceOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15848 }
15849 }
15850}
15851impl<R>
15852 From<
15853 ::aws_smithy_runtime_api::client::result::SdkError<
15854 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15855 R,
15856 >,
15857 > for Error
15858where
15859 R: Send + Sync + std::fmt::Debug + 'static,
15860{
15861 fn from(
15862 err: ::aws_smithy_runtime_api::client::result::SdkError<
15863 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError,
15864 R,
15865 >,
15866 ) -> Self {
15867 match err {
15868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15871 source: err.into(),
15872 }),
15873 }
15874 }
15875}
15876impl From<crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError> for Error {
15877 fn from(err: crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError) -> Self {
15878 match err {
15879 crate::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
15880 }
15881 }
15882}
15883impl<R>
15884 From<
15885 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError, R>,
15886 > for Error
15887where
15888 R: Send + Sync + std::fmt::Debug + 'static,
15889{
15890 fn from(
15891 err: ::aws_smithy_runtime_api::client::result::SdkError<
15892 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError,
15893 R,
15894 >,
15895 ) -> Self {
15896 match err {
15897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15900 source: err.into(),
15901 }),
15902 }
15903 }
15904}
15905impl From<crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError> for Error {
15906 fn from(err: crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError) -> Self {
15907 match err {
15908 crate::operation::modify_instance_metadata_options::ModifyInstanceMetadataOptionsError::Unhandled(inner) => Error::Unhandled(inner),
15909 }
15910 }
15911}
15912impl<R>
15913 From<
15914 ::aws_smithy_runtime_api::client::result::SdkError<
15915 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15916 R,
15917 >,
15918 > for Error
15919where
15920 R: Send + Sync + std::fmt::Debug + 'static,
15921{
15922 fn from(
15923 err: ::aws_smithy_runtime_api::client::result::SdkError<
15924 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError,
15925 R,
15926 >,
15927 ) -> Self {
15928 match err {
15929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15932 source: err.into(),
15933 }),
15934 }
15935 }
15936}
15937impl From<crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError> for Error {
15938 fn from(err: crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError) -> Self {
15939 match err {
15940 crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError::Unhandled(inner) => {
15941 Error::Unhandled(inner)
15942 }
15943 }
15944 }
15945}
15946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>>
15947 for Error
15948where
15949 R: Send + Sync + std::fmt::Debug + 'static,
15950{
15951 fn from(
15952 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_instance_placement::ModifyInstancePlacementError, R>,
15953 ) -> Self {
15954 match err {
15955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
15956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
15957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
15958 source: err.into(),
15959 }),
15960 }
15961 }
15962}
15963impl From<crate::operation::modify_instance_placement::ModifyInstancePlacementError> for Error {
15964 fn from(err: crate::operation::modify_instance_placement::ModifyInstancePlacementError) -> Self {
15965 match err {
15966 crate::operation::modify_instance_placement::ModifyInstancePlacementError::Unhandled(inner) => Error::Unhandled(inner),
15967 }
15968 }
15969}
15970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>> for Error
15971where
15972 R: Send + Sync + std::fmt::Debug + 'static,
15973{
15974 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam::ModifyIpamError, R>) -> 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_ipam::ModifyIpamError> for Error {
15985 fn from(err: crate::operation::modify_ipam::ModifyIpamError) -> Self {
15986 match err {
15987 crate::operation::modify_ipam::ModifyIpamError::Unhandled(inner) => Error::Unhandled(inner),
15988 }
15989 }
15990}
15991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_pool::ModifyIpamPoolError, 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_pool::ModifyIpamPoolError, 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_pool::ModifyIpamPoolError> for Error {
16006 fn from(err: crate::operation::modify_ipam_pool::ModifyIpamPoolError) -> Self {
16007 match err {
16008 crate::operation::modify_ipam_pool::ModifyIpamPoolError::Unhandled(inner) => Error::Unhandled(inner),
16009 }
16010 }
16011}
16012impl<R>
16013 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError, R>>
16014 for Error
16015where
16016 R: Send + Sync + std::fmt::Debug + 'static,
16017{
16018 fn from(
16019 err: ::aws_smithy_runtime_api::client::result::SdkError<
16020 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError,
16021 R,
16022 >,
16023 ) -> Self {
16024 match err {
16025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16028 source: err.into(),
16029 }),
16030 }
16031 }
16032}
16033impl From<crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError> for Error {
16034 fn from(err: crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError) -> Self {
16035 match err {
16036 crate::operation::modify_ipam_prefix_list_resolver::ModifyIpamPrefixListResolverError::Unhandled(inner) => Error::Unhandled(inner),
16037 }
16038 }
16039}
16040impl<R>
16041 From<
16042 ::aws_smithy_runtime_api::client::result::SdkError<
16043 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16044 R,
16045 >,
16046 > for Error
16047where
16048 R: Send + Sync + std::fmt::Debug + 'static,
16049{
16050 fn from(
16051 err: ::aws_smithy_runtime_api::client::result::SdkError<
16052 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError,
16053 R,
16054 >,
16055 ) -> Self {
16056 match err {
16057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16060 source: err.into(),
16061 }),
16062 }
16063 }
16064}
16065impl From<crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError> for Error {
16066 fn from(err: crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError) -> Self {
16067 match err {
16068 crate::operation::modify_ipam_prefix_list_resolver_target::ModifyIpamPrefixListResolverTargetError::Unhandled(inner) => {
16069 Error::Unhandled(inner)
16070 }
16071 }
16072 }
16073}
16074impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>>
16075 for Error
16076where
16077 R: Send + Sync + std::fmt::Debug + 'static,
16078{
16079 fn from(
16080 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError, R>,
16081 ) -> Self {
16082 match err {
16083 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16084 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16085 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16086 source: err.into(),
16087 }),
16088 }
16089 }
16090}
16091impl From<crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError> for Error {
16092 fn from(err: crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError) -> Self {
16093 match err {
16094 crate::operation::modify_ipam_resource_cidr::ModifyIpamResourceCidrError::Unhandled(inner) => Error::Unhandled(inner),
16095 }
16096 }
16097}
16098impl<R>
16099 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError, R>>
16100 for Error
16101where
16102 R: Send + Sync + std::fmt::Debug + 'static,
16103{
16104 fn from(
16105 err: ::aws_smithy_runtime_api::client::result::SdkError<
16106 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError,
16107 R,
16108 >,
16109 ) -> Self {
16110 match err {
16111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16114 source: err.into(),
16115 }),
16116 }
16117 }
16118}
16119impl From<crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError> for Error {
16120 fn from(err: crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError) -> Self {
16121 match err {
16122 crate::operation::modify_ipam_resource_discovery::ModifyIpamResourceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
16123 }
16124 }
16125}
16126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>> for Error
16127where
16128 R: Send + Sync + std::fmt::Debug + 'static,
16129{
16130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ipam_scope::ModifyIpamScopeError, R>) -> 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_scope::ModifyIpamScopeError> for Error {
16141 fn from(err: crate::operation::modify_ipam_scope::ModifyIpamScopeError) -> Self {
16142 match err {
16143 crate::operation::modify_ipam_scope::ModifyIpamScopeError::Unhandled(inner) => Error::Unhandled(inner),
16144 }
16145 }
16146}
16147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_launch_template::ModifyLaunchTemplateError, 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_launch_template::ModifyLaunchTemplateError, 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_launch_template::ModifyLaunchTemplateError> for Error {
16162 fn from(err: crate::operation::modify_launch_template::ModifyLaunchTemplateError) -> Self {
16163 match err {
16164 crate::operation::modify_launch_template::ModifyLaunchTemplateError::Unhandled(inner) => Error::Unhandled(inner),
16165 }
16166 }
16167}
16168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>>
16169 for Error
16170where
16171 R: Send + Sync + std::fmt::Debug + 'static,
16172{
16173 fn from(
16174 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError, R>,
16175 ) -> Self {
16176 match err {
16177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16180 source: err.into(),
16181 }),
16182 }
16183 }
16184}
16185impl From<crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError> for Error {
16186 fn from(err: crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError) -> Self {
16187 match err {
16188 crate::operation::modify_local_gateway_route::ModifyLocalGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
16189 }
16190 }
16191}
16192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>>
16193 for Error
16194where
16195 R: Send + Sync + std::fmt::Debug + 'static,
16196{
16197 fn from(
16198 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError, R>,
16199 ) -> Self {
16200 match err {
16201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16204 source: err.into(),
16205 }),
16206 }
16207 }
16208}
16209impl From<crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError> for Error {
16210 fn from(err: crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError) -> Self {
16211 match err {
16212 crate::operation::modify_managed_prefix_list::ModifyManagedPrefixListError::Unhandled(inner) => Error::Unhandled(inner),
16213 }
16214 }
16215}
16216impl<R>
16217 From<
16218 ::aws_smithy_runtime_api::client::result::SdkError<
16219 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16220 R,
16221 >,
16222 > for Error
16223where
16224 R: Send + Sync + std::fmt::Debug + 'static,
16225{
16226 fn from(
16227 err: ::aws_smithy_runtime_api::client::result::SdkError<
16228 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError,
16229 R,
16230 >,
16231 ) -> Self {
16232 match err {
16233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16236 source: err.into(),
16237 }),
16238 }
16239 }
16240}
16241impl From<crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError> for Error {
16242 fn from(err: crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError) -> Self {
16243 match err {
16244 crate::operation::modify_network_interface_attribute::ModifyNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16245 }
16246 }
16247}
16248impl<R>
16249 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError, R>>
16250 for Error
16251where
16252 R: Send + Sync + std::fmt::Debug + 'static,
16253{
16254 fn from(
16255 err: ::aws_smithy_runtime_api::client::result::SdkError<
16256 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError,
16257 R,
16258 >,
16259 ) -> Self {
16260 match err {
16261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16264 source: err.into(),
16265 }),
16266 }
16267 }
16268}
16269impl From<crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError> for Error {
16270 fn from(err: crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError) -> Self {
16271 match err {
16272 crate::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16273 }
16274 }
16275}
16276impl<R>
16277 From<
16278 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError, R>,
16279 > for Error
16280where
16281 R: Send + Sync + std::fmt::Debug + 'static,
16282{
16283 fn from(
16284 err: ::aws_smithy_runtime_api::client::result::SdkError<
16285 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError,
16286 R,
16287 >,
16288 ) -> Self {
16289 match err {
16290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16293 source: err.into(),
16294 }),
16295 }
16296 }
16297}
16298impl From<crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError> for Error {
16299 fn from(err: crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError) -> Self {
16300 match err {
16301 crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError::Unhandled(inner) => Error::Unhandled(inner),
16302 }
16303 }
16304}
16305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>>
16306 for Error
16307where
16308 R: Send + Sync + std::fmt::Debug + 'static,
16309{
16310 fn from(
16311 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_reserved_instances::ModifyReservedInstancesError, R>,
16312 ) -> Self {
16313 match err {
16314 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16315 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16316 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16317 source: err.into(),
16318 }),
16319 }
16320 }
16321}
16322impl From<crate::operation::modify_reserved_instances::ModifyReservedInstancesError> for Error {
16323 fn from(err: crate::operation::modify_reserved_instances::ModifyReservedInstancesError) -> Self {
16324 match err {
16325 crate::operation::modify_reserved_instances::ModifyReservedInstancesError::Unhandled(inner) => Error::Unhandled(inner),
16326 }
16327 }
16328}
16329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>> for Error
16330where
16331 R: Send + Sync + std::fmt::Debug + 'static,
16332{
16333 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_route_server::ModifyRouteServerError, R>) -> 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_route_server::ModifyRouteServerError> for Error {
16344 fn from(err: crate::operation::modify_route_server::ModifyRouteServerError) -> Self {
16345 match err {
16346 crate::operation::modify_route_server::ModifyRouteServerError::Unhandled(inner) => Error::Unhandled(inner),
16347 }
16348 }
16349}
16350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>>
16351 for Error
16352where
16353 R: Send + Sync + std::fmt::Debug + 'static,
16354{
16355 fn from(
16356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError, R>,
16357 ) -> Self {
16358 match err {
16359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16362 source: err.into(),
16363 }),
16364 }
16365 }
16366}
16367impl From<crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError> for Error {
16368 fn from(err: crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError) -> Self {
16369 match err {
16370 crate::operation::modify_security_group_rules::ModifySecurityGroupRulesError::Unhandled(inner) => Error::Unhandled(inner),
16371 }
16372 }
16373}
16374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>>
16375 for Error
16376where
16377 R: Send + Sync + std::fmt::Debug + 'static,
16378{
16379 fn from(
16380 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError, R>,
16381 ) -> Self {
16382 match err {
16383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16386 source: err.into(),
16387 }),
16388 }
16389 }
16390}
16391impl From<crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError> for Error {
16392 fn from(err: crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError) -> Self {
16393 match err {
16394 crate::operation::modify_snapshot_attribute::ModifySnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16395 }
16396 }
16397}
16398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>> for Error
16399where
16400 R: Send + Sync + std::fmt::Debug + 'static,
16401{
16402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_tier::ModifySnapshotTierError, R>) -> 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_tier::ModifySnapshotTierError> for Error {
16413 fn from(err: crate::operation::modify_snapshot_tier::ModifySnapshotTierError) -> Self {
16414 match err {
16415 crate::operation::modify_snapshot_tier::ModifySnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
16416 }
16417 }
16418}
16419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>>
16420 for Error
16421where
16422 R: Send + Sync + std::fmt::Debug + 'static,
16423{
16424 fn from(
16425 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError, R>,
16426 ) -> Self {
16427 match err {
16428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16431 source: err.into(),
16432 }),
16433 }
16434 }
16435}
16436impl From<crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError> for Error {
16437 fn from(err: crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError) -> Self {
16438 match err {
16439 crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError::Unhandled(inner) => Error::Unhandled(inner),
16440 }
16441 }
16442}
16443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>> for Error
16444where
16445 R: Send + Sync + std::fmt::Debug + 'static,
16446{
16447 fn from(
16448 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError, R>,
16449 ) -> Self {
16450 match err {
16451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16454 source: err.into(),
16455 }),
16456 }
16457 }
16458}
16459impl From<crate::operation::modify_subnet_attribute::ModifySubnetAttributeError> for Error {
16460 fn from(err: crate::operation::modify_subnet_attribute::ModifySubnetAttributeError) -> Self {
16461 match err {
16462 crate::operation::modify_subnet_attribute::ModifySubnetAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16463 }
16464 }
16465}
16466impl<R>
16467 From<
16468 ::aws_smithy_runtime_api::client::result::SdkError<
16469 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16470 R,
16471 >,
16472 > for Error
16473where
16474 R: Send + Sync + std::fmt::Debug + 'static,
16475{
16476 fn from(
16477 err: ::aws_smithy_runtime_api::client::result::SdkError<
16478 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError,
16479 R,
16480 >,
16481 ) -> Self {
16482 match err {
16483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16486 source: err.into(),
16487 }),
16488 }
16489 }
16490}
16491impl From<crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError> for Error {
16492 fn from(err: crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError) -> Self {
16493 match err {
16494 crate::operation::modify_traffic_mirror_filter_network_services::ModifyTrafficMirrorFilterNetworkServicesError::Unhandled(inner) => {
16495 Error::Unhandled(inner)
16496 }
16497 }
16498 }
16499}
16500impl<R>
16501 From<
16502 ::aws_smithy_runtime_api::client::result::SdkError<
16503 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16504 R,
16505 >,
16506 > for Error
16507where
16508 R: Send + Sync + std::fmt::Debug + 'static,
16509{
16510 fn from(
16511 err: ::aws_smithy_runtime_api::client::result::SdkError<
16512 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
16513 R,
16514 >,
16515 ) -> Self {
16516 match err {
16517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16520 source: err.into(),
16521 }),
16522 }
16523 }
16524}
16525impl From<crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError> for Error {
16526 fn from(err: crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError) -> Self {
16527 match err {
16528 crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError::Unhandled(inner) => Error::Unhandled(inner),
16529 }
16530 }
16531}
16532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>>
16533 for Error
16534where
16535 R: Send + Sync + std::fmt::Debug + 'static,
16536{
16537 fn from(
16538 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError, R>,
16539 ) -> Self {
16540 match err {
16541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16544 source: err.into(),
16545 }),
16546 }
16547 }
16548}
16549impl From<crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError> for Error {
16550 fn from(err: crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError) -> Self {
16551 match err {
16552 crate::operation::modify_traffic_mirror_session::ModifyTrafficMirrorSessionError::Unhandled(inner) => Error::Unhandled(inner),
16553 }
16554 }
16555}
16556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>> for Error
16557where
16558 R: Send + Sync + std::fmt::Debug + 'static,
16559{
16560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_transit_gateway::ModifyTransitGatewayError, R>) -> 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_transit_gateway::ModifyTransitGatewayError> for Error {
16571 fn from(err: crate::operation::modify_transit_gateway::ModifyTransitGatewayError) -> Self {
16572 match err {
16573 crate::operation::modify_transit_gateway::ModifyTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
16574 }
16575 }
16576}
16577impl<R>
16578 From<
16579 ::aws_smithy_runtime_api::client::result::SdkError<
16580 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16581 R,
16582 >,
16583 > for Error
16584where
16585 R: Send + Sync + std::fmt::Debug + 'static,
16586{
16587 fn from(
16588 err: ::aws_smithy_runtime_api::client::result::SdkError<
16589 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError,
16590 R,
16591 >,
16592 ) -> Self {
16593 match err {
16594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16597 source: err.into(),
16598 }),
16599 }
16600 }
16601}
16602impl From<crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError> for Error {
16603 fn from(err: crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError) -> Self {
16604 match err {
16605 crate::operation::modify_transit_gateway_prefix_list_reference::ModifyTransitGatewayPrefixListReferenceError::Unhandled(inner) => {
16606 Error::Unhandled(inner)
16607 }
16608 }
16609 }
16610}
16611impl<R>
16612 From<
16613 ::aws_smithy_runtime_api::client::result::SdkError<
16614 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16615 R,
16616 >,
16617 > for Error
16618where
16619 R: Send + Sync + std::fmt::Debug + 'static,
16620{
16621 fn from(
16622 err: ::aws_smithy_runtime_api::client::result::SdkError<
16623 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError,
16624 R,
16625 >,
16626 ) -> Self {
16627 match err {
16628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16631 source: err.into(),
16632 }),
16633 }
16634 }
16635}
16636impl From<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError> for Error {
16637 fn from(err: crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError) -> Self {
16638 match err {
16639 crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError::Unhandled(inner) => {
16640 Error::Unhandled(inner)
16641 }
16642 }
16643 }
16644}
16645impl<R>
16646 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError, R>>
16647 for Error
16648where
16649 R: Send + Sync + std::fmt::Debug + 'static,
16650{
16651 fn from(
16652 err: ::aws_smithy_runtime_api::client::result::SdkError<
16653 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError,
16654 R,
16655 >,
16656 ) -> Self {
16657 match err {
16658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16661 source: err.into(),
16662 }),
16663 }
16664 }
16665}
16666impl From<crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError> for Error {
16667 fn from(err: crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError) -> Self {
16668 match err {
16669 crate::operation::modify_verified_access_endpoint::ModifyVerifiedAccessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
16670 }
16671 }
16672}
16673impl<R>
16674 From<
16675 ::aws_smithy_runtime_api::client::result::SdkError<
16676 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16677 R,
16678 >,
16679 > for Error
16680where
16681 R: Send + Sync + std::fmt::Debug + 'static,
16682{
16683 fn from(
16684 err: ::aws_smithy_runtime_api::client::result::SdkError<
16685 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError,
16686 R,
16687 >,
16688 ) -> Self {
16689 match err {
16690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16693 source: err.into(),
16694 }),
16695 }
16696 }
16697}
16698impl From<crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError> for Error {
16699 fn from(err: crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError) -> Self {
16700 match err {
16701 crate::operation::modify_verified_access_endpoint_policy::ModifyVerifiedAccessEndpointPolicyError::Unhandled(inner) => {
16702 Error::Unhandled(inner)
16703 }
16704 }
16705 }
16706}
16707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>>
16708 for Error
16709where
16710 R: Send + Sync + std::fmt::Debug + 'static,
16711{
16712 fn from(
16713 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError, R>,
16714 ) -> Self {
16715 match err {
16716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16719 source: err.into(),
16720 }),
16721 }
16722 }
16723}
16724impl From<crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError> for Error {
16725 fn from(err: crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError) -> Self {
16726 match err {
16727 crate::operation::modify_verified_access_group::ModifyVerifiedAccessGroupError::Unhandled(inner) => Error::Unhandled(inner),
16728 }
16729 }
16730}
16731impl<R>
16732 From<
16733 ::aws_smithy_runtime_api::client::result::SdkError<
16734 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16735 R,
16736 >,
16737 > for Error
16738where
16739 R: Send + Sync + std::fmt::Debug + 'static,
16740{
16741 fn from(
16742 err: ::aws_smithy_runtime_api::client::result::SdkError<
16743 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError,
16744 R,
16745 >,
16746 ) -> Self {
16747 match err {
16748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16751 source: err.into(),
16752 }),
16753 }
16754 }
16755}
16756impl From<crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError> for Error {
16757 fn from(err: crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError) -> Self {
16758 match err {
16759 crate::operation::modify_verified_access_group_policy::ModifyVerifiedAccessGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
16760 }
16761 }
16762}
16763impl<R>
16764 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError, R>>
16765 for Error
16766where
16767 R: Send + Sync + std::fmt::Debug + 'static,
16768{
16769 fn from(
16770 err: ::aws_smithy_runtime_api::client::result::SdkError<
16771 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError,
16772 R,
16773 >,
16774 ) -> Self {
16775 match err {
16776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16779 source: err.into(),
16780 }),
16781 }
16782 }
16783}
16784impl From<crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError> for Error {
16785 fn from(err: crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError) -> Self {
16786 match err {
16787 crate::operation::modify_verified_access_instance::ModifyVerifiedAccessInstanceError::Unhandled(inner) => Error::Unhandled(inner),
16788 }
16789 }
16790}
16791impl<R>
16792 From<
16793 ::aws_smithy_runtime_api::client::result::SdkError<
16794 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16795 R,
16796 >,
16797 > for Error
16798where
16799 R: Send + Sync + std::fmt::Debug + 'static,
16800{
16801 fn from(
16802 err: ::aws_smithy_runtime_api::client::result::SdkError<
16803 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16804 R,
16805 >,
16806 ) -> Self {
16807 match err {
16808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16811 source: err.into(),
16812 }),
16813 }
16814 }
16815}
16816impl From<crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError> for Error {
16817 fn from(
16818 err: crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError,
16819 ) -> Self {
16820 match err {
16821 crate::operation::modify_verified_access_instance_logging_configuration::ModifyVerifiedAccessInstanceLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
16822 }
16823 }
16824}
16825impl<R>
16826 From<
16827 ::aws_smithy_runtime_api::client::result::SdkError<
16828 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16829 R,
16830 >,
16831 > for Error
16832where
16833 R: Send + Sync + std::fmt::Debug + 'static,
16834{
16835 fn from(
16836 err: ::aws_smithy_runtime_api::client::result::SdkError<
16837 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError,
16838 R,
16839 >,
16840 ) -> Self {
16841 match err {
16842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16845 source: err.into(),
16846 }),
16847 }
16848 }
16849}
16850impl From<crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError> for Error {
16851 fn from(err: crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError) -> Self {
16852 match err {
16853 crate::operation::modify_verified_access_trust_provider::ModifyVerifiedAccessTrustProviderError::Unhandled(inner) => {
16854 Error::Unhandled(inner)
16855 }
16856 }
16857 }
16858}
16859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>> for Error
16860where
16861 R: Send + Sync + std::fmt::Debug + 'static,
16862{
16863 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume::ModifyVolumeError, R>) -> Self {
16864 match err {
16865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16868 source: err.into(),
16869 }),
16870 }
16871 }
16872}
16873impl From<crate::operation::modify_volume::ModifyVolumeError> for Error {
16874 fn from(err: crate::operation::modify_volume::ModifyVolumeError) -> Self {
16875 match err {
16876 crate::operation::modify_volume::ModifyVolumeError::Unhandled(inner) => Error::Unhandled(inner),
16877 }
16878 }
16879}
16880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>> for Error
16881where
16882 R: Send + Sync + std::fmt::Debug + 'static,
16883{
16884 fn from(
16885 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError, R>,
16886 ) -> Self {
16887 match err {
16888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16891 source: err.into(),
16892 }),
16893 }
16894 }
16895}
16896impl From<crate::operation::modify_volume_attribute::ModifyVolumeAttributeError> for Error {
16897 fn from(err: crate::operation::modify_volume_attribute::ModifyVolumeAttributeError) -> Self {
16898 match err {
16899 crate::operation::modify_volume_attribute::ModifyVolumeAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16900 }
16901 }
16902}
16903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>> for Error
16904where
16905 R: Send + Sync + std::fmt::Debug + 'static,
16906{
16907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_attribute::ModifyVpcAttributeError, R>) -> 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_vpc_attribute::ModifyVpcAttributeError> for Error {
16918 fn from(err: crate::operation::modify_vpc_attribute::ModifyVpcAttributeError) -> Self {
16919 match err {
16920 crate::operation::modify_vpc_attribute::ModifyVpcAttributeError::Unhandled(inner) => Error::Unhandled(inner),
16921 }
16922 }
16923}
16924impl<R>
16925 From<
16926 ::aws_smithy_runtime_api::client::result::SdkError<
16927 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16928 R,
16929 >,
16930 > for Error
16931where
16932 R: Send + Sync + std::fmt::Debug + 'static,
16933{
16934 fn from(
16935 err: ::aws_smithy_runtime_api::client::result::SdkError<
16936 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError,
16937 R,
16938 >,
16939 ) -> Self {
16940 match err {
16941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16944 source: err.into(),
16945 }),
16946 }
16947 }
16948}
16949impl From<crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError> for Error {
16950 fn from(err: crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError) -> Self {
16951 match err {
16952 crate::operation::modify_vpc_block_public_access_exclusion::ModifyVpcBlockPublicAccessExclusionError::Unhandled(inner) => {
16953 Error::Unhandled(inner)
16954 }
16955 }
16956 }
16957}
16958impl<R>
16959 From<
16960 ::aws_smithy_runtime_api::client::result::SdkError<
16961 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16962 R,
16963 >,
16964 > for Error
16965where
16966 R: Send + Sync + std::fmt::Debug + 'static,
16967{
16968 fn from(
16969 err: ::aws_smithy_runtime_api::client::result::SdkError<
16970 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError,
16971 R,
16972 >,
16973 ) -> Self {
16974 match err {
16975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
16977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
16978 source: err.into(),
16979 }),
16980 }
16981 }
16982}
16983impl From<crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError> for Error {
16984 fn from(err: crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError) -> Self {
16985 match err {
16986 crate::operation::modify_vpc_block_public_access_options::ModifyVpcBlockPublicAccessOptionsError::Unhandled(inner) => {
16987 Error::Unhandled(inner)
16988 }
16989 }
16990 }
16991}
16992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>> for Error
16993where
16994 R: Send + Sync + std::fmt::Debug + 'static,
16995{
16996 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError, R>) -> Self {
16997 match err {
16998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
16999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17001 source: err.into(),
17002 }),
17003 }
17004 }
17005}
17006impl From<crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError> for Error {
17007 fn from(err: crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError) -> Self {
17008 match err {
17009 crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
17010 }
17011 }
17012}
17013impl<R>
17014 From<
17015 ::aws_smithy_runtime_api::client::result::SdkError<
17016 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17017 R,
17018 >,
17019 > for Error
17020where
17021 R: Send + Sync + std::fmt::Debug + 'static,
17022{
17023 fn from(
17024 err: ::aws_smithy_runtime_api::client::result::SdkError<
17025 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError,
17026 R,
17027 >,
17028 ) -> Self {
17029 match err {
17030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17033 source: err.into(),
17034 }),
17035 }
17036 }
17037}
17038impl From<crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError> for Error {
17039 fn from(err: crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError) -> Self {
17040 match err {
17041 crate::operation::modify_vpc_endpoint_connection_notification::ModifyVpcEndpointConnectionNotificationError::Unhandled(inner) => {
17042 Error::Unhandled(inner)
17043 }
17044 }
17045 }
17046}
17047impl<R>
17048 From<
17049 ::aws_smithy_runtime_api::client::result::SdkError<
17050 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17051 R,
17052 >,
17053 > for Error
17054where
17055 R: Send + Sync + std::fmt::Debug + 'static,
17056{
17057 fn from(
17058 err: ::aws_smithy_runtime_api::client::result::SdkError<
17059 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError,
17060 R,
17061 >,
17062 ) -> Self {
17063 match err {
17064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17067 source: err.into(),
17068 }),
17069 }
17070 }
17071}
17072impl From<crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError> for Error {
17073 fn from(err: crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError) -> Self {
17074 match err {
17075 crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationError::Unhandled(inner) => {
17076 Error::Unhandled(inner)
17077 }
17078 }
17079 }
17080}
17081impl<R>
17082 From<
17083 ::aws_smithy_runtime_api::client::result::SdkError<
17084 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17085 R,
17086 >,
17087 > for Error
17088where
17089 R: Send + Sync + std::fmt::Debug + 'static,
17090{
17091 fn from(
17092 err: ::aws_smithy_runtime_api::client::result::SdkError<
17093 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError,
17094 R,
17095 >,
17096 ) -> Self {
17097 match err {
17098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17101 source: err.into(),
17102 }),
17103 }
17104 }
17105}
17106impl From<crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError> for Error {
17107 fn from(err: crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError) -> Self {
17108 match err {
17109 crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError::Unhandled(
17110 inner,
17111 ) => Error::Unhandled(inner),
17112 }
17113 }
17114}
17115impl<R>
17116 From<
17117 ::aws_smithy_runtime_api::client::result::SdkError<
17118 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17119 R,
17120 >,
17121 > for Error
17122where
17123 R: Send + Sync + std::fmt::Debug + 'static,
17124{
17125 fn from(
17126 err: ::aws_smithy_runtime_api::client::result::SdkError<
17127 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError,
17128 R,
17129 >,
17130 ) -> Self {
17131 match err {
17132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17135 source: err.into(),
17136 }),
17137 }
17138 }
17139}
17140impl From<crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError> for Error {
17141 fn from(err: crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError) -> Self {
17142 match err {
17143 crate::operation::modify_vpc_endpoint_service_permissions::ModifyVpcEndpointServicePermissionsError::Unhandled(inner) => {
17144 Error::Unhandled(inner)
17145 }
17146 }
17147 }
17148}
17149impl<R>
17150 From<
17151 ::aws_smithy_runtime_api::client::result::SdkError<
17152 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17153 R,
17154 >,
17155 > for Error
17156where
17157 R: Send + Sync + std::fmt::Debug + 'static,
17158{
17159 fn from(
17160 err: ::aws_smithy_runtime_api::client::result::SdkError<
17161 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError,
17162 R,
17163 >,
17164 ) -> Self {
17165 match err {
17166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17169 source: err.into(),
17170 }),
17171 }
17172 }
17173}
17174impl From<crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError> for Error {
17175 fn from(err: crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError) -> Self {
17176 match err {
17177 crate::operation::modify_vpc_peering_connection_options::ModifyVpcPeeringConnectionOptionsError::Unhandled(inner) => {
17178 Error::Unhandled(inner)
17179 }
17180 }
17181 }
17182}
17183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>> for Error
17184where
17185 R: Send + Sync + std::fmt::Debug + 'static,
17186{
17187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError, R>) -> Self {
17188 match err {
17189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17192 source: err.into(),
17193 }),
17194 }
17195 }
17196}
17197impl From<crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError> for Error {
17198 fn from(err: crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError) -> Self {
17199 match err {
17200 crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError::Unhandled(inner) => Error::Unhandled(inner),
17201 }
17202 }
17203}
17204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection::ModifyVpnConnectionError, 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_vpn_connection::ModifyVpnConnectionError, 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_vpn_connection::ModifyVpnConnectionError> for Error {
17219 fn from(err: crate::operation::modify_vpn_connection::ModifyVpnConnectionError) -> Self {
17220 match err {
17221 crate::operation::modify_vpn_connection::ModifyVpnConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17222 }
17223 }
17224}
17225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>>
17226 for Error
17227where
17228 R: Send + Sync + std::fmt::Debug + 'static,
17229{
17230 fn from(
17231 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError, R>,
17232 ) -> Self {
17233 match err {
17234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17237 source: err.into(),
17238 }),
17239 }
17240 }
17241}
17242impl From<crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError> for Error {
17243 fn from(err: crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError) -> Self {
17244 match err {
17245 crate::operation::modify_vpn_connection_options::ModifyVpnConnectionOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17246 }
17247 }
17248}
17249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>>
17250 for Error
17251where
17252 R: Send + Sync + std::fmt::Debug + 'static,
17253{
17254 fn from(
17255 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError, R>,
17256 ) -> Self {
17257 match err {
17258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17261 source: err.into(),
17262 }),
17263 }
17264 }
17265}
17266impl From<crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError> for Error {
17267 fn from(err: crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError) -> Self {
17268 match err {
17269 crate::operation::modify_vpn_tunnel_certificate::ModifyVpnTunnelCertificateError::Unhandled(inner) => Error::Unhandled(inner),
17270 }
17271 }
17272}
17273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>>
17274 for Error
17275where
17276 R: Send + Sync + std::fmt::Debug + 'static,
17277{
17278 fn from(
17279 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError, R>,
17280 ) -> Self {
17281 match err {
17282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17285 source: err.into(),
17286 }),
17287 }
17288 }
17289}
17290impl From<crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError> for Error {
17291 fn from(err: crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError) -> Self {
17292 match err {
17293 crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError::Unhandled(inner) => Error::Unhandled(inner),
17294 }
17295 }
17296}
17297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>> for Error
17298where
17299 R: Send + Sync + std::fmt::Debug + 'static,
17300{
17301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_instances::MonitorInstancesError, R>) -> 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::monitor_instances::MonitorInstancesError> for Error {
17312 fn from(err: crate::operation::monitor_instances::MonitorInstancesError) -> Self {
17313 match err {
17314 crate::operation::monitor_instances::MonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17315 }
17316 }
17317}
17318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_address_to_vpc::MoveAddressToVpcError, 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::move_address_to_vpc::MoveAddressToVpcError, 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::move_address_to_vpc::MoveAddressToVpcError> for Error {
17333 fn from(err: crate::operation::move_address_to_vpc::MoveAddressToVpcError) -> Self {
17334 match err {
17335 crate::operation::move_address_to_vpc::MoveAddressToVpcError::Unhandled(inner) => Error::Unhandled(inner),
17336 }
17337 }
17338}
17339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, 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_byoip_cidr_to_ipam::MoveByoipCidrToIpamError, 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_byoip_cidr_to_ipam::MoveByoipCidrToIpamError> for Error {
17354 fn from(err: crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError) -> Self {
17355 match err {
17356 crate::operation::move_byoip_cidr_to_ipam::MoveByoipCidrToIpamError::Unhandled(inner) => Error::Unhandled(inner),
17357 }
17358 }
17359}
17360impl<R>
17361 From<
17362 ::aws_smithy_runtime_api::client::result::SdkError<
17363 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17364 R,
17365 >,
17366 > for Error
17367where
17368 R: Send + Sync + std::fmt::Debug + 'static,
17369{
17370 fn from(
17371 err: ::aws_smithy_runtime_api::client::result::SdkError<
17372 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
17373 R,
17374 >,
17375 ) -> Self {
17376 match err {
17377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17380 source: err.into(),
17381 }),
17382 }
17383 }
17384}
17385impl From<crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError> for Error {
17386 fn from(err: crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError) -> Self {
17387 match err {
17388 crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17389 }
17390 }
17391}
17392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
17393where
17394 R: Send + Sync + std::fmt::Debug + 'static,
17395{
17396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> 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::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
17407 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
17408 match err {
17409 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
17410 }
17411 }
17412}
17413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError, 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_ipam_byoasn::ProvisionIpamByoasnError, 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_ipam_byoasn::ProvisionIpamByoasnError> for Error {
17428 fn from(err: crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError) -> Self {
17429 match err {
17430 crate::operation::provision_ipam_byoasn::ProvisionIpamByoasnError::Unhandled(inner) => Error::Unhandled(inner),
17431 }
17432 }
17433}
17434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>> for Error
17435where
17436 R: Send + Sync + std::fmt::Debug + 'static,
17437{
17438 fn from(
17439 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError, R>,
17440 ) -> Self {
17441 match err {
17442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17445 source: err.into(),
17446 }),
17447 }
17448 }
17449}
17450impl From<crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError> for Error {
17451 fn from(err: crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError) -> Self {
17452 match err {
17453 crate::operation::provision_ipam_pool_cidr::ProvisionIpamPoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17454 }
17455 }
17456}
17457impl<R>
17458 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError, R>>
17459 for Error
17460where
17461 R: Send + Sync + std::fmt::Debug + 'static,
17462{
17463 fn from(
17464 err: ::aws_smithy_runtime_api::client::result::SdkError<
17465 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError,
17466 R,
17467 >,
17468 ) -> Self {
17469 match err {
17470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17473 source: err.into(),
17474 }),
17475 }
17476 }
17477}
17478impl From<crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError> for Error {
17479 fn from(err: crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError) -> Self {
17480 match err {
17481 crate::operation::provision_public_ipv4_pool_cidr::ProvisionPublicIpv4PoolCidrError::Unhandled(inner) => Error::Unhandled(inner),
17482 }
17483 }
17484}
17485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>> for Error
17486where
17487 R: Send + Sync + std::fmt::Debug + 'static,
17488{
17489 fn from(
17490 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError, R>,
17491 ) -> Self {
17492 match err {
17493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17496 source: err.into(),
17497 }),
17498 }
17499 }
17500}
17501impl From<crate::operation::purchase_capacity_block::PurchaseCapacityBlockError> for Error {
17502 fn from(err: crate::operation::purchase_capacity_block::PurchaseCapacityBlockError) -> Self {
17503 match err {
17504 crate::operation::purchase_capacity_block::PurchaseCapacityBlockError::Unhandled(inner) => Error::Unhandled(inner),
17505 }
17506 }
17507}
17508impl<R>
17509 From<
17510 ::aws_smithy_runtime_api::client::result::SdkError<
17511 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17512 R,
17513 >,
17514 > for Error
17515where
17516 R: Send + Sync + std::fmt::Debug + 'static,
17517{
17518 fn from(
17519 err: ::aws_smithy_runtime_api::client::result::SdkError<
17520 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError,
17521 R,
17522 >,
17523 ) -> Self {
17524 match err {
17525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17528 source: err.into(),
17529 }),
17530 }
17531 }
17532}
17533impl From<crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError> for Error {
17534 fn from(err: crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError) -> Self {
17535 match err {
17536 crate::operation::purchase_capacity_block_extension::PurchaseCapacityBlockExtensionError::Unhandled(inner) => Error::Unhandled(inner),
17537 }
17538 }
17539}
17540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>>
17541 for Error
17542where
17543 R: Send + Sync + std::fmt::Debug + 'static,
17544{
17545 fn from(
17546 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_host_reservation::PurchaseHostReservationError, R>,
17547 ) -> Self {
17548 match err {
17549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17552 source: err.into(),
17553 }),
17554 }
17555 }
17556}
17557impl From<crate::operation::purchase_host_reservation::PurchaseHostReservationError> for Error {
17558 fn from(err: crate::operation::purchase_host_reservation::PurchaseHostReservationError) -> Self {
17559 match err {
17560 crate::operation::purchase_host_reservation::PurchaseHostReservationError::Unhandled(inner) => Error::Unhandled(inner),
17561 }
17562 }
17563}
17564impl<R>
17565 From<
17566 ::aws_smithy_runtime_api::client::result::SdkError<
17567 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17568 R,
17569 >,
17570 > for Error
17571where
17572 R: Send + Sync + std::fmt::Debug + 'static,
17573{
17574 fn from(
17575 err: ::aws_smithy_runtime_api::client::result::SdkError<
17576 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError,
17577 R,
17578 >,
17579 ) -> Self {
17580 match err {
17581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17584 source: err.into(),
17585 }),
17586 }
17587 }
17588}
17589impl From<crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError> for Error {
17590 fn from(err: crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError) -> Self {
17591 match err {
17592 crate::operation::purchase_reserved_instances_offering::PurchaseReservedInstancesOfferingError::Unhandled(inner) => {
17593 Error::Unhandled(inner)
17594 }
17595 }
17596 }
17597}
17598impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>>
17599 for Error
17600where
17601 R: Send + Sync + std::fmt::Debug + 'static,
17602{
17603 fn from(
17604 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError, R>,
17605 ) -> Self {
17606 match err {
17607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17610 source: err.into(),
17611 }),
17612 }
17613 }
17614}
17615impl From<crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError> for Error {
17616 fn from(err: crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError) -> Self {
17617 match err {
17618 crate::operation::purchase_scheduled_instances::PurchaseScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17619 }
17620 }
17621}
17622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>> for Error
17623where
17624 R: Send + Sync + std::fmt::Debug + 'static,
17625{
17626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_instances::RebootInstancesError, R>) -> 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::reboot_instances::RebootInstancesError> for Error {
17637 fn from(err: crate::operation::reboot_instances::RebootInstancesError) -> Self {
17638 match err {
17639 crate::operation::reboot_instances::RebootInstancesError::Unhandled(inner) => Error::Unhandled(inner),
17640 }
17641 }
17642}
17643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_image::RegisterImageError, 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::register_image::RegisterImageError, 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::register_image::RegisterImageError> for Error {
17658 fn from(err: crate::operation::register_image::RegisterImageError) -> Self {
17659 match err {
17660 crate::operation::register_image::RegisterImageError::Unhandled(inner) => Error::Unhandled(inner),
17661 }
17662 }
17663}
17664impl<R>
17665 From<
17666 ::aws_smithy_runtime_api::client::result::SdkError<
17667 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17668 R,
17669 >,
17670 > for Error
17671where
17672 R: Send + Sync + std::fmt::Debug + 'static,
17673{
17674 fn from(
17675 err: ::aws_smithy_runtime_api::client::result::SdkError<
17676 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError,
17677 R,
17678 >,
17679 ) -> Self {
17680 match err {
17681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17684 source: err.into(),
17685 }),
17686 }
17687 }
17688}
17689impl From<crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError> for Error {
17690 fn from(err: crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError) -> Self {
17691 match err {
17692 crate::operation::register_instance_event_notification_attributes::RegisterInstanceEventNotificationAttributesError::Unhandled(inner) => {
17693 Error::Unhandled(inner)
17694 }
17695 }
17696 }
17697}
17698impl<R>
17699 From<
17700 ::aws_smithy_runtime_api::client::result::SdkError<
17701 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17702 R,
17703 >,
17704 > for Error
17705where
17706 R: Send + Sync + std::fmt::Debug + 'static,
17707{
17708 fn from(
17709 err: ::aws_smithy_runtime_api::client::result::SdkError<
17710 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError,
17711 R,
17712 >,
17713 ) -> Self {
17714 match err {
17715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17718 source: err.into(),
17719 }),
17720 }
17721 }
17722}
17723impl From<crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError> for Error {
17724 fn from(err: crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError) -> Self {
17725 match err {
17726 crate::operation::register_transit_gateway_multicast_group_members::RegisterTransitGatewayMulticastGroupMembersError::Unhandled(
17727 inner,
17728 ) => Error::Unhandled(inner),
17729 }
17730 }
17731}
17732impl<R>
17733 From<
17734 ::aws_smithy_runtime_api::client::result::SdkError<
17735 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17736 R,
17737 >,
17738 > for Error
17739where
17740 R: Send + Sync + std::fmt::Debug + 'static,
17741{
17742 fn from(
17743 err: ::aws_smithy_runtime_api::client::result::SdkError<
17744 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError,
17745 R,
17746 >,
17747 ) -> Self {
17748 match err {
17749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17752 source: err.into(),
17753 }),
17754 }
17755 }
17756}
17757impl From<crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError> for Error {
17758 fn from(err: crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError) -> Self {
17759 match err {
17760 crate::operation::register_transit_gateway_multicast_group_sources::RegisterTransitGatewayMulticastGroupSourcesError::Unhandled(
17761 inner,
17762 ) => Error::Unhandled(inner),
17763 }
17764 }
17765}
17766impl<R>
17767 From<
17768 ::aws_smithy_runtime_api::client::result::SdkError<
17769 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17770 R,
17771 >,
17772 > for Error
17773where
17774 R: Send + Sync + std::fmt::Debug + 'static,
17775{
17776 fn from(
17777 err: ::aws_smithy_runtime_api::client::result::SdkError<
17778 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError,
17779 R,
17780 >,
17781 ) -> Self {
17782 match err {
17783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17786 source: err.into(),
17787 }),
17788 }
17789 }
17790}
17791impl From<crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError> for Error {
17792 fn from(err: crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError) -> Self {
17793 match err {
17794 crate::operation::reject_capacity_reservation_billing_ownership::RejectCapacityReservationBillingOwnershipError::Unhandled(inner) => {
17795 Error::Unhandled(inner)
17796 }
17797 }
17798 }
17799}
17800impl<R>
17801 From<
17802 ::aws_smithy_runtime_api::client::result::SdkError<
17803 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17804 R,
17805 >,
17806 > for Error
17807where
17808 R: Send + Sync + std::fmt::Debug + 'static,
17809{
17810 fn from(
17811 err: ::aws_smithy_runtime_api::client::result::SdkError<
17812 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17813 R,
17814 >,
17815 ) -> Self {
17816 match err {
17817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17820 source: err.into(),
17821 }),
17822 }
17823 }
17824}
17825impl From<crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError> for Error {
17826 fn from(
17827 err: crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError,
17828 ) -> Self {
17829 match err {
17830 crate::operation::reject_transit_gateway_multicast_domain_associations::RejectTransitGatewayMulticastDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
17831 }
17832 }
17833}
17834impl<R>
17835 From<
17836 ::aws_smithy_runtime_api::client::result::SdkError<
17837 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17838 R,
17839 >,
17840 > for Error
17841where
17842 R: Send + Sync + std::fmt::Debug + 'static,
17843{
17844 fn from(
17845 err: ::aws_smithy_runtime_api::client::result::SdkError<
17846 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError,
17847 R,
17848 >,
17849 ) -> Self {
17850 match err {
17851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17854 source: err.into(),
17855 }),
17856 }
17857 }
17858}
17859impl From<crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError> for Error {
17860 fn from(err: crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError) -> Self {
17861 match err {
17862 crate::operation::reject_transit_gateway_peering_attachment::RejectTransitGatewayPeeringAttachmentError::Unhandled(inner) => {
17863 Error::Unhandled(inner)
17864 }
17865 }
17866 }
17867}
17868impl<R>
17869 From<
17870 ::aws_smithy_runtime_api::client::result::SdkError<
17871 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17872 R,
17873 >,
17874 > for Error
17875where
17876 R: Send + Sync + std::fmt::Debug + 'static,
17877{
17878 fn from(
17879 err: ::aws_smithy_runtime_api::client::result::SdkError<
17880 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError,
17881 R,
17882 >,
17883 ) -> Self {
17884 match err {
17885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17888 source: err.into(),
17889 }),
17890 }
17891 }
17892}
17893impl From<crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError> for Error {
17894 fn from(err: crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError) -> Self {
17895 match err {
17896 crate::operation::reject_transit_gateway_vpc_attachment::RejectTransitGatewayVpcAttachmentError::Unhandled(inner) => {
17897 Error::Unhandled(inner)
17898 }
17899 }
17900 }
17901}
17902impl<R>
17903 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError, R>>
17904 for Error
17905where
17906 R: Send + Sync + std::fmt::Debug + 'static,
17907{
17908 fn from(
17909 err: ::aws_smithy_runtime_api::client::result::SdkError<
17910 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError,
17911 R,
17912 >,
17913 ) -> Self {
17914 match err {
17915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17918 source: err.into(),
17919 }),
17920 }
17921 }
17922}
17923impl From<crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError> for Error {
17924 fn from(err: crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError) -> Self {
17925 match err {
17926 crate::operation::reject_vpc_endpoint_connections::RejectVpcEndpointConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
17927 }
17928 }
17929}
17930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>>
17931 for Error
17932where
17933 R: Send + Sync + std::fmt::Debug + 'static,
17934{
17935 fn from(
17936 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError, R>,
17937 ) -> Self {
17938 match err {
17939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
17940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
17941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
17942 source: err.into(),
17943 }),
17944 }
17945 }
17946}
17947impl From<crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError> for Error {
17948 fn from(err: crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError) -> Self {
17949 match err {
17950 crate::operation::reject_vpc_peering_connection::RejectVpcPeeringConnectionError::Unhandled(inner) => Error::Unhandled(inner),
17951 }
17952 }
17953}
17954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>> for Error
17955where
17956 R: Send + Sync + std::fmt::Debug + 'static,
17957{
17958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_address::ReleaseAddressError, R>) -> 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::release_address::ReleaseAddressError> for Error {
17969 fn from(err: crate::operation::release_address::ReleaseAddressError) -> Self {
17970 match err {
17971 crate::operation::release_address::ReleaseAddressError::Unhandled(inner) => Error::Unhandled(inner),
17972 }
17973 }
17974}
17975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_hosts::ReleaseHostsError, 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_hosts::ReleaseHostsError, 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_hosts::ReleaseHostsError> for Error {
17990 fn from(err: crate::operation::release_hosts::ReleaseHostsError) -> Self {
17991 match err {
17992 crate::operation::release_hosts::ReleaseHostsError::Unhandled(inner) => Error::Unhandled(inner),
17993 }
17994 }
17995}
17996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>>
17997 for Error
17998where
17999 R: Send + Sync + std::fmt::Debug + 'static,
18000{
18001 fn from(
18002 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError, R>,
18003 ) -> Self {
18004 match err {
18005 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18006 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18007 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18008 source: err.into(),
18009 }),
18010 }
18011 }
18012}
18013impl From<crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError> for Error {
18014 fn from(err: crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError) -> Self {
18015 match err {
18016 crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError::Unhandled(inner) => Error::Unhandled(inner),
18017 }
18018 }
18019}
18020impl<R>
18021 From<
18022 ::aws_smithy_runtime_api::client::result::SdkError<
18023 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18024 R,
18025 >,
18026 > for Error
18027where
18028 R: Send + Sync + std::fmt::Debug + 'static,
18029{
18030 fn from(
18031 err: ::aws_smithy_runtime_api::client::result::SdkError<
18032 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
18033 R,
18034 >,
18035 ) -> Self {
18036 match err {
18037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18040 source: err.into(),
18041 }),
18042 }
18043 }
18044}
18045impl From<crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError> for Error {
18046 fn from(err: crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError) -> Self {
18047 match err {
18048 crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError::Unhandled(inner) => {
18049 Error::Unhandled(inner)
18050 }
18051 }
18052 }
18053}
18054impl<R>
18055 From<
18056 ::aws_smithy_runtime_api::client::result::SdkError<
18057 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18058 R,
18059 >,
18060 > for Error
18061where
18062 R: Send + Sync + std::fmt::Debug + 'static,
18063{
18064 fn from(
18065 err: ::aws_smithy_runtime_api::client::result::SdkError<
18066 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
18067 R,
18068 >,
18069 ) -> Self {
18070 match err {
18071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18074 source: err.into(),
18075 }),
18076 }
18077 }
18078}
18079impl From<crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError> for Error {
18080 fn from(err: crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError) -> Self {
18081 match err {
18082 crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError::Unhandled(
18083 inner,
18084 ) => Error::Unhandled(inner),
18085 }
18086 }
18087}
18088impl<R>
18089 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError, R>>
18090 for Error
18091where
18092 R: Send + Sync + std::fmt::Debug + 'static,
18093{
18094 fn from(
18095 err: ::aws_smithy_runtime_api::client::result::SdkError<
18096 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
18097 R,
18098 >,
18099 ) -> Self {
18100 match err {
18101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18104 source: err.into(),
18105 }),
18106 }
18107 }
18108}
18109impl From<crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError> for Error {
18110 fn from(err: crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError) -> Self {
18111 match err {
18112 crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18113 }
18114 }
18115}
18116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>>
18117 for Error
18118where
18119 R: Send + Sync + std::fmt::Debug + 'static,
18120{
18121 fn from(
18122 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError, R>,
18123 ) -> Self {
18124 match err {
18125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18128 source: err.into(),
18129 }),
18130 }
18131 }
18132}
18133impl From<crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError> for Error {
18134 fn from(err: crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError) -> Self {
18135 match err {
18136 crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError::Unhandled(inner) => Error::Unhandled(inner),
18137 }
18138 }
18139}
18140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>> for Error
18141where
18142 R: Send + Sync + std::fmt::Debug + 'static,
18143{
18144 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route::ReplaceRouteError, R>) -> 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_route::ReplaceRouteError> for Error {
18155 fn from(err: crate::operation::replace_route::ReplaceRouteError) -> Self {
18156 match err {
18157 crate::operation::replace_route::ReplaceRouteError::Unhandled(inner) => Error::Unhandled(inner),
18158 }
18159 }
18160}
18161impl<R>
18162 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError, R>>
18163 for Error
18164where
18165 R: Send + Sync + std::fmt::Debug + 'static,
18166{
18167 fn from(
18168 err: ::aws_smithy_runtime_api::client::result::SdkError<
18169 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError,
18170 R,
18171 >,
18172 ) -> Self {
18173 match err {
18174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18177 source: err.into(),
18178 }),
18179 }
18180 }
18181}
18182impl From<crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError> for Error {
18183 fn from(err: crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError) -> Self {
18184 match err {
18185 crate::operation::replace_route_table_association::ReplaceRouteTableAssociationError::Unhandled(inner) => Error::Unhandled(inner),
18186 }
18187 }
18188}
18189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>>
18190 for Error
18191where
18192 R: Send + Sync + std::fmt::Debug + 'static,
18193{
18194 fn from(
18195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError, R>,
18196 ) -> Self {
18197 match err {
18198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18201 source: err.into(),
18202 }),
18203 }
18204 }
18205}
18206impl From<crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError> for Error {
18207 fn from(err: crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError) -> Self {
18208 match err {
18209 crate::operation::replace_transit_gateway_route::ReplaceTransitGatewayRouteError::Unhandled(inner) => Error::Unhandled(inner),
18210 }
18211 }
18212}
18213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>> for Error
18214where
18215 R: Send + Sync + std::fmt::Debug + 'static,
18216{
18217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError, R>) -> Self {
18218 match err {
18219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18222 source: err.into(),
18223 }),
18224 }
18225 }
18226}
18227impl From<crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError> for Error {
18228 fn from(err: crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError) -> Self {
18229 match err {
18230 crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelError::Unhandled(inner) => Error::Unhandled(inner),
18231 }
18232 }
18233}
18234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_instance_status::ReportInstanceStatusError, 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::report_instance_status::ReportInstanceStatusError, 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::report_instance_status::ReportInstanceStatusError> for Error {
18249 fn from(err: crate::operation::report_instance_status::ReportInstanceStatusError) -> Self {
18250 match err {
18251 crate::operation::report_instance_status::ReportInstanceStatusError::Unhandled(inner) => Error::Unhandled(inner),
18252 }
18253 }
18254}
18255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_fleet::RequestSpotFleetError, 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::request_spot_fleet::RequestSpotFleetError, 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::request_spot_fleet::RequestSpotFleetError> for Error {
18270 fn from(err: crate::operation::request_spot_fleet::RequestSpotFleetError) -> Self {
18271 match err {
18272 crate::operation::request_spot_fleet::RequestSpotFleetError::Unhandled(inner) => Error::Unhandled(inner),
18273 }
18274 }
18275}
18276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_spot_instances::RequestSpotInstancesError, 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_instances::RequestSpotInstancesError, 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_instances::RequestSpotInstancesError> for Error {
18291 fn from(err: crate::operation::request_spot_instances::RequestSpotInstancesError) -> Self {
18292 match err {
18293 crate::operation::request_spot_instances::RequestSpotInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18294 }
18295 }
18296}
18297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>> for Error
18298where
18299 R: Send + Sync + std::fmt::Debug + 'static,
18300{
18301 fn from(
18302 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_address_attribute::ResetAddressAttributeError, R>,
18303 ) -> Self {
18304 match err {
18305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18308 source: err.into(),
18309 }),
18310 }
18311 }
18312}
18313impl From<crate::operation::reset_address_attribute::ResetAddressAttributeError> for Error {
18314 fn from(err: crate::operation::reset_address_attribute::ResetAddressAttributeError) -> Self {
18315 match err {
18316 crate::operation::reset_address_attribute::ResetAddressAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18317 }
18318 }
18319}
18320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>>
18321 for Error
18322where
18323 R: Send + Sync + std::fmt::Debug + 'static,
18324{
18325 fn from(
18326 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError, R>,
18327 ) -> Self {
18328 match err {
18329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18332 source: err.into(),
18333 }),
18334 }
18335 }
18336}
18337impl From<crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError> for Error {
18338 fn from(err: crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError) -> Self {
18339 match err {
18340 crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError::Unhandled(inner) => Error::Unhandled(inner),
18341 }
18342 }
18343}
18344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>>
18345 for Error
18346where
18347 R: Send + Sync + std::fmt::Debug + 'static,
18348{
18349 fn from(
18350 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError, R>,
18351 ) -> Self {
18352 match err {
18353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18356 source: err.into(),
18357 }),
18358 }
18359 }
18360}
18361impl From<crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError> for Error {
18362 fn from(err: crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError) -> Self {
18363 match err {
18364 crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18365 }
18366 }
18367}
18368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>> for Error
18369where
18370 R: Send + Sync + std::fmt::Debug + 'static,
18371{
18372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_image_attribute::ResetImageAttributeError, R>) -> 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_image_attribute::ResetImageAttributeError> for Error {
18383 fn from(err: crate::operation::reset_image_attribute::ResetImageAttributeError) -> Self {
18384 match err {
18385 crate::operation::reset_image_attribute::ResetImageAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18386 }
18387 }
18388}
18389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>> for Error
18390where
18391 R: Send + Sync + std::fmt::Debug + 'static,
18392{
18393 fn from(
18394 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_instance_attribute::ResetInstanceAttributeError, R>,
18395 ) -> Self {
18396 match err {
18397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18400 source: err.into(),
18401 }),
18402 }
18403 }
18404}
18405impl From<crate::operation::reset_instance_attribute::ResetInstanceAttributeError> for Error {
18406 fn from(err: crate::operation::reset_instance_attribute::ResetInstanceAttributeError) -> Self {
18407 match err {
18408 crate::operation::reset_instance_attribute::ResetInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18409 }
18410 }
18411}
18412impl<R>
18413 From<
18414 ::aws_smithy_runtime_api::client::result::SdkError<
18415 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18416 R,
18417 >,
18418 > for Error
18419where
18420 R: Send + Sync + std::fmt::Debug + 'static,
18421{
18422 fn from(
18423 err: ::aws_smithy_runtime_api::client::result::SdkError<
18424 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError,
18425 R,
18426 >,
18427 ) -> Self {
18428 match err {
18429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18432 source: err.into(),
18433 }),
18434 }
18435 }
18436}
18437impl From<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError> for Error {
18438 fn from(err: crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError) -> Self {
18439 match err {
18440 crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18441 }
18442 }
18443}
18444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>> for Error
18445where
18446 R: Send + Sync + std::fmt::Debug + 'static,
18447{
18448 fn from(
18449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError, R>,
18450 ) -> Self {
18451 match err {
18452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18455 source: err.into(),
18456 }),
18457 }
18458 }
18459}
18460impl From<crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError> for Error {
18461 fn from(err: crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError) -> Self {
18462 match err {
18463 crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError::Unhandled(inner) => Error::Unhandled(inner),
18464 }
18465 }
18466}
18467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>>
18468 for Error
18469where
18470 R: Send + Sync + std::fmt::Debug + 'static,
18471{
18472 fn from(
18473 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_address_to_classic::RestoreAddressToClassicError, R>,
18474 ) -> Self {
18475 match err {
18476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18479 source: err.into(),
18480 }),
18481 }
18482 }
18483}
18484impl From<crate::operation::restore_address_to_classic::RestoreAddressToClassicError> for Error {
18485 fn from(err: crate::operation::restore_address_to_classic::RestoreAddressToClassicError) -> Self {
18486 match err {
18487 crate::operation::restore_address_to_classic::RestoreAddressToClassicError::Unhandled(inner) => Error::Unhandled(inner),
18488 }
18489 }
18490}
18491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>>
18492 for Error
18493where
18494 R: Send + Sync + std::fmt::Debug + 'static,
18495{
18496 fn from(
18497 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError, R>,
18498 ) -> Self {
18499 match err {
18500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18503 source: err.into(),
18504 }),
18505 }
18506 }
18507}
18508impl From<crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError> for Error {
18509 fn from(err: crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError) -> Self {
18510 match err {
18511 crate::operation::restore_image_from_recycle_bin::RestoreImageFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18512 }
18513 }
18514}
18515impl<R>
18516 From<
18517 ::aws_smithy_runtime_api::client::result::SdkError<
18518 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18519 R,
18520 >,
18521 > for Error
18522where
18523 R: Send + Sync + std::fmt::Debug + 'static,
18524{
18525 fn from(
18526 err: ::aws_smithy_runtime_api::client::result::SdkError<
18527 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError,
18528 R,
18529 >,
18530 ) -> Self {
18531 match err {
18532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18535 source: err.into(),
18536 }),
18537 }
18538 }
18539}
18540impl From<crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError> for Error {
18541 fn from(err: crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError) -> Self {
18542 match err {
18543 crate::operation::restore_managed_prefix_list_version::RestoreManagedPrefixListVersionError::Unhandled(inner) => Error::Unhandled(inner),
18544 }
18545 }
18546}
18547impl<R>
18548 From<
18549 ::aws_smithy_runtime_api::client::result::SdkError<
18550 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18551 R,
18552 >,
18553 > for Error
18554where
18555 R: Send + Sync + std::fmt::Debug + 'static,
18556{
18557 fn from(
18558 err: ::aws_smithy_runtime_api::client::result::SdkError<
18559 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError,
18560 R,
18561 >,
18562 ) -> Self {
18563 match err {
18564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18567 source: err.into(),
18568 }),
18569 }
18570 }
18571}
18572impl From<crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError> for Error {
18573 fn from(err: crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError) -> Self {
18574 match err {
18575 crate::operation::restore_snapshot_from_recycle_bin::RestoreSnapshotFromRecycleBinError::Unhandled(inner) => Error::Unhandled(inner),
18576 }
18577 }
18578}
18579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>> for Error
18580where
18581 R: Send + Sync + std::fmt::Debug + 'static,
18582{
18583 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_snapshot_tier::RestoreSnapshotTierError, R>) -> 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_tier::RestoreSnapshotTierError> for Error {
18594 fn from(err: crate::operation::restore_snapshot_tier::RestoreSnapshotTierError) -> Self {
18595 match err {
18596 crate::operation::restore_snapshot_tier::RestoreSnapshotTierError::Unhandled(inner) => Error::Unhandled(inner),
18597 }
18598 }
18599}
18600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>>
18601 for Error
18602where
18603 R: Send + Sync + std::fmt::Debug + 'static,
18604{
18605 fn from(
18606 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError, R>,
18607 ) -> Self {
18608 match err {
18609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18612 source: err.into(),
18613 }),
18614 }
18615 }
18616}
18617impl From<crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError> for Error {
18618 fn from(err: crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError) -> Self {
18619 match err {
18620 crate::operation::revoke_client_vpn_ingress::RevokeClientVpnIngressError::Unhandled(inner) => Error::Unhandled(inner),
18621 }
18622 }
18623}
18624impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>>
18625 for Error
18626where
18627 R: Send + Sync + std::fmt::Debug + 'static,
18628{
18629 fn from(
18630 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError, R>,
18631 ) -> Self {
18632 match err {
18633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18636 source: err.into(),
18637 }),
18638 }
18639 }
18640}
18641impl From<crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError> for Error {
18642 fn from(err: crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError) -> Self {
18643 match err {
18644 crate::operation::revoke_security_group_egress::RevokeSecurityGroupEgressError::Unhandled(inner) => Error::Unhandled(inner),
18645 }
18646 }
18647}
18648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>>
18649 for Error
18650where
18651 R: Send + Sync + std::fmt::Debug + 'static,
18652{
18653 fn from(
18654 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError, R>,
18655 ) -> Self {
18656 match err {
18657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18660 source: err.into(),
18661 }),
18662 }
18663 }
18664}
18665impl From<crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError> for Error {
18666 fn from(err: crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError) -> Self {
18667 match err {
18668 crate::operation::revoke_security_group_ingress::RevokeSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
18669 }
18670 }
18671}
18672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>> for Error
18673where
18674 R: Send + Sync + std::fmt::Debug + 'static,
18675{
18676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_instances::RunInstancesError, R>) -> 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::run_instances::RunInstancesError> for Error {
18687 fn from(err: crate::operation::run_instances::RunInstancesError) -> Self {
18688 match err {
18689 crate::operation::run_instances::RunInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18690 }
18691 }
18692}
18693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>> for Error
18694where
18695 R: Send + Sync + std::fmt::Debug + 'static,
18696{
18697 fn from(
18698 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_scheduled_instances::RunScheduledInstancesError, R>,
18699 ) -> Self {
18700 match err {
18701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18704 source: err.into(),
18705 }),
18706 }
18707 }
18708}
18709impl From<crate::operation::run_scheduled_instances::RunScheduledInstancesError> for Error {
18710 fn from(err: crate::operation::run_scheduled_instances::RunScheduledInstancesError) -> Self {
18711 match err {
18712 crate::operation::run_scheduled_instances::RunScheduledInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18713 }
18714 }
18715}
18716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>>
18717 for Error
18718where
18719 R: Send + Sync + std::fmt::Debug + 'static,
18720{
18721 fn from(
18722 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError, R>,
18723 ) -> Self {
18724 match err {
18725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18728 source: err.into(),
18729 }),
18730 }
18731 }
18732}
18733impl From<crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError> for Error {
18734 fn from(err: crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError) -> Self {
18735 match err {
18736 crate::operation::search_local_gateway_routes::SearchLocalGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18737 }
18738 }
18739}
18740impl<R>
18741 From<
18742 ::aws_smithy_runtime_api::client::result::SdkError<
18743 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18744 R,
18745 >,
18746 > for Error
18747where
18748 R: Send + Sync + std::fmt::Debug + 'static,
18749{
18750 fn from(
18751 err: ::aws_smithy_runtime_api::client::result::SdkError<
18752 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError,
18753 R,
18754 >,
18755 ) -> Self {
18756 match err {
18757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18760 source: err.into(),
18761 }),
18762 }
18763 }
18764}
18765impl From<crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError> for Error {
18766 fn from(err: crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError) -> Self {
18767 match err {
18768 crate::operation::search_transit_gateway_multicast_groups::SearchTransitGatewayMulticastGroupsError::Unhandled(inner) => {
18769 Error::Unhandled(inner)
18770 }
18771 }
18772 }
18773}
18774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>>
18775 for Error
18776where
18777 R: Send + Sync + std::fmt::Debug + 'static,
18778{
18779 fn from(
18780 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError, R>,
18781 ) -> Self {
18782 match err {
18783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18786 source: err.into(),
18787 }),
18788 }
18789 }
18790}
18791impl From<crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError> for Error {
18792 fn from(err: crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError) -> Self {
18793 match err {
18794 crate::operation::search_transit_gateway_routes::SearchTransitGatewayRoutesError::Unhandled(inner) => Error::Unhandled(inner),
18795 }
18796 }
18797}
18798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>>
18799 for Error
18800where
18801 R: Send + Sync + std::fmt::Debug + 'static,
18802{
18803 fn from(
18804 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError, R>,
18805 ) -> Self {
18806 match err {
18807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18810 source: err.into(),
18811 }),
18812 }
18813 }
18814}
18815impl From<crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError> for Error {
18816 fn from(err: crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError) -> Self {
18817 match err {
18818 crate::operation::send_diagnostic_interrupt::SendDiagnosticInterruptError::Unhandled(inner) => Error::Unhandled(inner),
18819 }
18820 }
18821}
18822impl<R>
18823 From<
18824 ::aws_smithy_runtime_api::client::result::SdkError<
18825 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18826 R,
18827 >,
18828 > for Error
18829where
18830 R: Send + Sync + std::fmt::Debug + 'static,
18831{
18832 fn from(
18833 err: ::aws_smithy_runtime_api::client::result::SdkError<
18834 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError,
18835 R,
18836 >,
18837 ) -> Self {
18838 match err {
18839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18842 source: err.into(),
18843 }),
18844 }
18845 }
18846}
18847impl From<crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError> for Error {
18848 fn from(err: crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError) -> Self {
18849 match err {
18850 crate::operation::start_declarative_policies_report::StartDeclarativePoliciesReportError::Unhandled(inner) => Error::Unhandled(inner),
18851 }
18852 }
18853}
18854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>> for Error
18855where
18856 R: Send + Sync + std::fmt::Debug + 'static,
18857{
18858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instances::StartInstancesError, R>) -> 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_instances::StartInstancesError> for Error {
18869 fn from(err: crate::operation::start_instances::StartInstancesError) -> Self {
18870 match err {
18871 crate::operation::start_instances::StartInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18872 }
18873 }
18874}
18875impl<R>
18876 From<
18877 ::aws_smithy_runtime_api::client::result::SdkError<
18878 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18879 R,
18880 >,
18881 > for Error
18882where
18883 R: Send + Sync + std::fmt::Debug + 'static,
18884{
18885 fn from(
18886 err: ::aws_smithy_runtime_api::client::result::SdkError<
18887 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError,
18888 R,
18889 >,
18890 ) -> Self {
18891 match err {
18892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18895 source: err.into(),
18896 }),
18897 }
18898 }
18899}
18900impl From<crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError> for Error {
18901 fn from(err: crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError) -> Self {
18902 match err {
18903 crate::operation::start_network_insights_access_scope_analysis::StartNetworkInsightsAccessScopeAnalysisError::Unhandled(inner) => {
18904 Error::Unhandled(inner)
18905 }
18906 }
18907 }
18908}
18909impl<R>
18910 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError, R>>
18911 for Error
18912where
18913 R: Send + Sync + std::fmt::Debug + 'static,
18914{
18915 fn from(
18916 err: ::aws_smithy_runtime_api::client::result::SdkError<
18917 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError,
18918 R,
18919 >,
18920 ) -> Self {
18921 match err {
18922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18925 source: err.into(),
18926 }),
18927 }
18928 }
18929}
18930impl From<crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError> for Error {
18931 fn from(err: crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError) -> Self {
18932 match err {
18933 crate::operation::start_network_insights_analysis::StartNetworkInsightsAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
18934 }
18935 }
18936}
18937impl<R>
18938 From<
18939 ::aws_smithy_runtime_api::client::result::SdkError<
18940 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
18941 R,
18942 >,
18943 > for Error
18944where
18945 R: Send + Sync + std::fmt::Debug + 'static,
18946{
18947 fn from(
18948 err: ::aws_smithy_runtime_api::client::result::SdkError<
18949 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError,
18950 R,
18951 >,
18952 ) -> Self {
18953 match err {
18954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18957 source: err.into(),
18958 }),
18959 }
18960 }
18961}
18962impl From<crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError> for Error {
18963 fn from(err: crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError) -> Self {
18964 match err {
18965 crate::operation::start_vpc_endpoint_service_private_dns_verification::StartVpcEndpointServicePrivateDnsVerificationError::Unhandled(
18966 inner,
18967 ) => Error::Unhandled(inner),
18968 }
18969 }
18970}
18971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>> for Error
18972where
18973 R: Send + Sync + std::fmt::Debug + 'static,
18974{
18975 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_instances::StopInstancesError, R>) -> Self {
18976 match err {
18977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
18978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
18979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
18980 source: err.into(),
18981 }),
18982 }
18983 }
18984}
18985impl From<crate::operation::stop_instances::StopInstancesError> for Error {
18986 fn from(err: crate::operation::stop_instances::StopInstancesError) -> Self {
18987 match err {
18988 crate::operation::stop_instances::StopInstancesError::Unhandled(inner) => Error::Unhandled(inner),
18989 }
18990 }
18991}
18992impl<R>
18993 From<
18994 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError, R>,
18995 > for Error
18996where
18997 R: Send + Sync + std::fmt::Debug + 'static,
18998{
18999 fn from(
19000 err: ::aws_smithy_runtime_api::client::result::SdkError<
19001 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError,
19002 R,
19003 >,
19004 ) -> Self {
19005 match err {
19006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19009 source: err.into(),
19010 }),
19011 }
19012 }
19013}
19014impl From<crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError> for Error {
19015 fn from(err: crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError) -> Self {
19016 match err {
19017 crate::operation::terminate_client_vpn_connections::TerminateClientVpnConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
19018 }
19019 }
19020}
19021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>> for Error
19022where
19023 R: Send + Sync + std::fmt::Debug + 'static,
19024{
19025 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_instances::TerminateInstancesError, R>) -> 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_instances::TerminateInstancesError> for Error {
19036 fn from(err: crate::operation::terminate_instances::TerminateInstancesError) -> Self {
19037 match err {
19038 crate::operation::terminate_instances::TerminateInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19039 }
19040 }
19041}
19042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>> for Error
19043where
19044 R: Send + Sync + std::fmt::Debug + 'static,
19045{
19046 fn from(
19047 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError, R>,
19048 ) -> Self {
19049 match err {
19050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19053 source: err.into(),
19054 }),
19055 }
19056 }
19057}
19058impl From<crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError> for Error {
19059 fn from(err: crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError) -> Self {
19060 match err {
19061 crate::operation::unassign_ipv6_addresses::UnassignIpv6AddressesError::Unhandled(inner) => Error::Unhandled(inner),
19062 }
19063 }
19064}
19065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>>
19066 for Error
19067where
19068 R: Send + Sync + std::fmt::Debug + 'static,
19069{
19070 fn from(
19071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError, R>,
19072 ) -> Self {
19073 match err {
19074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19077 source: err.into(),
19078 }),
19079 }
19080 }
19081}
19082impl From<crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError> for Error {
19083 fn from(err: crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError) -> Self {
19084 match err {
19085 crate::operation::unassign_private_ip_addresses::UnassignPrivateIpAddressesError::Unhandled(inner) => Error::Unhandled(inner),
19086 }
19087 }
19088}
19089impl<R>
19090 From<
19091 ::aws_smithy_runtime_api::client::result::SdkError<
19092 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19093 R,
19094 >,
19095 > for Error
19096where
19097 R: Send + Sync + std::fmt::Debug + 'static,
19098{
19099 fn from(
19100 err: ::aws_smithy_runtime_api::client::result::SdkError<
19101 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError,
19102 R,
19103 >,
19104 ) -> Self {
19105 match err {
19106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19109 source: err.into(),
19110 }),
19111 }
19112 }
19113}
19114impl From<crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError> for Error {
19115 fn from(err: crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError) -> Self {
19116 match err {
19117 crate::operation::unassign_private_nat_gateway_address::UnassignPrivateNatGatewayAddressError::Unhandled(inner) => {
19118 Error::Unhandled(inner)
19119 }
19120 }
19121 }
19122}
19123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>> for Error
19124where
19125 R: Send + Sync + std::fmt::Debug + 'static,
19126{
19127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlock_snapshot::UnlockSnapshotError, R>) -> Self {
19128 match err {
19129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19132 source: err.into(),
19133 }),
19134 }
19135 }
19136}
19137impl From<crate::operation::unlock_snapshot::UnlockSnapshotError> for Error {
19138 fn from(err: crate::operation::unlock_snapshot::UnlockSnapshotError) -> Self {
19139 match err {
19140 crate::operation::unlock_snapshot::UnlockSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
19141 }
19142 }
19143}
19144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unmonitor_instances::UnmonitorInstancesError, 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::unmonitor_instances::UnmonitorInstancesError, 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::unmonitor_instances::UnmonitorInstancesError> for Error {
19159 fn from(err: crate::operation::unmonitor_instances::UnmonitorInstancesError) -> Self {
19160 match err {
19161 crate::operation::unmonitor_instances::UnmonitorInstancesError::Unhandled(inner) => Error::Unhandled(inner),
19162 }
19163 }
19164}
19165impl<R>
19166 From<
19167 ::aws_smithy_runtime_api::client::result::SdkError<
19168 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19169 R,
19170 >,
19171 > for Error
19172where
19173 R: Send + Sync + std::fmt::Debug + 'static,
19174{
19175 fn from(
19176 err: ::aws_smithy_runtime_api::client::result::SdkError<
19177 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError,
19178 R,
19179 >,
19180 ) -> Self {
19181 match err {
19182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19185 source: err.into(),
19186 }),
19187 }
19188 }
19189}
19190impl From<crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError> for Error {
19191 fn from(err: crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError) -> Self {
19192 match err {
19193 crate::operation::update_capacity_manager_organizations_access::UpdateCapacityManagerOrganizationsAccessError::Unhandled(inner) => {
19194 Error::Unhandled(inner)
19195 }
19196 }
19197 }
19198}
19199impl<R>
19200 From<
19201 ::aws_smithy_runtime_api::client::result::SdkError<
19202 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19203 R,
19204 >,
19205 > for Error
19206where
19207 R: Send + Sync + std::fmt::Debug + 'static,
19208{
19209 fn from(
19210 err: ::aws_smithy_runtime_api::client::result::SdkError<
19211 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError,
19212 R,
19213 >,
19214 ) -> Self {
19215 match err {
19216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19219 source: err.into(),
19220 }),
19221 }
19222 }
19223}
19224impl From<crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError> for Error {
19225 fn from(err: crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError) -> Self {
19226 match err {
19227 crate::operation::update_security_group_rule_descriptions_egress::UpdateSecurityGroupRuleDescriptionsEgressError::Unhandled(inner) => {
19228 Error::Unhandled(inner)
19229 }
19230 }
19231 }
19232}
19233impl<R>
19234 From<
19235 ::aws_smithy_runtime_api::client::result::SdkError<
19236 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19237 R,
19238 >,
19239 > for Error
19240where
19241 R: Send + Sync + std::fmt::Debug + 'static,
19242{
19243 fn from(
19244 err: ::aws_smithy_runtime_api::client::result::SdkError<
19245 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError,
19246 R,
19247 >,
19248 ) -> Self {
19249 match err {
19250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19253 source: err.into(),
19254 }),
19255 }
19256 }
19257}
19258impl From<crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError> for Error {
19259 fn from(err: crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError) -> Self {
19260 match err {
19261 crate::operation::update_security_group_rule_descriptions_ingress::UpdateSecurityGroupRuleDescriptionsIngressError::Unhandled(inner) => {
19262 Error::Unhandled(inner)
19263 }
19264 }
19265 }
19266}
19267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
19268where
19269 R: Send + Sync + std::fmt::Debug + 'static,
19270{
19271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
19272 match err {
19273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
19274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
19276 source: err.into(),
19277 }),
19278 }
19279 }
19280}
19281impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
19282 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
19283 match err {
19284 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
19285 }
19286 }
19287}
19288impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
19289where
19290 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
19291 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
19292{
19293 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
19294 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
19295 meta: ::std::default::Default::default(),
19296 source: err.into(),
19297 })
19298 }
19299}
19300impl ::std::error::Error for Error {
19301 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
19302 match self {
19303 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
19304 }
19305 }
19306}
19307impl ::aws_types::request_id::RequestId for Error {
19308 fn request_id(&self) -> Option<&str> {
19309 match self {
19310 Self::Unhandled(e) => e.meta.request_id(),
19311 }
19312 }
19313}