Skip to main content

aws_sdk_directconnect/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>One or more parameters are not valid.</p>
7    DirectConnectClientException(crate::types::error::DirectConnectClientException),
8    /// <p>A server-side error occurred.</p>
9    DirectConnectServerException(crate::types::error::DirectConnectServerException),
10    /// <p>A tag key was specified more than once.</p>
11    DuplicateTagKeysException(crate::types::error::DuplicateTagKeysException),
12    /// <p>The rate limiter limit has been exceeded for the connection. You cannot add more rate limiters to virtual interfaces on this connection.</p>
13    LimitExceededException(crate::types::error::LimitExceededException),
14    /// <p>You have reached the limit on the number of tags that can be assigned.</p>
15    TooManyTagsException(crate::types::error::TooManyTagsException),
16    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
17    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
18    variable wildcard pattern and check `.code()`:
19     \
20    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
21     \
22    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
23    Unhandled(crate::error::sealed_unhandled::Unhandled),
24}
25impl ::std::fmt::Display for Error {
26    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27        match self {
28            Error::DirectConnectClientException(inner) => inner.fmt(f),
29            Error::DirectConnectServerException(inner) => inner.fmt(f),
30            Error::DuplicateTagKeysException(inner) => inner.fmt(f),
31            Error::LimitExceededException(inner) => inner.fmt(f),
32            Error::TooManyTagsException(inner) => inner.fmt(f),
33            Error::Unhandled(_) => {
34                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
35                    write!(f, "unhandled error ({code})")
36                } else {
37                    f.write_str("unhandled error")
38                }
39            }
40        }
41    }
42}
43impl From<::aws_smithy_types::error::operation::BuildError> for Error {
44    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
45        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
46            source: value.into(),
47            meta: ::std::default::Default::default(),
48        })
49    }
50}
51impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
52    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
53        match self {
54            Self::DirectConnectClientException(inner) => inner.meta(),
55            Self::DirectConnectServerException(inner) => inner.meta(),
56            Self::DuplicateTagKeysException(inner) => inner.meta(),
57            Self::LimitExceededException(inner) => inner.meta(),
58            Self::TooManyTagsException(inner) => inner.meta(),
59            Self::Unhandled(inner) => &inner.meta,
60        }
61    }
62}
63impl<R>
64    From<
65        ::aws_smithy_runtime_api::client::result::SdkError<
66            crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError,
67            R,
68        >,
69    > for Error
70where
71    R: Send + Sync + std::fmt::Debug + 'static,
72{
73    fn from(
74        err: ::aws_smithy_runtime_api::client::result::SdkError<
75            crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError,
76            R,
77        >,
78    ) -> Self {
79        match err {
80            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
81            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
82                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
83                source: err.into(),
84            }),
85        }
86    }
87}
88impl From<crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError> for Error {
89    fn from(err: crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError) -> Self {
90        match err {
91            crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
92            crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
93            crate::operation::accept_direct_connect_gateway_association_proposal::AcceptDirectConnectGatewayAssociationProposalError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R>
98    From<
99        ::aws_smithy_runtime_api::client::result::SdkError<
100            crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError,
101            R,
102        >,
103    > for Error
104where
105    R: Send + Sync + std::fmt::Debug + 'static,
106{
107    fn from(
108        err: ::aws_smithy_runtime_api::client::result::SdkError<
109            crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError,
110            R,
111        >,
112    ) -> Self {
113        match err {
114            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
115            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
116                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
117                source: err.into(),
118            }),
119        }
120    }
121}
122impl From<crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError> for Error {
123    fn from(err: crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError) -> Self {
124        match err {
125            crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError::DirectConnectClientException(inner) => {
126                Error::DirectConnectClientException(inner)
127            }
128            crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError::DirectConnectServerException(inner) => {
129                Error::DirectConnectServerException(inner)
130            }
131            crate::operation::allocate_connection_on_interconnect::AllocateConnectionOnInterconnectError::Unhandled(inner) => Error::Unhandled(inner),
132        }
133    }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosted_connection::AllocateHostedConnectionError, R>>
136    for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(
141        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allocate_hosted_connection::AllocateHostedConnectionError, R>,
142    ) -> Self {
143        match err {
144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147                source: err.into(),
148            }),
149        }
150    }
151}
152impl From<crate::operation::allocate_hosted_connection::AllocateHostedConnectionError> for Error {
153    fn from(err: crate::operation::allocate_hosted_connection::AllocateHostedConnectionError) -> Self {
154        match err {
155            crate::operation::allocate_hosted_connection::AllocateHostedConnectionError::DirectConnectClientException(inner) => {
156                Error::DirectConnectClientException(inner)
157            }
158            crate::operation::allocate_hosted_connection::AllocateHostedConnectionError::DirectConnectServerException(inner) => {
159                Error::DirectConnectServerException(inner)
160            }
161            crate::operation::allocate_hosted_connection::AllocateHostedConnectionError::DuplicateTagKeysException(inner) => {
162                Error::DuplicateTagKeysException(inner)
163            }
164            crate::operation::allocate_hosted_connection::AllocateHostedConnectionError::TooManyTagsException(inner) => {
165                Error::TooManyTagsException(inner)
166            }
167            crate::operation::allocate_hosted_connection::AllocateHostedConnectionError::Unhandled(inner) => Error::Unhandled(inner),
168        }
169    }
170}
171impl<R>
172    From<
173        ::aws_smithy_runtime_api::client::result::SdkError<
174            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError,
175            R,
176        >,
177    > for Error
178where
179    R: Send + Sync + std::fmt::Debug + 'static,
180{
181    fn from(
182        err: ::aws_smithy_runtime_api::client::result::SdkError<
183            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError,
184            R,
185        >,
186    ) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError> for Error {
197    fn from(err: crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError) -> Self {
198        match err {
199            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::DirectConnectClientException(inner) => {
200                Error::DirectConnectClientException(inner)
201            }
202            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::DirectConnectServerException(inner) => {
203                Error::DirectConnectServerException(inner)
204            }
205            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::DuplicateTagKeysException(inner) => {
206                Error::DuplicateTagKeysException(inner)
207            }
208            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::LimitExceededException(inner) => {
209                Error::LimitExceededException(inner)
210            }
211            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::TooManyTagsException(inner) => {
212                Error::TooManyTagsException(inner)
213            }
214            crate::operation::allocate_private_virtual_interface::AllocatePrivateVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
215        }
216    }
217}
218impl<R>
219    From<
220        ::aws_smithy_runtime_api::client::result::SdkError<
221            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError,
222            R,
223        >,
224    > for Error
225where
226    R: Send + Sync + std::fmt::Debug + 'static,
227{
228    fn from(
229        err: ::aws_smithy_runtime_api::client::result::SdkError<
230            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError,
231            R,
232        >,
233    ) -> Self {
234        match err {
235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
238                source: err.into(),
239            }),
240        }
241    }
242}
243impl From<crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError> for Error {
244    fn from(err: crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError) -> Self {
245        match err {
246            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::DirectConnectClientException(inner) => {
247                Error::DirectConnectClientException(inner)
248            }
249            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::DirectConnectServerException(inner) => {
250                Error::DirectConnectServerException(inner)
251            }
252            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::DuplicateTagKeysException(inner) => {
253                Error::DuplicateTagKeysException(inner)
254            }
255            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::LimitExceededException(inner) => {
256                Error::LimitExceededException(inner)
257            }
258            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::TooManyTagsException(inner) => {
259                Error::TooManyTagsException(inner)
260            }
261            crate::operation::allocate_public_virtual_interface::AllocatePublicVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
262        }
263    }
264}
265impl<R>
266    From<
267        ::aws_smithy_runtime_api::client::result::SdkError<
268            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError,
269            R,
270        >,
271    > for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(
276        err: ::aws_smithy_runtime_api::client::result::SdkError<
277            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError,
278            R,
279        >,
280    ) -> Self {
281        match err {
282            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
283            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
284                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
285                source: err.into(),
286            }),
287        }
288    }
289}
290impl From<crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError> for Error {
291    fn from(err: crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError) -> Self {
292        match err {
293            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::DirectConnectClientException(inner) => {
294                Error::DirectConnectClientException(inner)
295            }
296            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::DirectConnectServerException(inner) => {
297                Error::DirectConnectServerException(inner)
298            }
299            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::DuplicateTagKeysException(inner) => {
300                Error::DuplicateTagKeysException(inner)
301            }
302            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::LimitExceededException(inner) => {
303                Error::LimitExceededException(inner)
304            }
305            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::TooManyTagsException(inner) => {
306                Error::TooManyTagsException(inner)
307            }
308            crate::operation::allocate_transit_virtual_interface::AllocateTransitVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
309        }
310    }
311}
312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError, R>>
313    for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(
318        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError, R>,
319    ) -> Self {
320        match err {
321            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
322            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
323                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
324                source: err.into(),
325            }),
326        }
327    }
328}
329impl From<crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError> for Error {
330    fn from(err: crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError) -> Self {
331        match err {
332            crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError::DirectConnectClientException(inner) => {
333                Error::DirectConnectClientException(inner)
334            }
335            crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError::DirectConnectServerException(inner) => {
336                Error::DirectConnectServerException(inner)
337            }
338            crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError::LimitExceededException(inner) => {
339                Error::LimitExceededException(inner)
340            }
341            crate::operation::associate_connection_with_lag::AssociateConnectionWithLagError::Unhandled(inner) => Error::Unhandled(inner),
342        }
343    }
344}
345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_hosted_connection::AssociateHostedConnectionError, R>>
346    for Error
347where
348    R: Send + Sync + std::fmt::Debug + 'static,
349{
350    fn from(
351        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_hosted_connection::AssociateHostedConnectionError, R>,
352    ) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::associate_hosted_connection::AssociateHostedConnectionError> for Error {
363    fn from(err: crate::operation::associate_hosted_connection::AssociateHostedConnectionError) -> Self {
364        match err {
365            crate::operation::associate_hosted_connection::AssociateHostedConnectionError::DirectConnectClientException(inner) => {
366                Error::DirectConnectClientException(inner)
367            }
368            crate::operation::associate_hosted_connection::AssociateHostedConnectionError::DirectConnectServerException(inner) => {
369                Error::DirectConnectServerException(inner)
370            }
371            crate::operation::associate_hosted_connection::AssociateHostedConnectionError::Unhandled(inner) => Error::Unhandled(inner),
372        }
373    }
374}
375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_mac_sec_key::AssociateMacSecKeyError, R>> for Error
376where
377    R: Send + Sync + std::fmt::Debug + 'static,
378{
379    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_mac_sec_key::AssociateMacSecKeyError, R>) -> Self {
380        match err {
381            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
382            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
383                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
384                source: err.into(),
385            }),
386        }
387    }
388}
389impl From<crate::operation::associate_mac_sec_key::AssociateMacSecKeyError> for Error {
390    fn from(err: crate::operation::associate_mac_sec_key::AssociateMacSecKeyError) -> Self {
391        match err {
392            crate::operation::associate_mac_sec_key::AssociateMacSecKeyError::DirectConnectClientException(inner) => {
393                Error::DirectConnectClientException(inner)
394            }
395            crate::operation::associate_mac_sec_key::AssociateMacSecKeyError::DirectConnectServerException(inner) => {
396                Error::DirectConnectServerException(inner)
397            }
398            crate::operation::associate_mac_sec_key::AssociateMacSecKeyError::Unhandled(inner) => Error::Unhandled(inner),
399        }
400    }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError, R>>
403    for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(
408        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError, R>,
409    ) -> Self {
410        match err {
411            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
412            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
413                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
414                source: err.into(),
415            }),
416        }
417    }
418}
419impl From<crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError> for Error {
420    fn from(err: crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError) -> Self {
421        match err {
422            crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError::DirectConnectClientException(inner) => {
423                Error::DirectConnectClientException(inner)
424            }
425            crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError::DirectConnectServerException(inner) => {
426                Error::DirectConnectServerException(inner)
427            }
428            crate::operation::associate_virtual_interface::AssociateVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_connection::ConfirmConnectionError, R>> for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_connection::ConfirmConnectionError, R>) -> 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::confirm_connection::ConfirmConnectionError> for Error {
447    fn from(err: crate::operation::confirm_connection::ConfirmConnectionError) -> Self {
448        match err {
449            crate::operation::confirm_connection::ConfirmConnectionError::DirectConnectClientException(inner) => {
450                Error::DirectConnectClientException(inner)
451            }
452            crate::operation::confirm_connection::ConfirmConnectionError::DirectConnectServerException(inner) => {
453                Error::DirectConnectServerException(inner)
454            }
455            crate::operation::confirm_connection::ConfirmConnectionError::Unhandled(inner) => Error::Unhandled(inner),
456        }
457    }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError, R>>
460    for Error
461where
462    R: Send + Sync + std::fmt::Debug + 'static,
463{
464    fn from(
465        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError, R>,
466    ) -> Self {
467        match err {
468            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471                source: err.into(),
472            }),
473        }
474    }
475}
476impl From<crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError> for Error {
477    fn from(err: crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError) -> Self {
478        match err {
479            crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError::DirectConnectClientException(inner) => {
480                Error::DirectConnectClientException(inner)
481            }
482            crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError::DirectConnectServerException(inner) => {
483                Error::DirectConnectServerException(inner)
484            }
485            crate::operation::confirm_customer_agreement::ConfirmCustomerAgreementError::Unhandled(inner) => Error::Unhandled(inner),
486        }
487    }
488}
489impl<R>
490    From<
491        ::aws_smithy_runtime_api::client::result::SdkError<
492            crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError,
493            R,
494        >,
495    > for Error
496where
497    R: Send + Sync + std::fmt::Debug + 'static,
498{
499    fn from(
500        err: ::aws_smithy_runtime_api::client::result::SdkError<
501            crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError,
502            R,
503        >,
504    ) -> Self {
505        match err {
506            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509                source: err.into(),
510            }),
511        }
512    }
513}
514impl From<crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError> for Error {
515    fn from(err: crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError) -> Self {
516        match err {
517            crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError::DirectConnectClientException(inner) => {
518                Error::DirectConnectClientException(inner)
519            }
520            crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError::DirectConnectServerException(inner) => {
521                Error::DirectConnectServerException(inner)
522            }
523            crate::operation::confirm_private_virtual_interface::ConfirmPrivateVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
524        }
525    }
526}
527impl<R>
528    From<
529        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError, R>,
530    > for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(
535        err: ::aws_smithy_runtime_api::client::result::SdkError<
536            crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError,
537            R,
538        >,
539    ) -> Self {
540        match err {
541            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544                source: err.into(),
545            }),
546        }
547    }
548}
549impl From<crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError> for Error {
550    fn from(err: crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError) -> Self {
551        match err {
552            crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError::DirectConnectClientException(inner) => {
553                Error::DirectConnectClientException(inner)
554            }
555            crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError::DirectConnectServerException(inner) => {
556                Error::DirectConnectServerException(inner)
557            }
558            crate::operation::confirm_public_virtual_interface::ConfirmPublicVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
559        }
560    }
561}
562impl<R>
563    From<
564        ::aws_smithy_runtime_api::client::result::SdkError<
565            crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError,
566            R,
567        >,
568    > for Error
569where
570    R: Send + Sync + std::fmt::Debug + 'static,
571{
572    fn from(
573        err: ::aws_smithy_runtime_api::client::result::SdkError<
574            crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError,
575            R,
576        >,
577    ) -> Self {
578        match err {
579            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
580            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
581                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
582                source: err.into(),
583            }),
584        }
585    }
586}
587impl From<crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError> for Error {
588    fn from(err: crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError) -> Self {
589        match err {
590            crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError::DirectConnectClientException(inner) => {
591                Error::DirectConnectClientException(inner)
592            }
593            crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError::DirectConnectServerException(inner) => {
594                Error::DirectConnectServerException(inner)
595            }
596            crate::operation::confirm_transit_virtual_interface::ConfirmTransitVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
597        }
598    }
599}
600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bgp_peer::CreateBGPPeerError, R>> for Error
601where
602    R: Send + Sync + std::fmt::Debug + 'static,
603{
604    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bgp_peer::CreateBGPPeerError, R>) -> Self {
605        match err {
606            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
607            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
608                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
609                source: err.into(),
610            }),
611        }
612    }
613}
614impl From<crate::operation::create_bgp_peer::CreateBGPPeerError> for Error {
615    fn from(err: crate::operation::create_bgp_peer::CreateBGPPeerError) -> Self {
616        match err {
617            crate::operation::create_bgp_peer::CreateBGPPeerError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
618            crate::operation::create_bgp_peer::CreateBGPPeerError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
619            crate::operation::create_bgp_peer::CreateBGPPeerError::Unhandled(inner) => Error::Unhandled(inner),
620        }
621    }
622}
623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
624where
625    R: Send + Sync + std::fmt::Debug + 'static,
626{
627    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
628        match err {
629            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
630            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
631                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
632                source: err.into(),
633            }),
634        }
635    }
636}
637impl From<crate::operation::create_connection::CreateConnectionError> for Error {
638    fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
639        match err {
640            crate::operation::create_connection::CreateConnectionError::DirectConnectClientException(inner) => {
641                Error::DirectConnectClientException(inner)
642            }
643            crate::operation::create_connection::CreateConnectionError::DirectConnectServerException(inner) => {
644                Error::DirectConnectServerException(inner)
645            }
646            crate::operation::create_connection::CreateConnectionError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
647            crate::operation::create_connection::CreateConnectionError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
648            crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
649        }
650    }
651}
652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError, R>>
653    for Error
654where
655    R: Send + Sync + std::fmt::Debug + 'static,
656{
657    fn from(
658        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError, R>,
659    ) -> Self {
660        match err {
661            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
662            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
663                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
664                source: err.into(),
665            }),
666        }
667    }
668}
669impl From<crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError> for Error {
670    fn from(err: crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError) -> Self {
671        match err {
672            crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError::DirectConnectClientException(inner) => {
673                Error::DirectConnectClientException(inner)
674            }
675            crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError::DirectConnectServerException(inner) => {
676                Error::DirectConnectServerException(inner)
677            }
678            crate::operation::create_direct_connect_gateway::CreateDirectConnectGatewayError::Unhandled(inner) => Error::Unhandled(inner),
679        }
680    }
681}
682impl<R>
683    From<
684        ::aws_smithy_runtime_api::client::result::SdkError<
685            crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError,
686            R,
687        >,
688    > for Error
689where
690    R: Send + Sync + std::fmt::Debug + 'static,
691{
692    fn from(
693        err: ::aws_smithy_runtime_api::client::result::SdkError<
694            crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError,
695            R,
696        >,
697    ) -> Self {
698        match err {
699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702                source: err.into(),
703            }),
704        }
705    }
706}
707impl From<crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError> for Error {
708    fn from(err: crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError) -> Self {
709        match err {
710            crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError::DirectConnectClientException(
711                inner,
712            ) => Error::DirectConnectClientException(inner),
713            crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError::DirectConnectServerException(
714                inner,
715            ) => Error::DirectConnectServerException(inner),
716            crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError::Unhandled(inner) => {
717                Error::Unhandled(inner)
718            }
719        }
720    }
721}
722impl<R>
723    From<
724        ::aws_smithy_runtime_api::client::result::SdkError<
725            crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError,
726            R,
727        >,
728    > for Error
729where
730    R: Send + Sync + std::fmt::Debug + 'static,
731{
732    fn from(
733        err: ::aws_smithy_runtime_api::client::result::SdkError<
734            crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError,
735            R,
736        >,
737    ) -> Self {
738        match err {
739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742                source: err.into(),
743            }),
744        }
745    }
746}
747impl From<crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError> for Error {
748    fn from(err: crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError) -> Self {
749        match err {
750            crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
751            crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
752            crate::operation::create_direct_connect_gateway_association_proposal::CreateDirectConnectGatewayAssociationProposalError::Unhandled(inner) => Error::Unhandled(inner),
753        }
754    }
755}
756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_interconnect::CreateInterconnectError, R>> for Error
757where
758    R: Send + Sync + std::fmt::Debug + 'static,
759{
760    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_interconnect::CreateInterconnectError, R>) -> Self {
761        match err {
762            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
763            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
764                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
765                source: err.into(),
766            }),
767        }
768    }
769}
770impl From<crate::operation::create_interconnect::CreateInterconnectError> for Error {
771    fn from(err: crate::operation::create_interconnect::CreateInterconnectError) -> Self {
772        match err {
773            crate::operation::create_interconnect::CreateInterconnectError::DirectConnectClientException(inner) => {
774                Error::DirectConnectClientException(inner)
775            }
776            crate::operation::create_interconnect::CreateInterconnectError::DirectConnectServerException(inner) => {
777                Error::DirectConnectServerException(inner)
778            }
779            crate::operation::create_interconnect::CreateInterconnectError::DuplicateTagKeysException(inner) => {
780                Error::DuplicateTagKeysException(inner)
781            }
782            crate::operation::create_interconnect::CreateInterconnectError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
783            crate::operation::create_interconnect::CreateInterconnectError::Unhandled(inner) => Error::Unhandled(inner),
784        }
785    }
786}
787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lag::CreateLagError, R>> for Error
788where
789    R: Send + Sync + std::fmt::Debug + 'static,
790{
791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lag::CreateLagError, R>) -> Self {
792        match err {
793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
796                source: err.into(),
797            }),
798        }
799    }
800}
801impl From<crate::operation::create_lag::CreateLagError> for Error {
802    fn from(err: crate::operation::create_lag::CreateLagError) -> Self {
803        match err {
804            crate::operation::create_lag::CreateLagError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
805            crate::operation::create_lag::CreateLagError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
806            crate::operation::create_lag::CreateLagError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
807            crate::operation::create_lag::CreateLagError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
808            crate::operation::create_lag::CreateLagError::Unhandled(inner) => Error::Unhandled(inner),
809        }
810    }
811}
812impl<R>
813    From<
814        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError, R>,
815    > for Error
816where
817    R: Send + Sync + std::fmt::Debug + 'static,
818{
819    fn from(
820        err: ::aws_smithy_runtime_api::client::result::SdkError<
821            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError,
822            R,
823        >,
824    ) -> Self {
825        match err {
826            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
827            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
828                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
829                source: err.into(),
830            }),
831        }
832    }
833}
834impl From<crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError> for Error {
835    fn from(err: crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError) -> Self {
836        match err {
837            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::DirectConnectClientException(inner) => {
838                Error::DirectConnectClientException(inner)
839            }
840            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::DirectConnectServerException(inner) => {
841                Error::DirectConnectServerException(inner)
842            }
843            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::DuplicateTagKeysException(inner) => {
844                Error::DuplicateTagKeysException(inner)
845            }
846            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::LimitExceededException(inner) => {
847                Error::LimitExceededException(inner)
848            }
849            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::TooManyTagsException(inner) => {
850                Error::TooManyTagsException(inner)
851            }
852            crate::operation::create_private_virtual_interface::CreatePrivateVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R>
857    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError, R>>
858    for Error
859where
860    R: Send + Sync + std::fmt::Debug + 'static,
861{
862    fn from(
863        err: ::aws_smithy_runtime_api::client::result::SdkError<
864            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError,
865            R,
866        >,
867    ) -> Self {
868        match err {
869            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872                source: err.into(),
873            }),
874        }
875    }
876}
877impl From<crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError> for Error {
878    fn from(err: crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError) -> Self {
879        match err {
880            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::DirectConnectClientException(inner) => {
881                Error::DirectConnectClientException(inner)
882            }
883            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::DirectConnectServerException(inner) => {
884                Error::DirectConnectServerException(inner)
885            }
886            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::DuplicateTagKeysException(inner) => {
887                Error::DuplicateTagKeysException(inner)
888            }
889            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::LimitExceededException(inner) => {
890                Error::LimitExceededException(inner)
891            }
892            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::TooManyTagsException(inner) => {
893                Error::TooManyTagsException(inner)
894            }
895            crate::operation::create_public_virtual_interface::CreatePublicVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R>
900    From<
901        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError, R>,
902    > for Error
903where
904    R: Send + Sync + std::fmt::Debug + 'static,
905{
906    fn from(
907        err: ::aws_smithy_runtime_api::client::result::SdkError<
908            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError,
909            R,
910        >,
911    ) -> Self {
912        match err {
913            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
914            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
915                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
916                source: err.into(),
917            }),
918        }
919    }
920}
921impl From<crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError> for Error {
922    fn from(err: crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError) -> Self {
923        match err {
924            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::DirectConnectClientException(inner) => {
925                Error::DirectConnectClientException(inner)
926            }
927            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::DirectConnectServerException(inner) => {
928                Error::DirectConnectServerException(inner)
929            }
930            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::DuplicateTagKeysException(inner) => {
931                Error::DuplicateTagKeysException(inner)
932            }
933            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::LimitExceededException(inner) => {
934                Error::LimitExceededException(inner)
935            }
936            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::TooManyTagsException(inner) => {
937                Error::TooManyTagsException(inner)
938            }
939            crate::operation::create_transit_virtual_interface::CreateTransitVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
940        }
941    }
942}
943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bgp_peer::DeleteBGPPeerError, R>> for Error
944where
945    R: Send + Sync + std::fmt::Debug + 'static,
946{
947    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bgp_peer::DeleteBGPPeerError, R>) -> Self {
948        match err {
949            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
950            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
951                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
952                source: err.into(),
953            }),
954        }
955    }
956}
957impl From<crate::operation::delete_bgp_peer::DeleteBGPPeerError> for Error {
958    fn from(err: crate::operation::delete_bgp_peer::DeleteBGPPeerError) -> Self {
959        match err {
960            crate::operation::delete_bgp_peer::DeleteBGPPeerError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
961            crate::operation::delete_bgp_peer::DeleteBGPPeerError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
962            crate::operation::delete_bgp_peer::DeleteBGPPeerError::Unhandled(inner) => Error::Unhandled(inner),
963        }
964    }
965}
966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
967where
968    R: Send + Sync + std::fmt::Debug + 'static,
969{
970    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
971        match err {
972            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
973            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
974                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
975                source: err.into(),
976            }),
977        }
978    }
979}
980impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
981    fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
982        match err {
983            crate::operation::delete_connection::DeleteConnectionError::DirectConnectClientException(inner) => {
984                Error::DirectConnectClientException(inner)
985            }
986            crate::operation::delete_connection::DeleteConnectionError::DirectConnectServerException(inner) => {
987                Error::DirectConnectServerException(inner)
988            }
989            crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
990        }
991    }
992}
993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError, R>>
994    for Error
995where
996    R: Send + Sync + std::fmt::Debug + 'static,
997{
998    fn from(
999        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError, R>,
1000    ) -> Self {
1001        match err {
1002            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005                source: err.into(),
1006            }),
1007        }
1008    }
1009}
1010impl From<crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError> for Error {
1011    fn from(err: crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError) -> Self {
1012        match err {
1013            crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError::DirectConnectClientException(inner) => {
1014                Error::DirectConnectClientException(inner)
1015            }
1016            crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError::DirectConnectServerException(inner) => {
1017                Error::DirectConnectServerException(inner)
1018            }
1019            crate::operation::delete_direct_connect_gateway::DeleteDirectConnectGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1020        }
1021    }
1022}
1023impl<R>
1024    From<
1025        ::aws_smithy_runtime_api::client::result::SdkError<
1026            crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError,
1027            R,
1028        >,
1029    > for Error
1030where
1031    R: Send + Sync + std::fmt::Debug + 'static,
1032{
1033    fn from(
1034        err: ::aws_smithy_runtime_api::client::result::SdkError<
1035            crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError,
1036            R,
1037        >,
1038    ) -> Self {
1039        match err {
1040            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1041            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1042                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1043                source: err.into(),
1044            }),
1045        }
1046    }
1047}
1048impl From<crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError> for Error {
1049    fn from(err: crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError) -> Self {
1050        match err {
1051            crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError::DirectConnectClientException(
1052                inner,
1053            ) => Error::DirectConnectClientException(inner),
1054            crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError::DirectConnectServerException(
1055                inner,
1056            ) => Error::DirectConnectServerException(inner),
1057            crate::operation::delete_direct_connect_gateway_association::DeleteDirectConnectGatewayAssociationError::Unhandled(inner) => {
1058                Error::Unhandled(inner)
1059            }
1060        }
1061    }
1062}
1063impl<R>
1064    From<
1065        ::aws_smithy_runtime_api::client::result::SdkError<
1066            crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError,
1067            R,
1068        >,
1069    > for Error
1070where
1071    R: Send + Sync + std::fmt::Debug + 'static,
1072{
1073    fn from(
1074        err: ::aws_smithy_runtime_api::client::result::SdkError<
1075            crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError,
1076            R,
1077        >,
1078    ) -> Self {
1079        match err {
1080            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1081            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1082                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1083                source: err.into(),
1084            }),
1085        }
1086    }
1087}
1088impl From<crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError> for Error {
1089    fn from(err: crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError) -> Self {
1090        match err {
1091            crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1092            crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1093            crate::operation::delete_direct_connect_gateway_association_proposal::DeleteDirectConnectGatewayAssociationProposalError::Unhandled(inner) => Error::Unhandled(inner),
1094        }
1095    }
1096}
1097impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_interconnect::DeleteInterconnectError, R>> for Error
1098where
1099    R: Send + Sync + std::fmt::Debug + 'static,
1100{
1101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_interconnect::DeleteInterconnectError, R>) -> Self {
1102        match err {
1103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1106                source: err.into(),
1107            }),
1108        }
1109    }
1110}
1111impl From<crate::operation::delete_interconnect::DeleteInterconnectError> for Error {
1112    fn from(err: crate::operation::delete_interconnect::DeleteInterconnectError) -> Self {
1113        match err {
1114            crate::operation::delete_interconnect::DeleteInterconnectError::DirectConnectClientException(inner) => {
1115                Error::DirectConnectClientException(inner)
1116            }
1117            crate::operation::delete_interconnect::DeleteInterconnectError::DirectConnectServerException(inner) => {
1118                Error::DirectConnectServerException(inner)
1119            }
1120            crate::operation::delete_interconnect::DeleteInterconnectError::Unhandled(inner) => Error::Unhandled(inner),
1121        }
1122    }
1123}
1124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lag::DeleteLagError, R>> for Error
1125where
1126    R: Send + Sync + std::fmt::Debug + 'static,
1127{
1128    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lag::DeleteLagError, R>) -> Self {
1129        match err {
1130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133                source: err.into(),
1134            }),
1135        }
1136    }
1137}
1138impl From<crate::operation::delete_lag::DeleteLagError> for Error {
1139    fn from(err: crate::operation::delete_lag::DeleteLagError) -> Self {
1140        match err {
1141            crate::operation::delete_lag::DeleteLagError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1142            crate::operation::delete_lag::DeleteLagError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1143            crate::operation::delete_lag::DeleteLagError::Unhandled(inner) => Error::Unhandled(inner),
1144        }
1145    }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError, R>> for Error
1148where
1149    R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151    fn from(
1152        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError, R>,
1153    ) -> Self {
1154        match err {
1155            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1156            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1157                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1158                source: err.into(),
1159            }),
1160        }
1161    }
1162}
1163impl From<crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError> for Error {
1164    fn from(err: crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError) -> Self {
1165        match err {
1166            crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError::DirectConnectClientException(inner) => {
1167                Error::DirectConnectClientException(inner)
1168            }
1169            crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError::DirectConnectServerException(inner) => {
1170                Error::DirectConnectServerException(inner)
1171            }
1172            crate::operation::delete_virtual_interface::DeleteVirtualInterfaceError::Unhandled(inner) => Error::Unhandled(inner),
1173        }
1174    }
1175}
1176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connection_loa::DescribeConnectionLoaError, R>> for Error
1177where
1178    R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180    fn from(
1181        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connection_loa::DescribeConnectionLoaError, R>,
1182    ) -> Self {
1183        match err {
1184            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1185            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1186                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1187                source: err.into(),
1188            }),
1189        }
1190    }
1191}
1192impl From<crate::operation::describe_connection_loa::DescribeConnectionLoaError> for Error {
1193    fn from(err: crate::operation::describe_connection_loa::DescribeConnectionLoaError) -> Self {
1194        match err {
1195            crate::operation::describe_connection_loa::DescribeConnectionLoaError::DirectConnectClientException(inner) => {
1196                Error::DirectConnectClientException(inner)
1197            }
1198            crate::operation::describe_connection_loa::DescribeConnectionLoaError::DirectConnectServerException(inner) => {
1199                Error::DirectConnectServerException(inner)
1200            }
1201            crate::operation::describe_connection_loa::DescribeConnectionLoaError::Unhandled(inner) => Error::Unhandled(inner),
1202        }
1203    }
1204}
1205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connections::DescribeConnectionsError, R>> for Error
1206where
1207    R: Send + Sync + std::fmt::Debug + 'static,
1208{
1209    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connections::DescribeConnectionsError, R>) -> Self {
1210        match err {
1211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214                source: err.into(),
1215            }),
1216        }
1217    }
1218}
1219impl From<crate::operation::describe_connections::DescribeConnectionsError> for Error {
1220    fn from(err: crate::operation::describe_connections::DescribeConnectionsError) -> Self {
1221        match err {
1222            crate::operation::describe_connections::DescribeConnectionsError::DirectConnectClientException(inner) => {
1223                Error::DirectConnectClientException(inner)
1224            }
1225            crate::operation::describe_connections::DescribeConnectionsError::DirectConnectServerException(inner) => {
1226                Error::DirectConnectServerException(inner)
1227            }
1228            crate::operation::describe_connections::DescribeConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1229        }
1230    }
1231}
1232impl<R>
1233    From<
1234        ::aws_smithy_runtime_api::client::result::SdkError<
1235            crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError,
1236            R,
1237        >,
1238    > for Error
1239where
1240    R: Send + Sync + std::fmt::Debug + 'static,
1241{
1242    fn from(
1243        err: ::aws_smithy_runtime_api::client::result::SdkError<
1244            crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError,
1245            R,
1246        >,
1247    ) -> Self {
1248        match err {
1249            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1250            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1251                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1252                source: err.into(),
1253            }),
1254        }
1255    }
1256}
1257impl From<crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError> for Error {
1258    fn from(err: crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError) -> Self {
1259        match err {
1260            crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError::DirectConnectClientException(inner) => {
1261                Error::DirectConnectClientException(inner)
1262            }
1263            crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError::DirectConnectServerException(inner) => {
1264                Error::DirectConnectServerException(inner)
1265            }
1266            crate::operation::describe_connections_on_interconnect::DescribeConnectionsOnInterconnectError::Unhandled(inner) => {
1267                Error::Unhandled(inner)
1268            }
1269        }
1270    }
1271}
1272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_metadata::DescribeCustomerMetadataError, R>>
1273    for Error
1274where
1275    R: Send + Sync + std::fmt::Debug + 'static,
1276{
1277    fn from(
1278        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_customer_metadata::DescribeCustomerMetadataError, R>,
1279    ) -> Self {
1280        match err {
1281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1284                source: err.into(),
1285            }),
1286        }
1287    }
1288}
1289impl From<crate::operation::describe_customer_metadata::DescribeCustomerMetadataError> for Error {
1290    fn from(err: crate::operation::describe_customer_metadata::DescribeCustomerMetadataError) -> Self {
1291        match err {
1292            crate::operation::describe_customer_metadata::DescribeCustomerMetadataError::DirectConnectClientException(inner) => {
1293                Error::DirectConnectClientException(inner)
1294            }
1295            crate::operation::describe_customer_metadata::DescribeCustomerMetadataError::DirectConnectServerException(inner) => {
1296                Error::DirectConnectServerException(inner)
1297            }
1298            crate::operation::describe_customer_metadata::DescribeCustomerMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1299        }
1300    }
1301}
1302impl<R>
1303    From<
1304        ::aws_smithy_runtime_api::client::result::SdkError<
1305            crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError,
1306            R,
1307        >,
1308    > for Error
1309where
1310    R: Send + Sync + std::fmt::Debug + 'static,
1311{
1312    fn from(
1313        err: ::aws_smithy_runtime_api::client::result::SdkError<
1314            crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError,
1315            R,
1316        >,
1317    ) -> Self {
1318        match err {
1319            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1320            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1321                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1322                source: err.into(),
1323            }),
1324        }
1325    }
1326}
1327impl From<crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError> for Error {
1328    fn from(
1329        err: crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError,
1330    ) -> Self {
1331        match err {
1332            crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1333            crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1334            crate::operation::describe_direct_connect_gateway_association_proposals::DescribeDirectConnectGatewayAssociationProposalsError::Unhandled(inner) => Error::Unhandled(inner),
1335        }
1336    }
1337}
1338impl<R>
1339    From<
1340        ::aws_smithy_runtime_api::client::result::SdkError<
1341            crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError,
1342            R,
1343        >,
1344    > for Error
1345where
1346    R: Send + Sync + std::fmt::Debug + 'static,
1347{
1348    fn from(
1349        err: ::aws_smithy_runtime_api::client::result::SdkError<
1350            crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError,
1351            R,
1352        >,
1353    ) -> Self {
1354        match err {
1355            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1356            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1357                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1358                source: err.into(),
1359            }),
1360        }
1361    }
1362}
1363impl From<crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError> for Error {
1364    fn from(err: crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError) -> Self {
1365        match err {
1366            crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1367            crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1368            crate::operation::describe_direct_connect_gateway_associations::DescribeDirectConnectGatewayAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1369        }
1370    }
1371}
1372impl<R>
1373    From<
1374        ::aws_smithy_runtime_api::client::result::SdkError<
1375            crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError,
1376            R,
1377        >,
1378    > for Error
1379where
1380    R: Send + Sync + std::fmt::Debug + 'static,
1381{
1382    fn from(
1383        err: ::aws_smithy_runtime_api::client::result::SdkError<
1384            crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError,
1385            R,
1386        >,
1387    ) -> Self {
1388        match err {
1389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1392                source: err.into(),
1393            }),
1394        }
1395    }
1396}
1397impl From<crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError> for Error {
1398    fn from(err: crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError) -> Self {
1399        match err {
1400            crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1401            crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1402            crate::operation::describe_direct_connect_gateway_attachments::DescribeDirectConnectGatewayAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
1403        }
1404    }
1405}
1406impl<R>
1407    From<
1408        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError, R>,
1409    > for Error
1410where
1411    R: Send + Sync + std::fmt::Debug + 'static,
1412{
1413    fn from(
1414        err: ::aws_smithy_runtime_api::client::result::SdkError<
1415            crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError,
1416            R,
1417        >,
1418    ) -> Self {
1419        match err {
1420            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1421            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1422                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1423                source: err.into(),
1424            }),
1425        }
1426    }
1427}
1428impl From<crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError> for Error {
1429    fn from(err: crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError) -> Self {
1430        match err {
1431            crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError::DirectConnectClientException(inner) => {
1432                Error::DirectConnectClientException(inner)
1433            }
1434            crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError::DirectConnectServerException(inner) => {
1435                Error::DirectConnectServerException(inner)
1436            }
1437            crate::operation::describe_direct_connect_gateways::DescribeDirectConnectGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
1438        }
1439    }
1440}
1441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosted_connections::DescribeHostedConnectionsError, R>>
1442    for Error
1443where
1444    R: Send + Sync + std::fmt::Debug + 'static,
1445{
1446    fn from(
1447        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hosted_connections::DescribeHostedConnectionsError, R>,
1448    ) -> Self {
1449        match err {
1450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1453                source: err.into(),
1454            }),
1455        }
1456    }
1457}
1458impl From<crate::operation::describe_hosted_connections::DescribeHostedConnectionsError> for Error {
1459    fn from(err: crate::operation::describe_hosted_connections::DescribeHostedConnectionsError) -> Self {
1460        match err {
1461            crate::operation::describe_hosted_connections::DescribeHostedConnectionsError::DirectConnectClientException(inner) => {
1462                Error::DirectConnectClientException(inner)
1463            }
1464            crate::operation::describe_hosted_connections::DescribeHostedConnectionsError::DirectConnectServerException(inner) => {
1465                Error::DirectConnectServerException(inner)
1466            }
1467            crate::operation::describe_hosted_connections::DescribeHostedConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1468        }
1469    }
1470}
1471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError, R>>
1472    for Error
1473where
1474    R: Send + Sync + std::fmt::Debug + 'static,
1475{
1476    fn from(
1477        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError, R>,
1478    ) -> Self {
1479        match err {
1480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1483                source: err.into(),
1484            }),
1485        }
1486    }
1487}
1488impl From<crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError> for Error {
1489    fn from(err: crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError) -> Self {
1490        match err {
1491            crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError::DirectConnectClientException(inner) => {
1492                Error::DirectConnectClientException(inner)
1493            }
1494            crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError::DirectConnectServerException(inner) => {
1495                Error::DirectConnectServerException(inner)
1496            }
1497            crate::operation::describe_interconnect_loa::DescribeInterconnectLoaError::Unhandled(inner) => Error::Unhandled(inner),
1498        }
1499    }
1500}
1501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_interconnects::DescribeInterconnectsError, R>> for Error
1502where
1503    R: Send + Sync + std::fmt::Debug + 'static,
1504{
1505    fn from(
1506        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_interconnects::DescribeInterconnectsError, R>,
1507    ) -> Self {
1508        match err {
1509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1512                source: err.into(),
1513            }),
1514        }
1515    }
1516}
1517impl From<crate::operation::describe_interconnects::DescribeInterconnectsError> for Error {
1518    fn from(err: crate::operation::describe_interconnects::DescribeInterconnectsError) -> Self {
1519        match err {
1520            crate::operation::describe_interconnects::DescribeInterconnectsError::DirectConnectClientException(inner) => {
1521                Error::DirectConnectClientException(inner)
1522            }
1523            crate::operation::describe_interconnects::DescribeInterconnectsError::DirectConnectServerException(inner) => {
1524                Error::DirectConnectServerException(inner)
1525            }
1526            crate::operation::describe_interconnects::DescribeInterconnectsError::Unhandled(inner) => Error::Unhandled(inner),
1527        }
1528    }
1529}
1530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lags::DescribeLagsError, R>> for Error
1531where
1532    R: Send + Sync + std::fmt::Debug + 'static,
1533{
1534    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lags::DescribeLagsError, R>) -> Self {
1535        match err {
1536            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1537            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1538                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1539                source: err.into(),
1540            }),
1541        }
1542    }
1543}
1544impl From<crate::operation::describe_lags::DescribeLagsError> for Error {
1545    fn from(err: crate::operation::describe_lags::DescribeLagsError) -> Self {
1546        match err {
1547            crate::operation::describe_lags::DescribeLagsError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1548            crate::operation::describe_lags::DescribeLagsError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1549            crate::operation::describe_lags::DescribeLagsError::Unhandled(inner) => Error::Unhandled(inner),
1550        }
1551    }
1552}
1553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_loa::DescribeLoaError, R>> for Error
1554where
1555    R: Send + Sync + std::fmt::Debug + 'static,
1556{
1557    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_loa::DescribeLoaError, R>) -> Self {
1558        match err {
1559            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1560            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1561                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1562                source: err.into(),
1563            }),
1564        }
1565    }
1566}
1567impl From<crate::operation::describe_loa::DescribeLoaError> for Error {
1568    fn from(err: crate::operation::describe_loa::DescribeLoaError) -> Self {
1569        match err {
1570            crate::operation::describe_loa::DescribeLoaError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1571            crate::operation::describe_loa::DescribeLoaError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1572            crate::operation::describe_loa::DescribeLoaError::Unhandled(inner) => Error::Unhandled(inner),
1573        }
1574    }
1575}
1576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locations::DescribeLocationsError, R>> for Error
1577where
1578    R: Send + Sync + std::fmt::Debug + 'static,
1579{
1580    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_locations::DescribeLocationsError, R>) -> Self {
1581        match err {
1582            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1583            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1584                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1585                source: err.into(),
1586            }),
1587        }
1588    }
1589}
1590impl From<crate::operation::describe_locations::DescribeLocationsError> for Error {
1591    fn from(err: crate::operation::describe_locations::DescribeLocationsError) -> Self {
1592        match err {
1593            crate::operation::describe_locations::DescribeLocationsError::DirectConnectClientException(inner) => {
1594                Error::DirectConnectClientException(inner)
1595            }
1596            crate::operation::describe_locations::DescribeLocationsError::DirectConnectServerException(inner) => {
1597                Error::DirectConnectServerException(inner)
1598            }
1599            crate::operation::describe_locations::DescribeLocationsError::Unhandled(inner) => Error::Unhandled(inner),
1600        }
1601    }
1602}
1603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_router_configuration::DescribeRouterConfigurationError, R>>
1604    for Error
1605where
1606    R: Send + Sync + std::fmt::Debug + 'static,
1607{
1608    fn from(
1609        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_router_configuration::DescribeRouterConfigurationError, R>,
1610    ) -> Self {
1611        match err {
1612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1615                source: err.into(),
1616            }),
1617        }
1618    }
1619}
1620impl From<crate::operation::describe_router_configuration::DescribeRouterConfigurationError> for Error {
1621    fn from(err: crate::operation::describe_router_configuration::DescribeRouterConfigurationError) -> Self {
1622        match err {
1623            crate::operation::describe_router_configuration::DescribeRouterConfigurationError::DirectConnectClientException(inner) => {
1624                Error::DirectConnectClientException(inner)
1625            }
1626            crate::operation::describe_router_configuration::DescribeRouterConfigurationError::DirectConnectServerException(inner) => {
1627                Error::DirectConnectServerException(inner)
1628            }
1629            crate::operation::describe_router_configuration::DescribeRouterConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1630        }
1631    }
1632}
1633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
1634where
1635    R: Send + Sync + std::fmt::Debug + 'static,
1636{
1637    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
1638        match err {
1639            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1640            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1641                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1642                source: err.into(),
1643            }),
1644        }
1645    }
1646}
1647impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
1648    fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
1649        match err {
1650            crate::operation::describe_tags::DescribeTagsError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1651            crate::operation::describe_tags::DescribeTagsError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1652            crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
1653        }
1654    }
1655}
1656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError, R>>
1657    for Error
1658where
1659    R: Send + Sync + std::fmt::Debug + 'static,
1660{
1661    fn from(
1662        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError, R>,
1663    ) -> Self {
1664        match err {
1665            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1666            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1667                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1668                source: err.into(),
1669            }),
1670        }
1671    }
1672}
1673impl From<crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError> for Error {
1674    fn from(err: crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError) -> Self {
1675        match err {
1676            crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError::DirectConnectClientException(inner) => {
1677                Error::DirectConnectClientException(inner)
1678            }
1679            crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError::DirectConnectServerException(inner) => {
1680                Error::DirectConnectServerException(inner)
1681            }
1682            crate::operation::describe_virtual_gateways::DescribeVirtualGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
1683        }
1684    }
1685}
1686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError, R>>
1687    for Error
1688where
1689    R: Send + Sync + std::fmt::Debug + 'static,
1690{
1691    fn from(
1692        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError, R>,
1693    ) -> Self {
1694        match err {
1695            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698                source: err.into(),
1699            }),
1700        }
1701    }
1702}
1703impl From<crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError> for Error {
1704    fn from(err: crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError) -> Self {
1705        match err {
1706            crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError::DirectConnectClientException(inner) => {
1707                Error::DirectConnectClientException(inner)
1708            }
1709            crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError::DirectConnectServerException(inner) => {
1710                Error::DirectConnectServerException(inner)
1711            }
1712            crate::operation::describe_virtual_interfaces::DescribeVirtualInterfacesError::Unhandled(inner) => Error::Unhandled(inner),
1713        }
1714    }
1715}
1716impl<R>
1717    From<
1718        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError, R>,
1719    > for Error
1720where
1721    R: Send + Sync + std::fmt::Debug + 'static,
1722{
1723    fn from(
1724        err: ::aws_smithy_runtime_api::client::result::SdkError<
1725            crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError,
1726            R,
1727        >,
1728    ) -> Self {
1729        match err {
1730            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1731            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1732                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1733                source: err.into(),
1734            }),
1735        }
1736    }
1737}
1738impl From<crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError> for Error {
1739    fn from(err: crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError) -> Self {
1740        match err {
1741            crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError::DirectConnectClientException(inner) => {
1742                Error::DirectConnectClientException(inner)
1743            }
1744            crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError::DirectConnectServerException(inner) => {
1745                Error::DirectConnectServerException(inner)
1746            }
1747            crate::operation::disassociate_connection_from_lag::DisassociateConnectionFromLagError::Unhandled(inner) => Error::Unhandled(inner),
1748        }
1749    }
1750}
1751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError, R>> for Error
1752where
1753    R: Send + Sync + std::fmt::Debug + 'static,
1754{
1755    fn from(
1756        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError, R>,
1757    ) -> Self {
1758        match err {
1759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1762                source: err.into(),
1763            }),
1764        }
1765    }
1766}
1767impl From<crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError> for Error {
1768    fn from(err: crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError) -> Self {
1769        match err {
1770            crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError::DirectConnectClientException(inner) => {
1771                Error::DirectConnectClientException(inner)
1772            }
1773            crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError::DirectConnectServerException(inner) => {
1774                Error::DirectConnectServerException(inner)
1775            }
1776            crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError::Unhandled(inner) => Error::Unhandled(inner),
1777        }
1778    }
1779}
1780impl<R>
1781    From<
1782        ::aws_smithy_runtime_api::client::result::SdkError<
1783            crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError,
1784            R,
1785        >,
1786    > for Error
1787where
1788    R: Send + Sync + std::fmt::Debug + 'static,
1789{
1790    fn from(
1791        err: ::aws_smithy_runtime_api::client::result::SdkError<
1792            crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError,
1793            R,
1794        >,
1795    ) -> Self {
1796        match err {
1797            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1798            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1799                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1800                source: err.into(),
1801            }),
1802        }
1803    }
1804}
1805impl From<crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError> for Error {
1806    fn from(err: crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError) -> Self {
1807        match err {
1808            crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError::DirectConnectClientException(inner) => {
1809                Error::DirectConnectClientException(inner)
1810            }
1811            crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError::DirectConnectServerException(inner) => {
1812                Error::DirectConnectServerException(inner)
1813            }
1814            crate::operation::list_virtual_interface_test_history::ListVirtualInterfaceTestHistoryError::Unhandled(inner) => Error::Unhandled(inner),
1815        }
1816    }
1817}
1818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bgp_failover_test::StartBgpFailoverTestError, R>> for Error
1819where
1820    R: Send + Sync + std::fmt::Debug + 'static,
1821{
1822    fn from(
1823        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bgp_failover_test::StartBgpFailoverTestError, R>,
1824    ) -> Self {
1825        match err {
1826            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1827            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1828                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1829                source: err.into(),
1830            }),
1831        }
1832    }
1833}
1834impl From<crate::operation::start_bgp_failover_test::StartBgpFailoverTestError> for Error {
1835    fn from(err: crate::operation::start_bgp_failover_test::StartBgpFailoverTestError) -> Self {
1836        match err {
1837            crate::operation::start_bgp_failover_test::StartBgpFailoverTestError::DirectConnectClientException(inner) => {
1838                Error::DirectConnectClientException(inner)
1839            }
1840            crate::operation::start_bgp_failover_test::StartBgpFailoverTestError::DirectConnectServerException(inner) => {
1841                Error::DirectConnectServerException(inner)
1842            }
1843            crate::operation::start_bgp_failover_test::StartBgpFailoverTestError::Unhandled(inner) => Error::Unhandled(inner),
1844        }
1845    }
1846}
1847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError, R>> for Error
1848where
1849    R: Send + Sync + std::fmt::Debug + 'static,
1850{
1851    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError, R>) -> Self {
1852        match err {
1853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1856                source: err.into(),
1857            }),
1858        }
1859    }
1860}
1861impl From<crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError> for Error {
1862    fn from(err: crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError) -> Self {
1863        match err {
1864            crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError::DirectConnectClientException(inner) => {
1865                Error::DirectConnectClientException(inner)
1866            }
1867            crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError::DirectConnectServerException(inner) => {
1868                Error::DirectConnectServerException(inner)
1869            }
1870            crate::operation::stop_bgp_failover_test::StopBgpFailoverTestError::Unhandled(inner) => Error::Unhandled(inner),
1871        }
1872    }
1873}
1874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1875where
1876    R: Send + Sync + std::fmt::Debug + 'static,
1877{
1878    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1879        match err {
1880            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1881            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1882                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1883                source: err.into(),
1884            }),
1885        }
1886    }
1887}
1888impl From<crate::operation::tag_resource::TagResourceError> for Error {
1889    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1890        match err {
1891            crate::operation::tag_resource::TagResourceError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1892            crate::operation::tag_resource::TagResourceError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1893            crate::operation::tag_resource::TagResourceError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
1894            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1895            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1896        }
1897    }
1898}
1899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1900where
1901    R: Send + Sync + std::fmt::Debug + 'static,
1902{
1903    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1904        match err {
1905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1908                source: err.into(),
1909            }),
1910        }
1911    }
1912}
1913impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1914    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1915        match err {
1916            crate::operation::untag_resource::UntagResourceError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
1917            crate::operation::untag_resource::UntagResourceError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
1918            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1919        }
1920    }
1921}
1922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
1923where
1924    R: Send + Sync + std::fmt::Debug + 'static,
1925{
1926    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
1927        match err {
1928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1931                source: err.into(),
1932            }),
1933        }
1934    }
1935}
1936impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
1937    fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
1938        match err {
1939            crate::operation::update_connection::UpdateConnectionError::DirectConnectClientException(inner) => {
1940                Error::DirectConnectClientException(inner)
1941            }
1942            crate::operation::update_connection::UpdateConnectionError::DirectConnectServerException(inner) => {
1943                Error::DirectConnectServerException(inner)
1944            }
1945            crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1946        }
1947    }
1948}
1949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError, R>>
1950    for Error
1951where
1952    R: Send + Sync + std::fmt::Debug + 'static,
1953{
1954    fn from(
1955        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError, R>,
1956    ) -> Self {
1957        match err {
1958            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1959            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1960                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1961                source: err.into(),
1962            }),
1963        }
1964    }
1965}
1966impl From<crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError> for Error {
1967    fn from(err: crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError) -> Self {
1968        match err {
1969            crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError::DirectConnectClientException(inner) => {
1970                Error::DirectConnectClientException(inner)
1971            }
1972            crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError::DirectConnectServerException(inner) => {
1973                Error::DirectConnectServerException(inner)
1974            }
1975            crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1976        }
1977    }
1978}
1979impl<R>
1980    From<
1981        ::aws_smithy_runtime_api::client::result::SdkError<
1982            crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError,
1983            R,
1984        >,
1985    > for Error
1986where
1987    R: Send + Sync + std::fmt::Debug + 'static,
1988{
1989    fn from(
1990        err: ::aws_smithy_runtime_api::client::result::SdkError<
1991            crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError,
1992            R,
1993        >,
1994    ) -> Self {
1995        match err {
1996            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999                source: err.into(),
2000            }),
2001        }
2002    }
2003}
2004impl From<crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError> for Error {
2005    fn from(err: crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError) -> Self {
2006        match err {
2007            crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError::DirectConnectClientException(
2008                inner,
2009            ) => Error::DirectConnectClientException(inner),
2010            crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError::DirectConnectServerException(
2011                inner,
2012            ) => Error::DirectConnectServerException(inner),
2013            crate::operation::update_direct_connect_gateway_association::UpdateDirectConnectGatewayAssociationError::Unhandled(inner) => {
2014                Error::Unhandled(inner)
2015            }
2016        }
2017    }
2018}
2019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lag::UpdateLagError, R>> for Error
2020where
2021    R: Send + Sync + std::fmt::Debug + 'static,
2022{
2023    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lag::UpdateLagError, R>) -> Self {
2024        match err {
2025            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2026            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2027                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2028                source: err.into(),
2029            }),
2030        }
2031    }
2032}
2033impl From<crate::operation::update_lag::UpdateLagError> for Error {
2034    fn from(err: crate::operation::update_lag::UpdateLagError) -> Self {
2035        match err {
2036            crate::operation::update_lag::UpdateLagError::DirectConnectClientException(inner) => Error::DirectConnectClientException(inner),
2037            crate::operation::update_lag::UpdateLagError::DirectConnectServerException(inner) => Error::DirectConnectServerException(inner),
2038            crate::operation::update_lag::UpdateLagError::Unhandled(inner) => Error::Unhandled(inner),
2039        }
2040    }
2041}
2042impl<R>
2043    From<
2044        ::aws_smithy_runtime_api::client::result::SdkError<
2045            crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError,
2046            R,
2047        >,
2048    > for Error
2049where
2050    R: Send + Sync + std::fmt::Debug + 'static,
2051{
2052    fn from(
2053        err: ::aws_smithy_runtime_api::client::result::SdkError<
2054            crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError,
2055            R,
2056        >,
2057    ) -> Self {
2058        match err {
2059            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2060            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2061                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2062                source: err.into(),
2063            }),
2064        }
2065    }
2066}
2067impl From<crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError> for Error {
2068    fn from(err: crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError) -> Self {
2069        match err {
2070            crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError::DirectConnectClientException(inner) => {
2071                Error::DirectConnectClientException(inner)
2072            }
2073            crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError::DirectConnectServerException(inner) => {
2074                Error::DirectConnectServerException(inner)
2075            }
2076            crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2077        }
2078    }
2079}
2080impl ::std::error::Error for Error {
2081    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2082        match self {
2083            Error::DirectConnectClientException(inner) => inner.source(),
2084            Error::DirectConnectServerException(inner) => inner.source(),
2085            Error::DuplicateTagKeysException(inner) => inner.source(),
2086            Error::LimitExceededException(inner) => inner.source(),
2087            Error::TooManyTagsException(inner) => inner.source(),
2088            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2089        }
2090    }
2091}
2092impl ::aws_types::request_id::RequestId for Error {
2093    fn request_id(&self) -> Option<&str> {
2094        match self {
2095            Self::DirectConnectClientException(e) => e.request_id(),
2096            Self::DirectConnectServerException(e) => e.request_id(),
2097            Self::DuplicateTagKeysException(e) => e.request_id(),
2098            Self::LimitExceededException(e) => e.request_id(),
2099            Self::TooManyTagsException(e) => e.request_id(),
2100            Self::Unhandled(e) => e.meta.request_id(),
2101        }
2102    }
2103}