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