aws_sdk_networkmanager/
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>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Describes a core network policy exception.</p>
11    CoreNetworkPolicyException(crate::types::error::CoreNetworkPolicyException),
12    /// <p>The request has failed due to an internal error.</p>
13    InternalServerException(crate::types::error::InternalServerException),
14    /// <p>The specified resource could not be found.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <p>A service limit was exceeded.</p>
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// <p>The request was denied due to request throttling.</p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// <p>The input fails to satisfy the constraints.</p>
21    ValidationException(crate::types::error::ValidationException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::AccessDeniedException(inner) => inner.fmt(f),
35            Error::ConflictException(inner) => inner.fmt(f),
36            Error::CoreNetworkPolicyException(inner) => inner.fmt(f),
37            Error::InternalServerException(inner) => inner.fmt(f),
38            Error::ResourceNotFoundException(inner) => inner.fmt(f),
39            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
40            Error::ThrottlingException(inner) => inner.fmt(f),
41            Error::ValidationException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::AccessDeniedException(inner) => inner.meta(),
64            Self::ConflictException(inner) => inner.meta(),
65            Self::CoreNetworkPolicyException(inner) => inner.meta(),
66            Self::InternalServerException(inner) => inner.meta(),
67            Self::ResourceNotFoundException(inner) => inner.meta(),
68            Self::ServiceQuotaExceededException(inner) => inner.meta(),
69            Self::ThrottlingException(inner) => inner.meta(),
70            Self::ValidationException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_attachment::AcceptAttachmentError, R>> for Error
76where
77    R: Send + Sync + std::fmt::Debug + 'static,
78{
79    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_attachment::AcceptAttachmentError, R>) -> Self {
80        match err {
81            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84                source: err.into(),
85            }),
86        }
87    }
88}
89impl From<crate::operation::accept_attachment::AcceptAttachmentError> for Error {
90    fn from(err: crate::operation::accept_attachment::AcceptAttachmentError) -> Self {
91        match err {
92            crate::operation::accept_attachment::AcceptAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93            crate::operation::accept_attachment::AcceptAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
94            crate::operation::accept_attachment::AcceptAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
95            crate::operation::accept_attachment::AcceptAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
96            crate::operation::accept_attachment::AcceptAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
97            crate::operation::accept_attachment::AcceptAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
98            crate::operation::accept_attachment::AcceptAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
99        }
100    }
101}
102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connect_peer::AssociateConnectPeerError, R>> for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connect_peer::AssociateConnectPeerError, R>) -> Self {
107        match err {
108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111                source: err.into(),
112            }),
113        }
114    }
115}
116impl From<crate::operation::associate_connect_peer::AssociateConnectPeerError> for Error {
117    fn from(err: crate::operation::associate_connect_peer::AssociateConnectPeerError) -> Self {
118        match err {
119            crate::operation::associate_connect_peer::AssociateConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
120            crate::operation::associate_connect_peer::AssociateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
121            crate::operation::associate_connect_peer::AssociateConnectPeerError::InternalServerException(inner) => {
122                Error::InternalServerException(inner)
123            }
124            crate::operation::associate_connect_peer::AssociateConnectPeerError::ResourceNotFoundException(inner) => {
125                Error::ResourceNotFoundException(inner)
126            }
127            crate::operation::associate_connect_peer::AssociateConnectPeerError::ServiceQuotaExceededException(inner) => {
128                Error::ServiceQuotaExceededException(inner)
129            }
130            crate::operation::associate_connect_peer::AssociateConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131            crate::operation::associate_connect_peer::AssociateConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
132            crate::operation::associate_connect_peer::AssociateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
133        }
134    }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError, R>>
137    for Error
138where
139    R: Send + Sync + std::fmt::Debug + 'static,
140{
141    fn from(
142        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError, R>,
143    ) -> Self {
144        match err {
145            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
146            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
147                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
148                source: err.into(),
149            }),
150        }
151    }
152}
153impl From<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError> for Error {
154    fn from(err: crate::operation::associate_customer_gateway::AssociateCustomerGatewayError) -> Self {
155        match err {
156            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::AccessDeniedException(inner) => {
157                Error::AccessDeniedException(inner)
158            }
159            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ConflictException(inner) => Error::ConflictException(inner),
160            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::InternalServerException(inner) => {
161                Error::InternalServerException(inner)
162            }
163            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ResourceNotFoundException(inner) => {
164                Error::ResourceNotFoundException(inner)
165            }
166            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ServiceQuotaExceededException(inner) => {
167                Error::ServiceQuotaExceededException(inner)
168            }
169            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ThrottlingException(inner) => {
170                Error::ThrottlingException(inner)
171            }
172            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ValidationException(inner) => {
173                Error::ValidationException(inner)
174            }
175            crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_link::AssociateLinkError, R>> for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_link::AssociateLinkError, R>) -> Self {
184        match err {
185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188                source: err.into(),
189            }),
190        }
191    }
192}
193impl From<crate::operation::associate_link::AssociateLinkError> for Error {
194    fn from(err: crate::operation::associate_link::AssociateLinkError) -> Self {
195        match err {
196            crate::operation::associate_link::AssociateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197            crate::operation::associate_link::AssociateLinkError::ConflictException(inner) => Error::ConflictException(inner),
198            crate::operation::associate_link::AssociateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
199            crate::operation::associate_link::AssociateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
200            crate::operation::associate_link::AssociateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
201            crate::operation::associate_link::AssociateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
202            crate::operation::associate_link::AssociateLinkError::ValidationException(inner) => Error::ValidationException(inner),
203            crate::operation::associate_link::AssociateLinkError::Unhandled(inner) => Error::Unhandled(inner),
204        }
205    }
206}
207impl<R>
208    From<
209        ::aws_smithy_runtime_api::client::result::SdkError<
210            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError,
211            R,
212        >,
213    > for Error
214where
215    R: Send + Sync + std::fmt::Debug + 'static,
216{
217    fn from(
218        err: ::aws_smithy_runtime_api::client::result::SdkError<
219            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError,
220            R,
221        >,
222    ) -> Self {
223        match err {
224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
227                source: err.into(),
228            }),
229        }
230    }
231}
232impl From<crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError> for Error {
233    fn from(err: crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError) -> Self {
234        match err {
235            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::AccessDeniedException(inner) => {
236                Error::AccessDeniedException(inner)
237            }
238            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ConflictException(inner) => {
239                Error::ConflictException(inner)
240            }
241            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::InternalServerException(inner) => {
242                Error::InternalServerException(inner)
243            }
244            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ResourceNotFoundException(inner) => {
245                Error::ResourceNotFoundException(inner)
246            }
247            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ServiceQuotaExceededException(
248                inner,
249            ) => Error::ServiceQuotaExceededException(inner),
250            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ThrottlingException(inner) => {
251                Error::ThrottlingException(inner)
252            }
253            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ValidationException(inner) => {
254                Error::ValidationException(inner)
255            }
256            crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::Unhandled(inner) => {
257                Error::Unhandled(inner)
258            }
259        }
260    }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_attachment::CreateConnectAttachmentError, R>>
263    for Error
264where
265    R: Send + Sync + std::fmt::Debug + 'static,
266{
267    fn from(
268        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_attachment::CreateConnectAttachmentError, R>,
269    ) -> Self {
270        match err {
271            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274                source: err.into(),
275            }),
276        }
277    }
278}
279impl From<crate::operation::create_connect_attachment::CreateConnectAttachmentError> for Error {
280    fn from(err: crate::operation::create_connect_attachment::CreateConnectAttachmentError) -> Self {
281        match err {
282            crate::operation::create_connect_attachment::CreateConnectAttachmentError::AccessDeniedException(inner) => {
283                Error::AccessDeniedException(inner)
284            }
285            crate::operation::create_connect_attachment::CreateConnectAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
286            crate::operation::create_connect_attachment::CreateConnectAttachmentError::InternalServerException(inner) => {
287                Error::InternalServerException(inner)
288            }
289            crate::operation::create_connect_attachment::CreateConnectAttachmentError::ResourceNotFoundException(inner) => {
290                Error::ResourceNotFoundException(inner)
291            }
292            crate::operation::create_connect_attachment::CreateConnectAttachmentError::ThrottlingException(inner) => {
293                Error::ThrottlingException(inner)
294            }
295            crate::operation::create_connect_attachment::CreateConnectAttachmentError::ValidationException(inner) => {
296                Error::ValidationException(inner)
297            }
298            crate::operation::create_connect_attachment::CreateConnectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
299        }
300    }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
303where
304    R: Send + Sync + std::fmt::Debug + 'static,
305{
306    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> 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::create_connection::CreateConnectionError> for Error {
317    fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
318        match err {
319            crate::operation::create_connection::CreateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
320            crate::operation::create_connection::CreateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
321            crate::operation::create_connection::CreateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
322            crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
323                Error::ServiceQuotaExceededException(inner)
324            }
325            crate::operation::create_connection::CreateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
326            crate::operation::create_connection::CreateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
327            crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
328        }
329    }
330}
331impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_peer::CreateConnectPeerError, R>> for Error
332where
333    R: Send + Sync + std::fmt::Debug + 'static,
334{
335    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_peer::CreateConnectPeerError, R>) -> Self {
336        match err {
337            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
338            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
339                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
340                source: err.into(),
341            }),
342        }
343    }
344}
345impl From<crate::operation::create_connect_peer::CreateConnectPeerError> for Error {
346    fn from(err: crate::operation::create_connect_peer::CreateConnectPeerError) -> Self {
347        match err {
348            crate::operation::create_connect_peer::CreateConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
349            crate::operation::create_connect_peer::CreateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
350            crate::operation::create_connect_peer::CreateConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
351            crate::operation::create_connect_peer::CreateConnectPeerError::ResourceNotFoundException(inner) => {
352                Error::ResourceNotFoundException(inner)
353            }
354            crate::operation::create_connect_peer::CreateConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
355            crate::operation::create_connect_peer::CreateConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
356            crate::operation::create_connect_peer::CreateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
357        }
358    }
359}
360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_core_network::CreateCoreNetworkError, R>> for Error
361where
362    R: Send + Sync + std::fmt::Debug + 'static,
363{
364    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_core_network::CreateCoreNetworkError, R>) -> Self {
365        match err {
366            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369                source: err.into(),
370            }),
371        }
372    }
373}
374impl From<crate::operation::create_core_network::CreateCoreNetworkError> for Error {
375    fn from(err: crate::operation::create_core_network::CreateCoreNetworkError) -> Self {
376        match err {
377            crate::operation::create_core_network::CreateCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
378            crate::operation::create_core_network::CreateCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
379            crate::operation::create_core_network::CreateCoreNetworkError::CoreNetworkPolicyException(inner) => {
380                Error::CoreNetworkPolicyException(inner)
381            }
382            crate::operation::create_core_network::CreateCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
383            crate::operation::create_core_network::CreateCoreNetworkError::ServiceQuotaExceededException(inner) => {
384                Error::ServiceQuotaExceededException(inner)
385            }
386            crate::operation::create_core_network::CreateCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
387            crate::operation::create_core_network::CreateCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
388            crate::operation::create_core_network::CreateCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
389        }
390    }
391}
392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device::CreateDeviceError, R>> for Error
393where
394    R: Send + Sync + std::fmt::Debug + 'static,
395{
396    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device::CreateDeviceError, R>) -> Self {
397        match err {
398            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
399            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
400                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
401                source: err.into(),
402            }),
403        }
404    }
405}
406impl From<crate::operation::create_device::CreateDeviceError> for Error {
407    fn from(err: crate::operation::create_device::CreateDeviceError) -> Self {
408        match err {
409            crate::operation::create_device::CreateDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
410            crate::operation::create_device::CreateDeviceError::ConflictException(inner) => Error::ConflictException(inner),
411            crate::operation::create_device::CreateDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
412            crate::operation::create_device::CreateDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
413            crate::operation::create_device::CreateDeviceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
414            crate::operation::create_device::CreateDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
415            crate::operation::create_device::CreateDeviceError::ValidationException(inner) => Error::ValidationException(inner),
416            crate::operation::create_device::CreateDeviceError::Unhandled(inner) => Error::Unhandled(inner),
417        }
418    }
419}
420impl<R>
421    From<
422        ::aws_smithy_runtime_api::client::result::SdkError<
423            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError,
424            R,
425        >,
426    > for Error
427where
428    R: Send + Sync + std::fmt::Debug + 'static,
429{
430    fn from(
431        err: ::aws_smithy_runtime_api::client::result::SdkError<
432            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError,
433            R,
434        >,
435    ) -> Self {
436        match err {
437            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440                source: err.into(),
441            }),
442        }
443    }
444}
445impl From<crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError> for Error {
446    fn from(err: crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError) -> Self {
447        match err {
448            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
449                Error::AccessDeniedException(inner)
450            }
451            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ConflictException(inner) => {
452                Error::ConflictException(inner)
453            }
454            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
455                Error::InternalServerException(inner)
456            }
457            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ResourceNotFoundException(
458                inner,
459            ) => Error::ResourceNotFoundException(inner),
460            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
461                Error::ThrottlingException(inner)
462            }
463            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ValidationException(inner) => {
464                Error::ValidationException(inner)
465            }
466            crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::Unhandled(inner) => {
467                Error::Unhandled(inner)
468            }
469        }
470    }
471}
472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_network::CreateGlobalNetworkError, R>> for Error
473where
474    R: Send + Sync + std::fmt::Debug + 'static,
475{
476    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_network::CreateGlobalNetworkError, R>) -> Self {
477        match err {
478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
481                source: err.into(),
482            }),
483        }
484    }
485}
486impl From<crate::operation::create_global_network::CreateGlobalNetworkError> for Error {
487    fn from(err: crate::operation::create_global_network::CreateGlobalNetworkError) -> Self {
488        match err {
489            crate::operation::create_global_network::CreateGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
490            crate::operation::create_global_network::CreateGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
491            crate::operation::create_global_network::CreateGlobalNetworkError::InternalServerException(inner) => {
492                Error::InternalServerException(inner)
493            }
494            crate::operation::create_global_network::CreateGlobalNetworkError::ServiceQuotaExceededException(inner) => {
495                Error::ServiceQuotaExceededException(inner)
496            }
497            crate::operation::create_global_network::CreateGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
498            crate::operation::create_global_network::CreateGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
499            crate::operation::create_global_network::CreateGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
500        }
501    }
502}
503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>> for Error
504where
505    R: Send + Sync + std::fmt::Debug + 'static,
506{
507    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>) -> Self {
508        match err {
509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512                source: err.into(),
513            }),
514        }
515    }
516}
517impl From<crate::operation::create_link::CreateLinkError> for Error {
518    fn from(err: crate::operation::create_link::CreateLinkError) -> Self {
519        match err {
520            crate::operation::create_link::CreateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
521            crate::operation::create_link::CreateLinkError::ConflictException(inner) => Error::ConflictException(inner),
522            crate::operation::create_link::CreateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
523            crate::operation::create_link::CreateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
524            crate::operation::create_link::CreateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
525            crate::operation::create_link::CreateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
526            crate::operation::create_link::CreateLinkError::ValidationException(inner) => Error::ValidationException(inner),
527            crate::operation::create_link::CreateLinkError::Unhandled(inner) => Error::Unhandled(inner),
528        }
529    }
530}
531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_site::CreateSiteError, R>> for Error
532where
533    R: Send + Sync + std::fmt::Debug + 'static,
534{
535    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_site::CreateSiteError, R>) -> Self {
536        match err {
537            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
538            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
539                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
540                source: err.into(),
541            }),
542        }
543    }
544}
545impl From<crate::operation::create_site::CreateSiteError> for Error {
546    fn from(err: crate::operation::create_site::CreateSiteError) -> Self {
547        match err {
548            crate::operation::create_site::CreateSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
549            crate::operation::create_site::CreateSiteError::ConflictException(inner) => Error::ConflictException(inner),
550            crate::operation::create_site::CreateSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
551            crate::operation::create_site::CreateSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
552            crate::operation::create_site::CreateSiteError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
553            crate::operation::create_site::CreateSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
554            crate::operation::create_site::CreateSiteError::ValidationException(inner) => Error::ValidationException(inner),
555            crate::operation::create_site::CreateSiteError::Unhandled(inner) => Error::Unhandled(inner),
556        }
557    }
558}
559impl<R>
560    From<
561        ::aws_smithy_runtime_api::client::result::SdkError<
562            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError,
563            R,
564        >,
565    > for Error
566where
567    R: Send + Sync + std::fmt::Debug + 'static,
568{
569    fn from(
570        err: ::aws_smithy_runtime_api::client::result::SdkError<
571            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError,
572            R,
573        >,
574    ) -> Self {
575        match err {
576            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579                source: err.into(),
580            }),
581        }
582    }
583}
584impl From<crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError> for Error {
585    fn from(err: crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError) -> Self {
586        match err {
587            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::AccessDeniedException(inner) => {
588                Error::AccessDeniedException(inner)
589            }
590            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ConflictException(inner) => {
591                Error::ConflictException(inner)
592            }
593            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::InternalServerException(inner) => {
594                Error::InternalServerException(inner)
595            }
596            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ResourceNotFoundException(inner) => {
597                Error::ResourceNotFoundException(inner)
598            }
599            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ThrottlingException(inner) => {
600                Error::ThrottlingException(inner)
601            }
602            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ValidationException(inner) => {
603                Error::ValidationException(inner)
604            }
605            crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
606        }
607    }
608}
609impl<R>
610    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError, R>>
611    for Error
612where
613    R: Send + Sync + std::fmt::Debug + 'static,
614{
615    fn from(
616        err: ::aws_smithy_runtime_api::client::result::SdkError<
617            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError,
618            R,
619        >,
620    ) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError> for Error {
631    fn from(err: crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError) -> Self {
632        match err {
633            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::AccessDeniedException(inner) => {
634                Error::AccessDeniedException(inner)
635            }
636            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ConflictException(inner) => {
637                Error::ConflictException(inner)
638            }
639            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::InternalServerException(inner) => {
640                Error::InternalServerException(inner)
641            }
642            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ResourceNotFoundException(inner) => {
643                Error::ResourceNotFoundException(inner)
644            }
645            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ThrottlingException(inner) => {
646                Error::ThrottlingException(inner)
647            }
648            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ValidationException(inner) => {
649                Error::ValidationException(inner)
650            }
651            crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::Unhandled(inner) => Error::Unhandled(inner),
652        }
653    }
654}
655impl<R>
656    From<
657        ::aws_smithy_runtime_api::client::result::SdkError<
658            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError,
659            R,
660        >,
661    > for Error
662where
663    R: Send + Sync + std::fmt::Debug + 'static,
664{
665    fn from(
666        err: ::aws_smithy_runtime_api::client::result::SdkError<
667            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError,
668            R,
669        >,
670    ) -> Self {
671        match err {
672            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
673            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
674                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
675                source: err.into(),
676            }),
677        }
678    }
679}
680impl From<crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError> for Error {
681    fn from(err: crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError) -> Self {
682        match err {
683            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
684            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
685            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
686            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
687            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
688            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
689            crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
690        }
691    }
692}
693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_attachment::CreateVpcAttachmentError, R>> for Error
694where
695    R: Send + Sync + std::fmt::Debug + 'static,
696{
697    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_attachment::CreateVpcAttachmentError, R>) -> Self {
698        match err {
699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702                source: err.into(),
703            }),
704        }
705    }
706}
707impl From<crate::operation::create_vpc_attachment::CreateVpcAttachmentError> for Error {
708    fn from(err: crate::operation::create_vpc_attachment::CreateVpcAttachmentError) -> Self {
709        match err {
710            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
711            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
712            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::InternalServerException(inner) => {
713                Error::InternalServerException(inner)
714            }
715            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ResourceNotFoundException(inner) => {
716                Error::ResourceNotFoundException(inner)
717            }
718            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
719            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
720            crate::operation::create_vpc_attachment::CreateVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
721        }
722    }
723}
724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attachment::DeleteAttachmentError, R>> for Error
725where
726    R: Send + Sync + std::fmt::Debug + 'static,
727{
728    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attachment::DeleteAttachmentError, R>) -> Self {
729        match err {
730            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
731            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
732                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
733                source: err.into(),
734            }),
735        }
736    }
737}
738impl From<crate::operation::delete_attachment::DeleteAttachmentError> for Error {
739    fn from(err: crate::operation::delete_attachment::DeleteAttachmentError) -> Self {
740        match err {
741            crate::operation::delete_attachment::DeleteAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
742            crate::operation::delete_attachment::DeleteAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
743            crate::operation::delete_attachment::DeleteAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
744            crate::operation::delete_attachment::DeleteAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
745            crate::operation::delete_attachment::DeleteAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
746            crate::operation::delete_attachment::DeleteAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
747            crate::operation::delete_attachment::DeleteAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
748        }
749    }
750}
751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
752where
753    R: Send + Sync + std::fmt::Debug + 'static,
754{
755    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
756        match err {
757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760                source: err.into(),
761            }),
762        }
763    }
764}
765impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
766    fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
767        match err {
768            crate::operation::delete_connection::DeleteConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
769            crate::operation::delete_connection::DeleteConnectionError::ConflictException(inner) => Error::ConflictException(inner),
770            crate::operation::delete_connection::DeleteConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
771            crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
772            crate::operation::delete_connection::DeleteConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
773            crate::operation::delete_connection::DeleteConnectionError::ValidationException(inner) => Error::ValidationException(inner),
774            crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
775        }
776    }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connect_peer::DeleteConnectPeerError, R>> for Error
779where
780    R: Send + Sync + std::fmt::Debug + 'static,
781{
782    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connect_peer::DeleteConnectPeerError, R>) -> Self {
783        match err {
784            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
785            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
786                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
787                source: err.into(),
788            }),
789        }
790    }
791}
792impl From<crate::operation::delete_connect_peer::DeleteConnectPeerError> for Error {
793    fn from(err: crate::operation::delete_connect_peer::DeleteConnectPeerError) -> Self {
794        match err {
795            crate::operation::delete_connect_peer::DeleteConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
796            crate::operation::delete_connect_peer::DeleteConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
797            crate::operation::delete_connect_peer::DeleteConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
798            crate::operation::delete_connect_peer::DeleteConnectPeerError::ResourceNotFoundException(inner) => {
799                Error::ResourceNotFoundException(inner)
800            }
801            crate::operation::delete_connect_peer::DeleteConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
802            crate::operation::delete_connect_peer::DeleteConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
803            crate::operation::delete_connect_peer::DeleteConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
804        }
805    }
806}
807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_core_network::DeleteCoreNetworkError, R>> for Error
808where
809    R: Send + Sync + std::fmt::Debug + 'static,
810{
811    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_core_network::DeleteCoreNetworkError, R>) -> Self {
812        match err {
813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816                source: err.into(),
817            }),
818        }
819    }
820}
821impl From<crate::operation::delete_core_network::DeleteCoreNetworkError> for Error {
822    fn from(err: crate::operation::delete_core_network::DeleteCoreNetworkError) -> Self {
823        match err {
824            crate::operation::delete_core_network::DeleteCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
825            crate::operation::delete_core_network::DeleteCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
826            crate::operation::delete_core_network::DeleteCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
827            crate::operation::delete_core_network::DeleteCoreNetworkError::ResourceNotFoundException(inner) => {
828                Error::ResourceNotFoundException(inner)
829            }
830            crate::operation::delete_core_network::DeleteCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
831            crate::operation::delete_core_network::DeleteCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
832            crate::operation::delete_core_network::DeleteCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
833        }
834    }
835}
836impl<R>
837    From<
838        ::aws_smithy_runtime_api::client::result::SdkError<
839            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError,
840            R,
841        >,
842    > for Error
843where
844    R: Send + Sync + std::fmt::Debug + 'static,
845{
846    fn from(
847        err: ::aws_smithy_runtime_api::client::result::SdkError<
848            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError,
849            R,
850        >,
851    ) -> Self {
852        match err {
853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
856                source: err.into(),
857            }),
858        }
859    }
860}
861impl From<crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError> for Error {
862    fn from(err: crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError) -> Self {
863        match err {
864            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::AccessDeniedException(inner) => {
865                Error::AccessDeniedException(inner)
866            }
867            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ConflictException(inner) => {
868                Error::ConflictException(inner)
869            }
870            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::InternalServerException(inner) => {
871                Error::InternalServerException(inner)
872            }
873            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ResourceNotFoundException(inner) => {
874                Error::ResourceNotFoundException(inner)
875            }
876            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ThrottlingException(inner) => {
877                Error::ThrottlingException(inner)
878            }
879            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ValidationException(inner) => {
880                Error::ValidationException(inner)
881            }
882            crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
883        }
884    }
885}
886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device::DeleteDeviceError, R>> for Error
887where
888    R: Send + Sync + std::fmt::Debug + 'static,
889{
890    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device::DeleteDeviceError, R>) -> Self {
891        match err {
892            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
893            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
894                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
895                source: err.into(),
896            }),
897        }
898    }
899}
900impl From<crate::operation::delete_device::DeleteDeviceError> for Error {
901    fn from(err: crate::operation::delete_device::DeleteDeviceError) -> Self {
902        match err {
903            crate::operation::delete_device::DeleteDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
904            crate::operation::delete_device::DeleteDeviceError::ConflictException(inner) => Error::ConflictException(inner),
905            crate::operation::delete_device::DeleteDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
906            crate::operation::delete_device::DeleteDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
907            crate::operation::delete_device::DeleteDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
908            crate::operation::delete_device::DeleteDeviceError::ValidationException(inner) => Error::ValidationException(inner),
909            crate::operation::delete_device::DeleteDeviceError::Unhandled(inner) => Error::Unhandled(inner),
910        }
911    }
912}
913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_network::DeleteGlobalNetworkError, R>> for Error
914where
915    R: Send + Sync + std::fmt::Debug + 'static,
916{
917    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_network::DeleteGlobalNetworkError, R>) -> Self {
918        match err {
919            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
920            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
921                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
922                source: err.into(),
923            }),
924        }
925    }
926}
927impl From<crate::operation::delete_global_network::DeleteGlobalNetworkError> for Error {
928    fn from(err: crate::operation::delete_global_network::DeleteGlobalNetworkError) -> Self {
929        match err {
930            crate::operation::delete_global_network::DeleteGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
931            crate::operation::delete_global_network::DeleteGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
932            crate::operation::delete_global_network::DeleteGlobalNetworkError::InternalServerException(inner) => {
933                Error::InternalServerException(inner)
934            }
935            crate::operation::delete_global_network::DeleteGlobalNetworkError::ResourceNotFoundException(inner) => {
936                Error::ResourceNotFoundException(inner)
937            }
938            crate::operation::delete_global_network::DeleteGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
939            crate::operation::delete_global_network::DeleteGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
940            crate::operation::delete_global_network::DeleteGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
941        }
942    }
943}
944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>> for Error
945where
946    R: Send + Sync + std::fmt::Debug + 'static,
947{
948    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>) -> Self {
949        match err {
950            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
951            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
952                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
953                source: err.into(),
954            }),
955        }
956    }
957}
958impl From<crate::operation::delete_link::DeleteLinkError> for Error {
959    fn from(err: crate::operation::delete_link::DeleteLinkError) -> Self {
960        match err {
961            crate::operation::delete_link::DeleteLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
962            crate::operation::delete_link::DeleteLinkError::ConflictException(inner) => Error::ConflictException(inner),
963            crate::operation::delete_link::DeleteLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
964            crate::operation::delete_link::DeleteLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
965            crate::operation::delete_link::DeleteLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
966            crate::operation::delete_link::DeleteLinkError::ValidationException(inner) => Error::ValidationException(inner),
967            crate::operation::delete_link::DeleteLinkError::Unhandled(inner) => Error::Unhandled(inner),
968        }
969    }
970}
971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_peering::DeletePeeringError, R>> for Error
972where
973    R: Send + Sync + std::fmt::Debug + 'static,
974{
975    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_peering::DeletePeeringError, R>) -> 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_peering::DeletePeeringError> for Error {
986    fn from(err: crate::operation::delete_peering::DeletePeeringError) -> Self {
987        match err {
988            crate::operation::delete_peering::DeletePeeringError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
989            crate::operation::delete_peering::DeletePeeringError::ConflictException(inner) => Error::ConflictException(inner),
990            crate::operation::delete_peering::DeletePeeringError::InternalServerException(inner) => Error::InternalServerException(inner),
991            crate::operation::delete_peering::DeletePeeringError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
992            crate::operation::delete_peering::DeletePeeringError::ThrottlingException(inner) => Error::ThrottlingException(inner),
993            crate::operation::delete_peering::DeletePeeringError::ValidationException(inner) => Error::ValidationException(inner),
994            crate::operation::delete_peering::DeletePeeringError::Unhandled(inner) => Error::Unhandled(inner),
995        }
996    }
997}
998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
999where
1000    R: Send + Sync + std::fmt::Debug + 'static,
1001{
1002    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1003        match err {
1004            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1005            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1006                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1007                source: err.into(),
1008            }),
1009        }
1010    }
1011}
1012impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1013    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1014        match err {
1015            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1016            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1017            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
1018                Error::InternalServerException(inner)
1019            }
1020            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1021            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1022            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1023        }
1024    }
1025}
1026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_site::DeleteSiteError, R>> for Error
1027where
1028    R: Send + Sync + std::fmt::Debug + 'static,
1029{
1030    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_site::DeleteSiteError, R>) -> Self {
1031        match err {
1032            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1033            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1034                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1035                source: err.into(),
1036            }),
1037        }
1038    }
1039}
1040impl From<crate::operation::delete_site::DeleteSiteError> for Error {
1041    fn from(err: crate::operation::delete_site::DeleteSiteError) -> Self {
1042        match err {
1043            crate::operation::delete_site::DeleteSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1044            crate::operation::delete_site::DeleteSiteError::ConflictException(inner) => Error::ConflictException(inner),
1045            crate::operation::delete_site::DeleteSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
1046            crate::operation::delete_site::DeleteSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1047            crate::operation::delete_site::DeleteSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1048            crate::operation::delete_site::DeleteSiteError::ValidationException(inner) => Error::ValidationException(inner),
1049            crate::operation::delete_site::DeleteSiteError::Unhandled(inner) => Error::Unhandled(inner),
1050        }
1051    }
1052}
1053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError, R>>
1054    for Error
1055where
1056    R: Send + Sync + std::fmt::Debug + 'static,
1057{
1058    fn from(
1059        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError, R>,
1060    ) -> Self {
1061        match err {
1062            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1063            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1064                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1065                source: err.into(),
1066            }),
1067        }
1068    }
1069}
1070impl From<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError> for Error {
1071    fn from(err: crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError) -> Self {
1072        match err {
1073            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::AccessDeniedException(inner) => {
1074                Error::AccessDeniedException(inner)
1075            }
1076            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ConflictException(inner) => Error::ConflictException(inner),
1077            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::InternalServerException(inner) => {
1078                Error::InternalServerException(inner)
1079            }
1080            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ResourceNotFoundException(inner) => {
1081                Error::ResourceNotFoundException(inner)
1082            }
1083            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ThrottlingException(inner) => {
1084                Error::ThrottlingException(inner)
1085            }
1086            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ValidationException(inner) => {
1087                Error::ValidationException(inner)
1088            }
1089            crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1090        }
1091    }
1092}
1093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_networks::DescribeGlobalNetworksError, R>> for Error
1094where
1095    R: Send + Sync + std::fmt::Debug + 'static,
1096{
1097    fn from(
1098        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_networks::DescribeGlobalNetworksError, R>,
1099    ) -> Self {
1100        match err {
1101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104                source: err.into(),
1105            }),
1106        }
1107    }
1108}
1109impl From<crate::operation::describe_global_networks::DescribeGlobalNetworksError> for Error {
1110    fn from(err: crate::operation::describe_global_networks::DescribeGlobalNetworksError) -> Self {
1111        match err {
1112            crate::operation::describe_global_networks::DescribeGlobalNetworksError::AccessDeniedException(inner) => {
1113                Error::AccessDeniedException(inner)
1114            }
1115            crate::operation::describe_global_networks::DescribeGlobalNetworksError::InternalServerException(inner) => {
1116                Error::InternalServerException(inner)
1117            }
1118            crate::operation::describe_global_networks::DescribeGlobalNetworksError::ResourceNotFoundException(inner) => {
1119                Error::ResourceNotFoundException(inner)
1120            }
1121            crate::operation::describe_global_networks::DescribeGlobalNetworksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1122            crate::operation::describe_global_networks::DescribeGlobalNetworksError::ValidationException(inner) => Error::ValidationException(inner),
1123            crate::operation::describe_global_networks::DescribeGlobalNetworksError::Unhandled(inner) => Error::Unhandled(inner),
1124        }
1125    }
1126}
1127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError, R>>
1128    for Error
1129where
1130    R: Send + Sync + std::fmt::Debug + 'static,
1131{
1132    fn from(
1133        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError, R>,
1134    ) -> Self {
1135        match err {
1136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1139                source: err.into(),
1140            }),
1141        }
1142    }
1143}
1144impl From<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError> for Error {
1145    fn from(err: crate::operation::disassociate_connect_peer::DisassociateConnectPeerError) -> Self {
1146        match err {
1147            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::AccessDeniedException(inner) => {
1148                Error::AccessDeniedException(inner)
1149            }
1150            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
1151            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::InternalServerException(inner) => {
1152                Error::InternalServerException(inner)
1153            }
1154            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ResourceNotFoundException(inner) => {
1155                Error::ResourceNotFoundException(inner)
1156            }
1157            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ThrottlingException(inner) => {
1158                Error::ThrottlingException(inner)
1159            }
1160            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ValidationException(inner) => {
1161                Error::ValidationException(inner)
1162            }
1163            crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
1164        }
1165    }
1166}
1167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError, R>>
1168    for Error
1169where
1170    R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172    fn from(
1173        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError, R>,
1174    ) -> Self {
1175        match err {
1176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1179                source: err.into(),
1180            }),
1181        }
1182    }
1183}
1184impl From<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError> for Error {
1185    fn from(err: crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError) -> Self {
1186        match err {
1187            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::AccessDeniedException(inner) => {
1188                Error::AccessDeniedException(inner)
1189            }
1190            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ConflictException(inner) => {
1191                Error::ConflictException(inner)
1192            }
1193            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::InternalServerException(inner) => {
1194                Error::InternalServerException(inner)
1195            }
1196            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ResourceNotFoundException(inner) => {
1197                Error::ResourceNotFoundException(inner)
1198            }
1199            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ThrottlingException(inner) => {
1200                Error::ThrottlingException(inner)
1201            }
1202            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ValidationException(inner) => {
1203                Error::ValidationException(inner)
1204            }
1205            crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1206        }
1207    }
1208}
1209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_link::DisassociateLinkError, R>> for Error
1210where
1211    R: Send + Sync + std::fmt::Debug + 'static,
1212{
1213    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_link::DisassociateLinkError, R>) -> Self {
1214        match err {
1215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1218                source: err.into(),
1219            }),
1220        }
1221    }
1222}
1223impl From<crate::operation::disassociate_link::DisassociateLinkError> for Error {
1224    fn from(err: crate::operation::disassociate_link::DisassociateLinkError) -> Self {
1225        match err {
1226            crate::operation::disassociate_link::DisassociateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1227            crate::operation::disassociate_link::DisassociateLinkError::ConflictException(inner) => Error::ConflictException(inner),
1228            crate::operation::disassociate_link::DisassociateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
1229            crate::operation::disassociate_link::DisassociateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1230            crate::operation::disassociate_link::DisassociateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1231            crate::operation::disassociate_link::DisassociateLinkError::ValidationException(inner) => Error::ValidationException(inner),
1232            crate::operation::disassociate_link::DisassociateLinkError::Unhandled(inner) => Error::Unhandled(inner),
1233        }
1234    }
1235}
1236impl<R>
1237    From<
1238        ::aws_smithy_runtime_api::client::result::SdkError<
1239            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError,
1240            R,
1241        >,
1242    > for Error
1243where
1244    R: Send + Sync + std::fmt::Debug + 'static,
1245{
1246    fn from(
1247        err: ::aws_smithy_runtime_api::client::result::SdkError<
1248            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError,
1249            R,
1250        >,
1251    ) -> Self {
1252        match err {
1253            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1254            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1255                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1256                source: err.into(),
1257            }),
1258        }
1259    }
1260}
1261impl From<crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError> for Error {
1262    fn from(err: crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError) -> Self {
1263        match err {
1264            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::AccessDeniedException(inner) => {
1265                Error::AccessDeniedException(inner)
1266            }
1267            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ConflictException(inner) => {
1268                Error::ConflictException(inner)
1269            }
1270            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::InternalServerException(
1271                inner,
1272            ) => Error::InternalServerException(inner),
1273            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ResourceNotFoundException(
1274                inner,
1275            ) => Error::ResourceNotFoundException(inner),
1276            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ThrottlingException(inner) => {
1277                Error::ThrottlingException(inner)
1278            }
1279            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ValidationException(inner) => {
1280                Error::ValidationException(inner)
1281            }
1282            crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::Unhandled(inner) => {
1283                Error::Unhandled(inner)
1284            }
1285        }
1286    }
1287}
1288impl<R>
1289    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError, R>>
1290    for Error
1291where
1292    R: Send + Sync + std::fmt::Debug + 'static,
1293{
1294    fn from(
1295        err: ::aws_smithy_runtime_api::client::result::SdkError<
1296            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError,
1297            R,
1298        >,
1299    ) -> Self {
1300        match err {
1301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1304                source: err.into(),
1305            }),
1306        }
1307    }
1308}
1309impl From<crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError> for Error {
1310    fn from(err: crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError) -> Self {
1311        match err {
1312            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::AccessDeniedException(inner) => {
1313                Error::AccessDeniedException(inner)
1314            }
1315            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ConflictException(inner) => {
1316                Error::ConflictException(inner)
1317            }
1318            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::InternalServerException(inner) => {
1319                Error::InternalServerException(inner)
1320            }
1321            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ResourceNotFoundException(inner) => {
1322                Error::ResourceNotFoundException(inner)
1323            }
1324            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ThrottlingException(inner) => {
1325                Error::ThrottlingException(inner)
1326            }
1327            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ValidationException(inner) => {
1328                Error::ValidationException(inner)
1329            }
1330            crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1331        }
1332    }
1333}
1334impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_attachment::GetConnectAttachmentError, R>> for Error
1335where
1336    R: Send + Sync + std::fmt::Debug + 'static,
1337{
1338    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_attachment::GetConnectAttachmentError, R>) -> Self {
1339        match err {
1340            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1341            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1342                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1343                source: err.into(),
1344            }),
1345        }
1346    }
1347}
1348impl From<crate::operation::get_connect_attachment::GetConnectAttachmentError> for Error {
1349    fn from(err: crate::operation::get_connect_attachment::GetConnectAttachmentError) -> Self {
1350        match err {
1351            crate::operation::get_connect_attachment::GetConnectAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1352            crate::operation::get_connect_attachment::GetConnectAttachmentError::InternalServerException(inner) => {
1353                Error::InternalServerException(inner)
1354            }
1355            crate::operation::get_connect_attachment::GetConnectAttachmentError::ResourceNotFoundException(inner) => {
1356                Error::ResourceNotFoundException(inner)
1357            }
1358            crate::operation::get_connect_attachment::GetConnectAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1359            crate::operation::get_connect_attachment::GetConnectAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
1360            crate::operation::get_connect_attachment::GetConnectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1361        }
1362    }
1363}
1364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connections::GetConnectionsError, R>> for Error
1365where
1366    R: Send + Sync + std::fmt::Debug + 'static,
1367{
1368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connections::GetConnectionsError, R>) -> Self {
1369        match err {
1370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373                source: err.into(),
1374            }),
1375        }
1376    }
1377}
1378impl From<crate::operation::get_connections::GetConnectionsError> for Error {
1379    fn from(err: crate::operation::get_connections::GetConnectionsError) -> Self {
1380        match err {
1381            crate::operation::get_connections::GetConnectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1382            crate::operation::get_connections::GetConnectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
1383            crate::operation::get_connections::GetConnectionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1384            crate::operation::get_connections::GetConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1385            crate::operation::get_connections::GetConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
1386            crate::operation::get_connections::GetConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1387        }
1388    }
1389}
1390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer::GetConnectPeerError, R>> for Error
1391where
1392    R: Send + Sync + std::fmt::Debug + 'static,
1393{
1394    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer::GetConnectPeerError, R>) -> Self {
1395        match err {
1396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1399                source: err.into(),
1400            }),
1401        }
1402    }
1403}
1404impl From<crate::operation::get_connect_peer::GetConnectPeerError> for Error {
1405    fn from(err: crate::operation::get_connect_peer::GetConnectPeerError) -> Self {
1406        match err {
1407            crate::operation::get_connect_peer::GetConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1408            crate::operation::get_connect_peer::GetConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
1409            crate::operation::get_connect_peer::GetConnectPeerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1410            crate::operation::get_connect_peer::GetConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1411            crate::operation::get_connect_peer::GetConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
1412            crate::operation::get_connect_peer::GetConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
1413        }
1414    }
1415}
1416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError, 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::get_connect_peer_associations::GetConnectPeerAssociationsError, 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::get_connect_peer_associations::GetConnectPeerAssociationsError> for Error {
1434    fn from(err: crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError) -> Self {
1435        match err {
1436            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::AccessDeniedException(inner) => {
1437                Error::AccessDeniedException(inner)
1438            }
1439            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ConflictException(inner) => {
1440                Error::ConflictException(inner)
1441            }
1442            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::InternalServerException(inner) => {
1443                Error::InternalServerException(inner)
1444            }
1445            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ResourceNotFoundException(inner) => {
1446                Error::ResourceNotFoundException(inner)
1447            }
1448            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ThrottlingException(inner) => {
1449                Error::ThrottlingException(inner)
1450            }
1451            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ValidationException(inner) => {
1452                Error::ValidationException(inner)
1453            }
1454            crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1455        }
1456    }
1457}
1458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network::GetCoreNetworkError, R>> for Error
1459where
1460    R: Send + Sync + std::fmt::Debug + 'static,
1461{
1462    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network::GetCoreNetworkError, R>) -> Self {
1463        match err {
1464            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1465            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1466                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1467                source: err.into(),
1468            }),
1469        }
1470    }
1471}
1472impl From<crate::operation::get_core_network::GetCoreNetworkError> for Error {
1473    fn from(err: crate::operation::get_core_network::GetCoreNetworkError) -> Self {
1474        match err {
1475            crate::operation::get_core_network::GetCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1476            crate::operation::get_core_network::GetCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
1477            crate::operation::get_core_network::GetCoreNetworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1478            crate::operation::get_core_network::GetCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1479            crate::operation::get_core_network::GetCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
1480            crate::operation::get_core_network::GetCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1481        }
1482    }
1483}
1484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError, R>>
1485    for Error
1486where
1487    R: Send + Sync + std::fmt::Debug + 'static,
1488{
1489    fn from(
1490        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError, R>,
1491    ) -> Self {
1492        match err {
1493            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1494            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1495                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1496                source: err.into(),
1497            }),
1498        }
1499    }
1500}
1501impl From<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError> for Error {
1502    fn from(err: crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError) -> Self {
1503        match err {
1504            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::AccessDeniedException(inner) => {
1505                Error::AccessDeniedException(inner)
1506            }
1507            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::InternalServerException(inner) => {
1508                Error::InternalServerException(inner)
1509            }
1510            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ResourceNotFoundException(inner) => {
1511                Error::ResourceNotFoundException(inner)
1512            }
1513            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ThrottlingException(inner) => {
1514                Error::ThrottlingException(inner)
1515            }
1516            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ValidationException(inner) => {
1517                Error::ValidationException(inner)
1518            }
1519            crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::Unhandled(inner) => Error::Unhandled(inner),
1520        }
1521    }
1522}
1523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError, R>>
1524    for Error
1525where
1526    R: Send + Sync + std::fmt::Debug + 'static,
1527{
1528    fn from(
1529        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError, R>,
1530    ) -> Self {
1531        match err {
1532            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1533            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1534                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1535                source: err.into(),
1536            }),
1537        }
1538    }
1539}
1540impl From<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError> for Error {
1541    fn from(err: crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError) -> Self {
1542        match err {
1543            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::AccessDeniedException(inner) => {
1544                Error::AccessDeniedException(inner)
1545            }
1546            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::InternalServerException(inner) => {
1547                Error::InternalServerException(inner)
1548            }
1549            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ResourceNotFoundException(inner) => {
1550                Error::ResourceNotFoundException(inner)
1551            }
1552            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ThrottlingException(inner) => {
1553                Error::ThrottlingException(inner)
1554            }
1555            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ValidationException(inner) => {
1556                Error::ValidationException(inner)
1557            }
1558            crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1559        }
1560    }
1561}
1562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError, R>> for Error
1563where
1564    R: Send + Sync + std::fmt::Debug + 'static,
1565{
1566    fn from(
1567        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError, R>,
1568    ) -> Self {
1569        match err {
1570            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1571            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1572                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1573                source: err.into(),
1574            }),
1575        }
1576    }
1577}
1578impl From<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError> for Error {
1579    fn from(err: crate::operation::get_core_network_policy::GetCoreNetworkPolicyError) -> Self {
1580        match err {
1581            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1582            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::InternalServerException(inner) => {
1583                Error::InternalServerException(inner)
1584            }
1585            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ResourceNotFoundException(inner) => {
1586                Error::ResourceNotFoundException(inner)
1587            }
1588            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1589            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1590            crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1591        }
1592    }
1593}
1594impl<R>
1595    From<
1596        ::aws_smithy_runtime_api::client::result::SdkError<
1597            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError,
1598            R,
1599        >,
1600    > for Error
1601where
1602    R: Send + Sync + std::fmt::Debug + 'static,
1603{
1604    fn from(
1605        err: ::aws_smithy_runtime_api::client::result::SdkError<
1606            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError,
1607            R,
1608        >,
1609    ) -> Self {
1610        match err {
1611            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1612            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1613                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1614                source: err.into(),
1615            }),
1616        }
1617    }
1618}
1619impl From<crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError> for Error {
1620    fn from(err: crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError) -> Self {
1621        match err {
1622            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::AccessDeniedException(inner) => {
1623                Error::AccessDeniedException(inner)
1624            }
1625            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ConflictException(inner) => {
1626                Error::ConflictException(inner)
1627            }
1628            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::InternalServerException(inner) => {
1629                Error::InternalServerException(inner)
1630            }
1631            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ResourceNotFoundException(inner) => {
1632                Error::ResourceNotFoundException(inner)
1633            }
1634            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ThrottlingException(inner) => {
1635                Error::ThrottlingException(inner)
1636            }
1637            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ValidationException(inner) => {
1638                Error::ValidationException(inner)
1639            }
1640            crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1641        }
1642    }
1643}
1644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_devices::GetDevicesError, R>> for Error
1645where
1646    R: Send + Sync + std::fmt::Debug + 'static,
1647{
1648    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_devices::GetDevicesError, R>) -> Self {
1649        match err {
1650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1653                source: err.into(),
1654            }),
1655        }
1656    }
1657}
1658impl From<crate::operation::get_devices::GetDevicesError> for Error {
1659    fn from(err: crate::operation::get_devices::GetDevicesError) -> Self {
1660        match err {
1661            crate::operation::get_devices::GetDevicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1662            crate::operation::get_devices::GetDevicesError::InternalServerException(inner) => Error::InternalServerException(inner),
1663            crate::operation::get_devices::GetDevicesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1664            crate::operation::get_devices::GetDevicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1665            crate::operation::get_devices::GetDevicesError::ValidationException(inner) => Error::ValidationException(inner),
1666            crate::operation::get_devices::GetDevicesError::Unhandled(inner) => Error::Unhandled(inner),
1667        }
1668    }
1669}
1670impl<R>
1671    From<
1672        ::aws_smithy_runtime_api::client::result::SdkError<
1673            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError,
1674            R,
1675        >,
1676    > for Error
1677where
1678    R: Send + Sync + std::fmt::Debug + 'static,
1679{
1680    fn from(
1681        err: ::aws_smithy_runtime_api::client::result::SdkError<
1682            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError,
1683            R,
1684        >,
1685    ) -> Self {
1686        match err {
1687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1690                source: err.into(),
1691            }),
1692        }
1693    }
1694}
1695impl From<crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError> for Error {
1696    fn from(err: crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError) -> Self {
1697        match err {
1698            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
1699                Error::AccessDeniedException(inner)
1700            }
1701            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
1702                Error::InternalServerException(inner)
1703            }
1704            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ResourceNotFoundException(inner) => {
1705                Error::ResourceNotFoundException(inner)
1706            }
1707            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
1708                Error::ThrottlingException(inner)
1709            }
1710            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ValidationException(inner) => {
1711                Error::ValidationException(inner)
1712            }
1713            crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::Unhandled(inner) => {
1714                Error::Unhandled(inner)
1715            }
1716        }
1717    }
1718}
1719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link_associations::GetLinkAssociationsError, R>> for Error
1720where
1721    R: Send + Sync + std::fmt::Debug + 'static,
1722{
1723    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link_associations::GetLinkAssociationsError, R>) -> Self {
1724        match err {
1725            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1726            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1727                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1728                source: err.into(),
1729            }),
1730        }
1731    }
1732}
1733impl From<crate::operation::get_link_associations::GetLinkAssociationsError> for Error {
1734    fn from(err: crate::operation::get_link_associations::GetLinkAssociationsError) -> Self {
1735        match err {
1736            crate::operation::get_link_associations::GetLinkAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1737            crate::operation::get_link_associations::GetLinkAssociationsError::InternalServerException(inner) => {
1738                Error::InternalServerException(inner)
1739            }
1740            crate::operation::get_link_associations::GetLinkAssociationsError::ResourceNotFoundException(inner) => {
1741                Error::ResourceNotFoundException(inner)
1742            }
1743            crate::operation::get_link_associations::GetLinkAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1744            crate::operation::get_link_associations::GetLinkAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1745            crate::operation::get_link_associations::GetLinkAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1746        }
1747    }
1748}
1749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_links::GetLinksError, R>> for Error
1750where
1751    R: Send + Sync + std::fmt::Debug + 'static,
1752{
1753    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_links::GetLinksError, R>) -> Self {
1754        match err {
1755            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1756            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1757                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1758                source: err.into(),
1759            }),
1760        }
1761    }
1762}
1763impl From<crate::operation::get_links::GetLinksError> for Error {
1764    fn from(err: crate::operation::get_links::GetLinksError) -> Self {
1765        match err {
1766            crate::operation::get_links::GetLinksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1767            crate::operation::get_links::GetLinksError::InternalServerException(inner) => Error::InternalServerException(inner),
1768            crate::operation::get_links::GetLinksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1769            crate::operation::get_links::GetLinksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1770            crate::operation::get_links::GetLinksError::ValidationException(inner) => Error::ValidationException(inner),
1771            crate::operation::get_links::GetLinksError::Unhandled(inner) => Error::Unhandled(inner),
1772        }
1773    }
1774}
1775impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError, R>>
1776    for Error
1777where
1778    R: Send + Sync + std::fmt::Debug + 'static,
1779{
1780    fn from(
1781        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError, R>,
1782    ) -> Self {
1783        match err {
1784            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1785            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1786                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1787                source: err.into(),
1788            }),
1789        }
1790    }
1791}
1792impl From<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError> for Error {
1793    fn from(err: crate::operation::get_network_resource_counts::GetNetworkResourceCountsError) -> Self {
1794        match err {
1795            crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::AccessDeniedException(inner) => {
1796                Error::AccessDeniedException(inner)
1797            }
1798            crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::InternalServerException(inner) => {
1799                Error::InternalServerException(inner)
1800            }
1801            crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::ThrottlingException(inner) => {
1802                Error::ThrottlingException(inner)
1803            }
1804            crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::ValidationException(inner) => {
1805                Error::ValidationException(inner)
1806            }
1807            crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::Unhandled(inner) => Error::Unhandled(inner),
1808        }
1809    }
1810}
1811impl<R>
1812    From<
1813        ::aws_smithy_runtime_api::client::result::SdkError<
1814            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError,
1815            R,
1816        >,
1817    > for Error
1818where
1819    R: Send + Sync + std::fmt::Debug + 'static,
1820{
1821    fn from(
1822        err: ::aws_smithy_runtime_api::client::result::SdkError<
1823            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError,
1824            R,
1825        >,
1826    ) -> 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::get_network_resource_relationships::GetNetworkResourceRelationshipsError> for Error {
1837    fn from(err: crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError) -> Self {
1838        match err {
1839            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::AccessDeniedException(inner) => {
1840                Error::AccessDeniedException(inner)
1841            }
1842            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::InternalServerException(inner) => {
1843                Error::InternalServerException(inner)
1844            }
1845            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ResourceNotFoundException(inner) => {
1846                Error::ResourceNotFoundException(inner)
1847            }
1848            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ThrottlingException(inner) => {
1849                Error::ThrottlingException(inner)
1850            }
1851            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ValidationException(inner) => {
1852                Error::ValidationException(inner)
1853            }
1854            crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::Unhandled(inner) => Error::Unhandled(inner),
1855        }
1856    }
1857}
1858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resources::GetNetworkResourcesError, R>> for Error
1859where
1860    R: Send + Sync + std::fmt::Debug + 'static,
1861{
1862    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resources::GetNetworkResourcesError, R>) -> Self {
1863        match err {
1864            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1865            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1866                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1867                source: err.into(),
1868            }),
1869        }
1870    }
1871}
1872impl From<crate::operation::get_network_resources::GetNetworkResourcesError> for Error {
1873    fn from(err: crate::operation::get_network_resources::GetNetworkResourcesError) -> Self {
1874        match err {
1875            crate::operation::get_network_resources::GetNetworkResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1876            crate::operation::get_network_resources::GetNetworkResourcesError::InternalServerException(inner) => {
1877                Error::InternalServerException(inner)
1878            }
1879            crate::operation::get_network_resources::GetNetworkResourcesError::ResourceNotFoundException(inner) => {
1880                Error::ResourceNotFoundException(inner)
1881            }
1882            crate::operation::get_network_resources::GetNetworkResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1883            crate::operation::get_network_resources::GetNetworkResourcesError::ValidationException(inner) => Error::ValidationException(inner),
1884            crate::operation::get_network_resources::GetNetworkResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1885        }
1886    }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_routes::GetNetworkRoutesError, R>> for Error
1889where
1890    R: Send + Sync + std::fmt::Debug + 'static,
1891{
1892    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_routes::GetNetworkRoutesError, R>) -> Self {
1893        match err {
1894            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1895            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1896                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1897                source: err.into(),
1898            }),
1899        }
1900    }
1901}
1902impl From<crate::operation::get_network_routes::GetNetworkRoutesError> for Error {
1903    fn from(err: crate::operation::get_network_routes::GetNetworkRoutesError) -> Self {
1904        match err {
1905            crate::operation::get_network_routes::GetNetworkRoutesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1906            crate::operation::get_network_routes::GetNetworkRoutesError::InternalServerException(inner) => Error::InternalServerException(inner),
1907            crate::operation::get_network_routes::GetNetworkRoutesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1908            crate::operation::get_network_routes::GetNetworkRoutesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1909            crate::operation::get_network_routes::GetNetworkRoutesError::ValidationException(inner) => Error::ValidationException(inner),
1910            crate::operation::get_network_routes::GetNetworkRoutesError::Unhandled(inner) => Error::Unhandled(inner),
1911        }
1912    }
1913}
1914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_telemetry::GetNetworkTelemetryError, R>> for Error
1915where
1916    R: Send + Sync + std::fmt::Debug + 'static,
1917{
1918    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_telemetry::GetNetworkTelemetryError, R>) -> Self {
1919        match err {
1920            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1921            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1922                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1923                source: err.into(),
1924            }),
1925        }
1926    }
1927}
1928impl From<crate::operation::get_network_telemetry::GetNetworkTelemetryError> for Error {
1929    fn from(err: crate::operation::get_network_telemetry::GetNetworkTelemetryError) -> Self {
1930        match err {
1931            crate::operation::get_network_telemetry::GetNetworkTelemetryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1932            crate::operation::get_network_telemetry::GetNetworkTelemetryError::InternalServerException(inner) => {
1933                Error::InternalServerException(inner)
1934            }
1935            crate::operation::get_network_telemetry::GetNetworkTelemetryError::ResourceNotFoundException(inner) => {
1936                Error::ResourceNotFoundException(inner)
1937            }
1938            crate::operation::get_network_telemetry::GetNetworkTelemetryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1939            crate::operation::get_network_telemetry::GetNetworkTelemetryError::ValidationException(inner) => Error::ValidationException(inner),
1940            crate::operation::get_network_telemetry::GetNetworkTelemetryError::Unhandled(inner) => Error::Unhandled(inner),
1941        }
1942    }
1943}
1944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
1945where
1946    R: Send + Sync + std::fmt::Debug + 'static,
1947{
1948    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
1949        match err {
1950            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1951            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1952                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1953                source: err.into(),
1954            }),
1955        }
1956    }
1957}
1958impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
1959    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
1960        match err {
1961            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1962            crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1963            crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1964            crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1965            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1966        }
1967    }
1968}
1969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_analysis::GetRouteAnalysisError, R>> for Error
1970where
1971    R: Send + Sync + std::fmt::Debug + 'static,
1972{
1973    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_analysis::GetRouteAnalysisError, R>) -> Self {
1974        match err {
1975            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1976            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1977                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1978                source: err.into(),
1979            }),
1980        }
1981    }
1982}
1983impl From<crate::operation::get_route_analysis::GetRouteAnalysisError> for Error {
1984    fn from(err: crate::operation::get_route_analysis::GetRouteAnalysisError) -> Self {
1985        match err {
1986            crate::operation::get_route_analysis::GetRouteAnalysisError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1987            crate::operation::get_route_analysis::GetRouteAnalysisError::InternalServerException(inner) => Error::InternalServerException(inner),
1988            crate::operation::get_route_analysis::GetRouteAnalysisError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1989            crate::operation::get_route_analysis::GetRouteAnalysisError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1990            crate::operation::get_route_analysis::GetRouteAnalysisError::ValidationException(inner) => Error::ValidationException(inner),
1991            crate::operation::get_route_analysis::GetRouteAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
1992        }
1993    }
1994}
1995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sites::GetSitesError, R>> for Error
1996where
1997    R: Send + Sync + std::fmt::Debug + 'static,
1998{
1999    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sites::GetSitesError, R>) -> Self {
2000        match err {
2001            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2002            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2003                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2004                source: err.into(),
2005            }),
2006        }
2007    }
2008}
2009impl From<crate::operation::get_sites::GetSitesError> for Error {
2010    fn from(err: crate::operation::get_sites::GetSitesError) -> Self {
2011        match err {
2012            crate::operation::get_sites::GetSitesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2013            crate::operation::get_sites::GetSitesError::InternalServerException(inner) => Error::InternalServerException(inner),
2014            crate::operation::get_sites::GetSitesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2015            crate::operation::get_sites::GetSitesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2016            crate::operation::get_sites::GetSitesError::ValidationException(inner) => Error::ValidationException(inner),
2017            crate::operation::get_sites::GetSitesError::Unhandled(inner) => Error::Unhandled(inner),
2018        }
2019    }
2020}
2021impl<R>
2022    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError, R>>
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::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError,
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::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError> for Error {
2043    fn from(err: crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError) -> Self {
2044        match err {
2045            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::AccessDeniedException(inner) => {
2046                Error::AccessDeniedException(inner)
2047            }
2048            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::InternalServerException(inner) => {
2049                Error::InternalServerException(inner)
2050            }
2051            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ResourceNotFoundException(inner) => {
2052                Error::ResourceNotFoundException(inner)
2053            }
2054            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ThrottlingException(inner) => {
2055                Error::ThrottlingException(inner)
2056            }
2057            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ValidationException(inner) => {
2058                Error::ValidationException(inner)
2059            }
2060            crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2061        }
2062    }
2063}
2064impl<R>
2065    From<
2066        ::aws_smithy_runtime_api::client::result::SdkError<
2067            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError,
2068            R,
2069        >,
2070    > for Error
2071where
2072    R: Send + Sync + std::fmt::Debug + 'static,
2073{
2074    fn from(
2075        err: ::aws_smithy_runtime_api::client::result::SdkError<
2076            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError,
2077            R,
2078        >,
2079    ) -> Self {
2080        match err {
2081            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2082            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2083                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2084                source: err.into(),
2085            }),
2086        }
2087    }
2088}
2089impl From<crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError> for Error {
2090    fn from(err: crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError) -> Self {
2091        match err {
2092            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2093            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ConflictException(inner) => Error::ConflictException(inner),
2094            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
2095            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2096            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2097            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
2098            crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2099        }
2100    }
2101}
2102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError, R>>
2103    for Error
2104where
2105    R: Send + Sync + std::fmt::Debug + 'static,
2106{
2107    fn from(
2108        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError, R>,
2109    ) -> Self {
2110        match err {
2111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2114                source: err.into(),
2115            }),
2116        }
2117    }
2118}
2119impl From<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError> for Error {
2120    fn from(err: crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError) -> Self {
2121        match err {
2122            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::AccessDeniedException(inner) => {
2123                Error::AccessDeniedException(inner)
2124            }
2125            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::InternalServerException(inner) => {
2126                Error::InternalServerException(inner)
2127            }
2128            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ResourceNotFoundException(inner) => {
2129                Error::ResourceNotFoundException(inner)
2130            }
2131            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ThrottlingException(inner) => {
2132                Error::ThrottlingException(inner)
2133            }
2134            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ValidationException(inner) => {
2135                Error::ValidationException(inner)
2136            }
2137            crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::Unhandled(inner) => Error::Unhandled(inner),
2138        }
2139    }
2140}
2141impl<R>
2142    From<
2143        ::aws_smithy_runtime_api::client::result::SdkError<
2144            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError,
2145            R,
2146        >,
2147    > for Error
2148where
2149    R: Send + Sync + std::fmt::Debug + 'static,
2150{
2151    fn from(
2152        err: ::aws_smithy_runtime_api::client::result::SdkError<
2153            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError,
2154            R,
2155        >,
2156    ) -> Self {
2157        match err {
2158            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2159            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2160                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2161                source: err.into(),
2162            }),
2163        }
2164    }
2165}
2166impl From<crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError> for Error {
2167    fn from(err: crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError) -> Self {
2168        match err {
2169            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::AccessDeniedException(inner) => {
2170                Error::AccessDeniedException(inner)
2171            }
2172            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::InternalServerException(inner) => {
2173                Error::InternalServerException(inner)
2174            }
2175            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ResourceNotFoundException(inner) => {
2176                Error::ResourceNotFoundException(inner)
2177            }
2178            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ThrottlingException(inner) => {
2179                Error::ThrottlingException(inner)
2180            }
2181            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ValidationException(inner) => {
2182                Error::ValidationException(inner)
2183            }
2184            crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
2185        }
2186    }
2187}
2188impl<R>
2189    From<
2190        ::aws_smithy_runtime_api::client::result::SdkError<
2191            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError,
2192            R,
2193        >,
2194    > for Error
2195where
2196    R: Send + Sync + std::fmt::Debug + 'static,
2197{
2198    fn from(
2199        err: ::aws_smithy_runtime_api::client::result::SdkError<
2200            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError,
2201            R,
2202        >,
2203    ) -> Self {
2204        match err {
2205            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2206            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2207                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2208                source: err.into(),
2209            }),
2210        }
2211    }
2212}
2213impl From<crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError> for Error {
2214    fn from(err: crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError) -> Self {
2215        match err {
2216            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::AccessDeniedException(
2217                inner,
2218            ) => Error::AccessDeniedException(inner),
2219            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::InternalServerException(
2220                inner,
2221            ) => Error::InternalServerException(inner),
2222            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ResourceNotFoundException(
2223                inner,
2224            ) => Error::ResourceNotFoundException(inner),
2225            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ThrottlingException(inner) => {
2226                Error::ThrottlingException(inner)
2227            }
2228            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ValidationException(inner) => {
2229                Error::ValidationException(inner)
2230            }
2231            crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::Unhandled(inner) => {
2232                Error::Unhandled(inner)
2233            }
2234        }
2235    }
2236}
2237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_attachment::GetVpcAttachmentError, R>> for Error
2238where
2239    R: Send + Sync + std::fmt::Debug + 'static,
2240{
2241    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_attachment::GetVpcAttachmentError, R>) -> Self {
2242        match err {
2243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2246                source: err.into(),
2247            }),
2248        }
2249    }
2250}
2251impl From<crate::operation::get_vpc_attachment::GetVpcAttachmentError> for Error {
2252    fn from(err: crate::operation::get_vpc_attachment::GetVpcAttachmentError) -> Self {
2253        match err {
2254            crate::operation::get_vpc_attachment::GetVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2255            crate::operation::get_vpc_attachment::GetVpcAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2256            crate::operation::get_vpc_attachment::GetVpcAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2257            crate::operation::get_vpc_attachment::GetVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2258            crate::operation::get_vpc_attachment::GetVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
2259            crate::operation::get_vpc_attachment::GetVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2260        }
2261    }
2262}
2263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attachments::ListAttachmentsError, R>> for Error
2264where
2265    R: Send + Sync + std::fmt::Debug + 'static,
2266{
2267    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attachments::ListAttachmentsError, R>) -> Self {
2268        match err {
2269            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2270            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2271                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2272                source: err.into(),
2273            }),
2274        }
2275    }
2276}
2277impl From<crate::operation::list_attachments::ListAttachmentsError> for Error {
2278    fn from(err: crate::operation::list_attachments::ListAttachmentsError) -> Self {
2279        match err {
2280            crate::operation::list_attachments::ListAttachmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2281            crate::operation::list_attachments::ListAttachmentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2282            crate::operation::list_attachments::ListAttachmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2283            crate::operation::list_attachments::ListAttachmentsError::ValidationException(inner) => Error::ValidationException(inner),
2284            crate::operation::list_attachments::ListAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
2285        }
2286    }
2287}
2288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connect_peers::ListConnectPeersError, R>> for Error
2289where
2290    R: Send + Sync + std::fmt::Debug + 'static,
2291{
2292    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connect_peers::ListConnectPeersError, R>) -> Self {
2293        match err {
2294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2297                source: err.into(),
2298            }),
2299        }
2300    }
2301}
2302impl From<crate::operation::list_connect_peers::ListConnectPeersError> for Error {
2303    fn from(err: crate::operation::list_connect_peers::ListConnectPeersError) -> Self {
2304        match err {
2305            crate::operation::list_connect_peers::ListConnectPeersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2306            crate::operation::list_connect_peers::ListConnectPeersError::InternalServerException(inner) => Error::InternalServerException(inner),
2307            crate::operation::list_connect_peers::ListConnectPeersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2308            crate::operation::list_connect_peers::ListConnectPeersError::ValidationException(inner) => Error::ValidationException(inner),
2309            crate::operation::list_connect_peers::ListConnectPeersError::Unhandled(inner) => Error::Unhandled(inner),
2310        }
2311    }
2312}
2313impl<R>
2314    From<
2315        ::aws_smithy_runtime_api::client::result::SdkError<
2316            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError,
2317            R,
2318        >,
2319    > for Error
2320where
2321    R: Send + Sync + std::fmt::Debug + 'static,
2322{
2323    fn from(
2324        err: ::aws_smithy_runtime_api::client::result::SdkError<
2325            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError,
2326            R,
2327        >,
2328    ) -> Self {
2329        match err {
2330            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2331            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2332                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2333                source: err.into(),
2334            }),
2335        }
2336    }
2337}
2338impl From<crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError> for Error {
2339    fn from(err: crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError) -> Self {
2340        match err {
2341            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::AccessDeniedException(inner) => {
2342                Error::AccessDeniedException(inner)
2343            }
2344            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::InternalServerException(inner) => {
2345                Error::InternalServerException(inner)
2346            }
2347            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ResourceNotFoundException(inner) => {
2348                Error::ResourceNotFoundException(inner)
2349            }
2350            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ThrottlingException(inner) => {
2351                Error::ThrottlingException(inner)
2352            }
2353            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ValidationException(inner) => {
2354                Error::ValidationException(inner)
2355            }
2356            crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2357        }
2358    }
2359}
2360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_core_networks::ListCoreNetworksError, R>> for Error
2361where
2362    R: Send + Sync + std::fmt::Debug + 'static,
2363{
2364    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_core_networks::ListCoreNetworksError, R>) -> Self {
2365        match err {
2366            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2367            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2368                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2369                source: err.into(),
2370            }),
2371        }
2372    }
2373}
2374impl From<crate::operation::list_core_networks::ListCoreNetworksError> for Error {
2375    fn from(err: crate::operation::list_core_networks::ListCoreNetworksError) -> Self {
2376        match err {
2377            crate::operation::list_core_networks::ListCoreNetworksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2378            crate::operation::list_core_networks::ListCoreNetworksError::InternalServerException(inner) => Error::InternalServerException(inner),
2379            crate::operation::list_core_networks::ListCoreNetworksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2380            crate::operation::list_core_networks::ListCoreNetworksError::ValidationException(inner) => Error::ValidationException(inner),
2381            crate::operation::list_core_networks::ListCoreNetworksError::Unhandled(inner) => Error::Unhandled(inner),
2382        }
2383    }
2384}
2385impl<R>
2386    From<
2387        ::aws_smithy_runtime_api::client::result::SdkError<
2388            crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError,
2389            R,
2390        >,
2391    > for Error
2392where
2393    R: Send + Sync + std::fmt::Debug + 'static,
2394{
2395    fn from(
2396        err: ::aws_smithy_runtime_api::client::result::SdkError<
2397            crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError,
2398            R,
2399        >,
2400    ) -> Self {
2401        match err {
2402            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2403            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2404                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2405                source: err.into(),
2406            }),
2407        }
2408    }
2409}
2410impl From<crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError> for Error {
2411    fn from(err: crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError) -> Self {
2412        match err {
2413            crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError::Unhandled(inner) => {
2414                Error::Unhandled(inner)
2415            }
2416        }
2417    }
2418}
2419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_peerings::ListPeeringsError, R>> for Error
2420where
2421    R: Send + Sync + std::fmt::Debug + 'static,
2422{
2423    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_peerings::ListPeeringsError, R>) -> Self {
2424        match err {
2425            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2426            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2427                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2428                source: err.into(),
2429            }),
2430        }
2431    }
2432}
2433impl From<crate::operation::list_peerings::ListPeeringsError> for Error {
2434    fn from(err: crate::operation::list_peerings::ListPeeringsError) -> Self {
2435        match err {
2436            crate::operation::list_peerings::ListPeeringsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2437            crate::operation::list_peerings::ListPeeringsError::InternalServerException(inner) => Error::InternalServerException(inner),
2438            crate::operation::list_peerings::ListPeeringsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2439            crate::operation::list_peerings::ListPeeringsError::ValidationException(inner) => Error::ValidationException(inner),
2440            crate::operation::list_peerings::ListPeeringsError::Unhandled(inner) => Error::Unhandled(inner),
2441        }
2442    }
2443}
2444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2445where
2446    R: Send + Sync + std::fmt::Debug + 'static,
2447{
2448    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2449        match err {
2450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2453                source: err.into(),
2454            }),
2455        }
2456    }
2457}
2458impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2459    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2460        match err {
2461            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2462            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2463                Error::InternalServerException(inner)
2464            }
2465            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2466                Error::ResourceNotFoundException(inner)
2467            }
2468            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2469            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2470            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2471        }
2472    }
2473}
2474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError, R>> for Error
2475where
2476    R: Send + Sync + std::fmt::Debug + 'static,
2477{
2478    fn from(
2479        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError, R>,
2480    ) -> Self {
2481        match err {
2482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2485                source: err.into(),
2486            }),
2487        }
2488    }
2489}
2490impl From<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError> for Error {
2491    fn from(err: crate::operation::put_core_network_policy::PutCoreNetworkPolicyError) -> Self {
2492        match err {
2493            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2494            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ConflictException(inner) => Error::ConflictException(inner),
2495            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::CoreNetworkPolicyException(inner) => {
2496                Error::CoreNetworkPolicyException(inner)
2497            }
2498            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::InternalServerException(inner) => {
2499                Error::InternalServerException(inner)
2500            }
2501            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ResourceNotFoundException(inner) => {
2502                Error::ResourceNotFoundException(inner)
2503            }
2504            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2505            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ValidationException(inner) => Error::ValidationException(inner),
2506            crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2507        }
2508    }
2509}
2510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
2511where
2512    R: Send + Sync + std::fmt::Debug + 'static,
2513{
2514    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2515        match err {
2516            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2517            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2518                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2519                source: err.into(),
2520            }),
2521        }
2522    }
2523}
2524impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2525    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2526        match err {
2527            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2528            crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
2529            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2530            crate::operation::put_resource_policy::PutResourcePolicyError::ServiceQuotaExceededException(inner) => {
2531                Error::ServiceQuotaExceededException(inner)
2532            }
2533            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2534            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2535            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2536        }
2537    }
2538}
2539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_transit_gateway::RegisterTransitGatewayError, R>> for Error
2540where
2541    R: Send + Sync + std::fmt::Debug + 'static,
2542{
2543    fn from(
2544        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_transit_gateway::RegisterTransitGatewayError, R>,
2545    ) -> Self {
2546        match err {
2547            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2548            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2549                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2550                source: err.into(),
2551            }),
2552        }
2553    }
2554}
2555impl From<crate::operation::register_transit_gateway::RegisterTransitGatewayError> for Error {
2556    fn from(err: crate::operation::register_transit_gateway::RegisterTransitGatewayError) -> Self {
2557        match err {
2558            crate::operation::register_transit_gateway::RegisterTransitGatewayError::AccessDeniedException(inner) => {
2559                Error::AccessDeniedException(inner)
2560            }
2561            crate::operation::register_transit_gateway::RegisterTransitGatewayError::ConflictException(inner) => Error::ConflictException(inner),
2562            crate::operation::register_transit_gateway::RegisterTransitGatewayError::InternalServerException(inner) => {
2563                Error::InternalServerException(inner)
2564            }
2565            crate::operation::register_transit_gateway::RegisterTransitGatewayError::ResourceNotFoundException(inner) => {
2566                Error::ResourceNotFoundException(inner)
2567            }
2568            crate::operation::register_transit_gateway::RegisterTransitGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2569            crate::operation::register_transit_gateway::RegisterTransitGatewayError::ValidationException(inner) => Error::ValidationException(inner),
2570            crate::operation::register_transit_gateway::RegisterTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2571        }
2572    }
2573}
2574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_attachment::RejectAttachmentError, R>> for Error
2575where
2576    R: Send + Sync + std::fmt::Debug + 'static,
2577{
2578    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_attachment::RejectAttachmentError, R>) -> Self {
2579        match err {
2580            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2581            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2582                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2583                source: err.into(),
2584            }),
2585        }
2586    }
2587}
2588impl From<crate::operation::reject_attachment::RejectAttachmentError> for Error {
2589    fn from(err: crate::operation::reject_attachment::RejectAttachmentError) -> Self {
2590        match err {
2591            crate::operation::reject_attachment::RejectAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2592            crate::operation::reject_attachment::RejectAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
2593            crate::operation::reject_attachment::RejectAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2594            crate::operation::reject_attachment::RejectAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2595            crate::operation::reject_attachment::RejectAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2596            crate::operation::reject_attachment::RejectAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
2597            crate::operation::reject_attachment::RejectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2598        }
2599    }
2600}
2601impl<R>
2602    From<
2603        ::aws_smithy_runtime_api::client::result::SdkError<
2604            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError,
2605            R,
2606        >,
2607    > for Error
2608where
2609    R: Send + Sync + std::fmt::Debug + 'static,
2610{
2611    fn from(
2612        err: ::aws_smithy_runtime_api::client::result::SdkError<
2613            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError,
2614            R,
2615        >,
2616    ) -> Self {
2617        match err {
2618            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2619            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2620                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2621                source: err.into(),
2622            }),
2623        }
2624    }
2625}
2626impl From<crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError> for Error {
2627    fn from(err: crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError) -> Self {
2628        match err {
2629            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::AccessDeniedException(inner) => {
2630                Error::AccessDeniedException(inner)
2631            }
2632            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ConflictException(inner) => {
2633                Error::ConflictException(inner)
2634            }
2635            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::InternalServerException(inner) => {
2636                Error::InternalServerException(inner)
2637            }
2638            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ResourceNotFoundException(inner) => {
2639                Error::ResourceNotFoundException(inner)
2640            }
2641            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ThrottlingException(inner) => {
2642                Error::ThrottlingException(inner)
2643            }
2644            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ValidationException(inner) => {
2645                Error::ValidationException(inner)
2646            }
2647            crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
2648        }
2649    }
2650}
2651impl<R>
2652    From<
2653        ::aws_smithy_runtime_api::client::result::SdkError<
2654            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError,
2655            R,
2656        >,
2657    > for Error
2658where
2659    R: Send + Sync + std::fmt::Debug + 'static,
2660{
2661    fn from(
2662        err: ::aws_smithy_runtime_api::client::result::SdkError<
2663            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError,
2664            R,
2665        >,
2666    ) -> Self {
2667        match err {
2668            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2669            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2670                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2671                source: err.into(),
2672            }),
2673        }
2674    }
2675}
2676impl From<crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError> for Error {
2677    fn from(err: crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError) -> Self {
2678        match err {
2679            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::AccessDeniedException(inner) => {
2680                Error::AccessDeniedException(inner)
2681            }
2682            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ConflictException(inner) => {
2683                Error::ConflictException(inner)
2684            }
2685            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::InternalServerException(inner) => {
2686                Error::InternalServerException(inner)
2687            }
2688            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ServiceQuotaExceededException(
2689                inner,
2690            ) => Error::ServiceQuotaExceededException(inner),
2691            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ThrottlingException(inner) => {
2692                Error::ThrottlingException(inner)
2693            }
2694            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ValidationException(inner) => {
2695                Error::ValidationException(inner)
2696            }
2697            crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::Unhandled(inner) => {
2698                Error::Unhandled(inner)
2699            }
2700        }
2701    }
2702}
2703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_route_analysis::StartRouteAnalysisError, R>> for Error
2704where
2705    R: Send + Sync + std::fmt::Debug + 'static,
2706{
2707    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_route_analysis::StartRouteAnalysisError, R>) -> Self {
2708        match err {
2709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712                source: err.into(),
2713            }),
2714        }
2715    }
2716}
2717impl From<crate::operation::start_route_analysis::StartRouteAnalysisError> for Error {
2718    fn from(err: crate::operation::start_route_analysis::StartRouteAnalysisError) -> Self {
2719        match err {
2720            crate::operation::start_route_analysis::StartRouteAnalysisError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2721            crate::operation::start_route_analysis::StartRouteAnalysisError::ConflictException(inner) => Error::ConflictException(inner),
2722            crate::operation::start_route_analysis::StartRouteAnalysisError::InternalServerException(inner) => Error::InternalServerException(inner),
2723            crate::operation::start_route_analysis::StartRouteAnalysisError::ResourceNotFoundException(inner) => {
2724                Error::ResourceNotFoundException(inner)
2725            }
2726            crate::operation::start_route_analysis::StartRouteAnalysisError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2727            crate::operation::start_route_analysis::StartRouteAnalysisError::ValidationException(inner) => Error::ValidationException(inner),
2728            crate::operation::start_route_analysis::StartRouteAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
2729        }
2730    }
2731}
2732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2733where
2734    R: Send + Sync + std::fmt::Debug + 'static,
2735{
2736    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2737        match err {
2738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2741                source: err.into(),
2742            }),
2743        }
2744    }
2745}
2746impl From<crate::operation::tag_resource::TagResourceError> for Error {
2747    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2748        match err {
2749            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2750            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2751            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2752            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2753            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2754            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2755            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2756            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2757        }
2758    }
2759}
2760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2761where
2762    R: Send + Sync + std::fmt::Debug + 'static,
2763{
2764    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2765        match err {
2766            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2767            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2768                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2769                source: err.into(),
2770            }),
2771        }
2772    }
2773}
2774impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2775    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2776        match err {
2777            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2778            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2779            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2780            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2781            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2782            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2783            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2784        }
2785    }
2786}
2787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
2788where
2789    R: Send + Sync + std::fmt::Debug + 'static,
2790{
2791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
2792        match err {
2793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2796                source: err.into(),
2797            }),
2798        }
2799    }
2800}
2801impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
2802    fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
2803        match err {
2804            crate::operation::update_connection::UpdateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2805            crate::operation::update_connection::UpdateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
2806            crate::operation::update_connection::UpdateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
2807            crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2808            crate::operation::update_connection::UpdateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2809            crate::operation::update_connection::UpdateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
2810            crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
2811        }
2812    }
2813}
2814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_core_network::UpdateCoreNetworkError, R>> for Error
2815where
2816    R: Send + Sync + std::fmt::Debug + 'static,
2817{
2818    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_core_network::UpdateCoreNetworkError, R>) -> Self {
2819        match err {
2820            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2821            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2822                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2823                source: err.into(),
2824            }),
2825        }
2826    }
2827}
2828impl From<crate::operation::update_core_network::UpdateCoreNetworkError> for Error {
2829    fn from(err: crate::operation::update_core_network::UpdateCoreNetworkError) -> Self {
2830        match err {
2831            crate::operation::update_core_network::UpdateCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2832            crate::operation::update_core_network::UpdateCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
2833            crate::operation::update_core_network::UpdateCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
2834            crate::operation::update_core_network::UpdateCoreNetworkError::ResourceNotFoundException(inner) => {
2835                Error::ResourceNotFoundException(inner)
2836            }
2837            crate::operation::update_core_network::UpdateCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2838            crate::operation::update_core_network::UpdateCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
2839            crate::operation::update_core_network::UpdateCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
2840        }
2841    }
2842}
2843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device::UpdateDeviceError, R>> for Error
2844where
2845    R: Send + Sync + std::fmt::Debug + 'static,
2846{
2847    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device::UpdateDeviceError, R>) -> Self {
2848        match err {
2849            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2850            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2851                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2852                source: err.into(),
2853            }),
2854        }
2855    }
2856}
2857impl From<crate::operation::update_device::UpdateDeviceError> for Error {
2858    fn from(err: crate::operation::update_device::UpdateDeviceError) -> Self {
2859        match err {
2860            crate::operation::update_device::UpdateDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2861            crate::operation::update_device::UpdateDeviceError::ConflictException(inner) => Error::ConflictException(inner),
2862            crate::operation::update_device::UpdateDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
2863            crate::operation::update_device::UpdateDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2864            crate::operation::update_device::UpdateDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2865            crate::operation::update_device::UpdateDeviceError::ValidationException(inner) => Error::ValidationException(inner),
2866            crate::operation::update_device::UpdateDeviceError::Unhandled(inner) => Error::Unhandled(inner),
2867        }
2868    }
2869}
2870impl<R>
2871    From<
2872        ::aws_smithy_runtime_api::client::result::SdkError<
2873            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError,
2874            R,
2875        >,
2876    > for Error
2877where
2878    R: Send + Sync + std::fmt::Debug + 'static,
2879{
2880    fn from(
2881        err: ::aws_smithy_runtime_api::client::result::SdkError<
2882            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError,
2883            R,
2884        >,
2885    ) -> Self {
2886        match err {
2887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2890                source: err.into(),
2891            }),
2892        }
2893    }
2894}
2895impl From<crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError> for Error {
2896    fn from(err: crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError) -> Self {
2897        match err {
2898            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
2899                Error::AccessDeniedException(inner)
2900            }
2901            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ConflictException(inner) => {
2902                Error::ConflictException(inner)
2903            }
2904            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
2905                Error::InternalServerException(inner)
2906            }
2907            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ResourceNotFoundException(
2908                inner,
2909            ) => Error::ResourceNotFoundException(inner),
2910            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
2911                Error::ThrottlingException(inner)
2912            }
2913            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ValidationException(inner) => {
2914                Error::ValidationException(inner)
2915            }
2916            crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::Unhandled(inner) => {
2917                Error::Unhandled(inner)
2918            }
2919        }
2920    }
2921}
2922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_network::UpdateGlobalNetworkError, R>> for Error
2923where
2924    R: Send + Sync + std::fmt::Debug + 'static,
2925{
2926    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_network::UpdateGlobalNetworkError, R>) -> Self {
2927        match err {
2928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2931                source: err.into(),
2932            }),
2933        }
2934    }
2935}
2936impl From<crate::operation::update_global_network::UpdateGlobalNetworkError> for Error {
2937    fn from(err: crate::operation::update_global_network::UpdateGlobalNetworkError) -> Self {
2938        match err {
2939            crate::operation::update_global_network::UpdateGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2940            crate::operation::update_global_network::UpdateGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
2941            crate::operation::update_global_network::UpdateGlobalNetworkError::InternalServerException(inner) => {
2942                Error::InternalServerException(inner)
2943            }
2944            crate::operation::update_global_network::UpdateGlobalNetworkError::ResourceNotFoundException(inner) => {
2945                Error::ResourceNotFoundException(inner)
2946            }
2947            crate::operation::update_global_network::UpdateGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2948            crate::operation::update_global_network::UpdateGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
2949            crate::operation::update_global_network::UpdateGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
2950        }
2951    }
2952}
2953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>> for Error
2954where
2955    R: Send + Sync + std::fmt::Debug + 'static,
2956{
2957    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>) -> Self {
2958        match err {
2959            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2960            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2961                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2962                source: err.into(),
2963            }),
2964        }
2965    }
2966}
2967impl From<crate::operation::update_link::UpdateLinkError> for Error {
2968    fn from(err: crate::operation::update_link::UpdateLinkError) -> Self {
2969        match err {
2970            crate::operation::update_link::UpdateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2971            crate::operation::update_link::UpdateLinkError::ConflictException(inner) => Error::ConflictException(inner),
2972            crate::operation::update_link::UpdateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
2973            crate::operation::update_link::UpdateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2974            crate::operation::update_link::UpdateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2975            crate::operation::update_link::UpdateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2976            crate::operation::update_link::UpdateLinkError::ValidationException(inner) => Error::ValidationException(inner),
2977            crate::operation::update_link::UpdateLinkError::Unhandled(inner) => Error::Unhandled(inner),
2978        }
2979    }
2980}
2981impl<R>
2982    From<
2983        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError, R>,
2984    > for Error
2985where
2986    R: Send + Sync + std::fmt::Debug + 'static,
2987{
2988    fn from(
2989        err: ::aws_smithy_runtime_api::client::result::SdkError<
2990            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError,
2991            R,
2992        >,
2993    ) -> Self {
2994        match err {
2995            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2996            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2997                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2998                source: err.into(),
2999            }),
3000        }
3001    }
3002}
3003impl From<crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError> for Error {
3004    fn from(err: crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError) -> Self {
3005        match err {
3006            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::AccessDeniedException(inner) => {
3007                Error::AccessDeniedException(inner)
3008            }
3009            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ConflictException(inner) => {
3010                Error::ConflictException(inner)
3011            }
3012            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::InternalServerException(inner) => {
3013                Error::InternalServerException(inner)
3014            }
3015            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ResourceNotFoundException(inner) => {
3016                Error::ResourceNotFoundException(inner)
3017            }
3018            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ThrottlingException(inner) => {
3019                Error::ThrottlingException(inner)
3020            }
3021            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ValidationException(inner) => {
3022                Error::ValidationException(inner)
3023            }
3024            crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::Unhandled(inner) => Error::Unhandled(inner),
3025        }
3026    }
3027}
3028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_site::UpdateSiteError, R>> for Error
3029where
3030    R: Send + Sync + std::fmt::Debug + 'static,
3031{
3032    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_site::UpdateSiteError, R>) -> Self {
3033        match err {
3034            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3035            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3036                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3037                source: err.into(),
3038            }),
3039        }
3040    }
3041}
3042impl From<crate::operation::update_site::UpdateSiteError> for Error {
3043    fn from(err: crate::operation::update_site::UpdateSiteError) -> Self {
3044        match err {
3045            crate::operation::update_site::UpdateSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3046            crate::operation::update_site::UpdateSiteError::ConflictException(inner) => Error::ConflictException(inner),
3047            crate::operation::update_site::UpdateSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
3048            crate::operation::update_site::UpdateSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3049            crate::operation::update_site::UpdateSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3050            crate::operation::update_site::UpdateSiteError::ValidationException(inner) => Error::ValidationException(inner),
3051            crate::operation::update_site::UpdateSiteError::Unhandled(inner) => Error::Unhandled(inner),
3052        }
3053    }
3054}
3055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError, R>> for Error
3056where
3057    R: Send + Sync + std::fmt::Debug + 'static,
3058{
3059    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError, R>) -> Self {
3060        match err {
3061            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3062            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3063                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3064                source: err.into(),
3065            }),
3066        }
3067    }
3068}
3069impl From<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError> for Error {
3070    fn from(err: crate::operation::update_vpc_attachment::UpdateVpcAttachmentError) -> Self {
3071        match err {
3072            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3073            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
3074            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::InternalServerException(inner) => {
3075                Error::InternalServerException(inner)
3076            }
3077            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ResourceNotFoundException(inner) => {
3078                Error::ResourceNotFoundException(inner)
3079            }
3080            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3081            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
3082            crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
3083        }
3084    }
3085}
3086impl ::std::error::Error for Error {
3087    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3088        match self {
3089            Error::AccessDeniedException(inner) => inner.source(),
3090            Error::ConflictException(inner) => inner.source(),
3091            Error::CoreNetworkPolicyException(inner) => inner.source(),
3092            Error::InternalServerException(inner) => inner.source(),
3093            Error::ResourceNotFoundException(inner) => inner.source(),
3094            Error::ServiceQuotaExceededException(inner) => inner.source(),
3095            Error::ThrottlingException(inner) => inner.source(),
3096            Error::ValidationException(inner) => inner.source(),
3097            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3098        }
3099    }
3100}
3101impl ::aws_types::request_id::RequestId for Error {
3102    fn request_id(&self) -> Option<&str> {
3103        match self {
3104            Self::AccessDeniedException(e) => e.request_id(),
3105            Self::ConflictException(e) => e.request_id(),
3106            Self::CoreNetworkPolicyException(e) => e.request_id(),
3107            Self::InternalServerException(e) => e.request_id(),
3108            Self::ResourceNotFoundException(e) => e.request_id(),
3109            Self::ServiceQuotaExceededException(e) => e.request_id(),
3110            Self::ThrottlingException(e) => e.request_id(),
3111            Self::ValidationException(e) => e.request_id(),
3112            Self::Unhandled(e) => e.meta.request_id(),
3113        }
3114    }
3115}