aws_sdk_rtbfabric/
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>The request could not be completed because you do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request could not be completed because of a conflict in the current state of the resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request could not be completed because of an internal server error. Try your call again.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request could not be completed because the resource does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request could not be completed because you exceeded a service quota.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The request could not be completed because it fails satisfy the constraints specified by the service.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_link::AcceptLinkError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_link::AcceptLinkError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::accept_link::AcceptLinkError> for Error {
86    fn from(err: crate::operation::accept_link::AcceptLinkError) -> Self {
87        match err {
88            crate::operation::accept_link::AcceptLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::accept_link::AcceptLinkError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::accept_link::AcceptLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::accept_link::AcceptLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::accept_link::AcceptLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93            crate::operation::accept_link::AcceptLinkError::ValidationException(inner) => Error::ValidationException(inner),
94            crate::operation::accept_link::AcceptLinkError::Unhandled(inner) => Error::Unhandled(inner),
95        }
96    }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inbound_external_link::CreateInboundExternalLinkError, R>>
99    for Error
100where
101    R: Send + Sync + std::fmt::Debug + 'static,
102{
103    fn from(
104        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inbound_external_link::CreateInboundExternalLinkError, R>,
105    ) -> Self {
106        match err {
107            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
108            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
109                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
110                source: err.into(),
111            }),
112        }
113    }
114}
115impl From<crate::operation::create_inbound_external_link::CreateInboundExternalLinkError> for Error {
116    fn from(err: crate::operation::create_inbound_external_link::CreateInboundExternalLinkError) -> Self {
117        match err {
118            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::AccessDeniedException(inner) => {
119                Error::AccessDeniedException(inner)
120            }
121            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::ConflictException(inner) => {
122                Error::ConflictException(inner)
123            }
124            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::InternalServerException(inner) => {
125                Error::InternalServerException(inner)
126            }
127            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::ResourceNotFoundException(inner) => {
128                Error::ResourceNotFoundException(inner)
129            }
130            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::ServiceQuotaExceededException(inner) => {
131                Error::ServiceQuotaExceededException(inner)
132            }
133            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::ThrottlingException(inner) => {
134                Error::ThrottlingException(inner)
135            }
136            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::ValidationException(inner) => {
137                Error::ValidationException(inner)
138            }
139            crate::operation::create_inbound_external_link::CreateInboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
140        }
141    }
142}
143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>> for Error
144where
145    R: Send + Sync + std::fmt::Debug + 'static,
146{
147    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>) -> Self {
148        match err {
149            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
150            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
151                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
152                source: err.into(),
153            }),
154        }
155    }
156}
157impl From<crate::operation::create_link::CreateLinkError> for Error {
158    fn from(err: crate::operation::create_link::CreateLinkError) -> Self {
159        match err {
160            crate::operation::create_link::CreateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
161            crate::operation::create_link::CreateLinkError::ConflictException(inner) => Error::ConflictException(inner),
162            crate::operation::create_link::CreateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
163            crate::operation::create_link::CreateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
164            crate::operation::create_link::CreateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
165            crate::operation::create_link::CreateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
166            crate::operation::create_link::CreateLinkError::ValidationException(inner) => Error::ValidationException(inner),
167            crate::operation::create_link::CreateLinkError::Unhandled(inner) => Error::Unhandled(inner),
168        }
169    }
170}
171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError, R>>
172    for Error
173where
174    R: Send + Sync + std::fmt::Debug + 'static,
175{
176    fn from(
177        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError, R>,
178    ) -> Self {
179        match err {
180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
183                source: err.into(),
184            }),
185        }
186    }
187}
188impl From<crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError> for Error {
189    fn from(err: crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError) -> Self {
190        match err {
191            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::AccessDeniedException(inner) => {
192                Error::AccessDeniedException(inner)
193            }
194            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::InternalServerException(inner) => {
195                Error::InternalServerException(inner)
196            }
197            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::ResourceNotFoundException(inner) => {
198                Error::ResourceNotFoundException(inner)
199            }
200            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::ServiceQuotaExceededException(inner) => {
201                Error::ServiceQuotaExceededException(inner)
202            }
203            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::ThrottlingException(inner) => {
204                Error::ThrottlingException(inner)
205            }
206            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::ValidationException(inner) => {
207                Error::ValidationException(inner)
208            }
209            crate::operation::create_outbound_external_link::CreateOutboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
210        }
211    }
212}
213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_requester_gateway::CreateRequesterGatewayError, R>> for Error
214where
215    R: Send + Sync + std::fmt::Debug + 'static,
216{
217    fn from(
218        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_requester_gateway::CreateRequesterGatewayError, R>,
219    ) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::create_requester_gateway::CreateRequesterGatewayError> for Error {
230    fn from(err: crate::operation::create_requester_gateway::CreateRequesterGatewayError) -> Self {
231        match err {
232            crate::operation::create_requester_gateway::CreateRequesterGatewayError::AccessDeniedException(inner) => {
233                Error::AccessDeniedException(inner)
234            }
235            crate::operation::create_requester_gateway::CreateRequesterGatewayError::InternalServerException(inner) => {
236                Error::InternalServerException(inner)
237            }
238            crate::operation::create_requester_gateway::CreateRequesterGatewayError::ResourceNotFoundException(inner) => {
239                Error::ResourceNotFoundException(inner)
240            }
241            crate::operation::create_requester_gateway::CreateRequesterGatewayError::ServiceQuotaExceededException(inner) => {
242                Error::ServiceQuotaExceededException(inner)
243            }
244            crate::operation::create_requester_gateway::CreateRequesterGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
245            crate::operation::create_requester_gateway::CreateRequesterGatewayError::ValidationException(inner) => Error::ValidationException(inner),
246            crate::operation::create_requester_gateway::CreateRequesterGatewayError::Unhandled(inner) => Error::Unhandled(inner),
247        }
248    }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_responder_gateway::CreateResponderGatewayError, R>> for Error
251where
252    R: Send + Sync + std::fmt::Debug + 'static,
253{
254    fn from(
255        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_responder_gateway::CreateResponderGatewayError, R>,
256    ) -> Self {
257        match err {
258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
261                source: err.into(),
262            }),
263        }
264    }
265}
266impl From<crate::operation::create_responder_gateway::CreateResponderGatewayError> for Error {
267    fn from(err: crate::operation::create_responder_gateway::CreateResponderGatewayError) -> Self {
268        match err {
269            crate::operation::create_responder_gateway::CreateResponderGatewayError::AccessDeniedException(inner) => {
270                Error::AccessDeniedException(inner)
271            }
272            crate::operation::create_responder_gateway::CreateResponderGatewayError::InternalServerException(inner) => {
273                Error::InternalServerException(inner)
274            }
275            crate::operation::create_responder_gateway::CreateResponderGatewayError::ResourceNotFoundException(inner) => {
276                Error::ResourceNotFoundException(inner)
277            }
278            crate::operation::create_responder_gateway::CreateResponderGatewayError::ServiceQuotaExceededException(inner) => {
279                Error::ServiceQuotaExceededException(inner)
280            }
281            crate::operation::create_responder_gateway::CreateResponderGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
282            crate::operation::create_responder_gateway::CreateResponderGatewayError::ValidationException(inner) => Error::ValidationException(inner),
283            crate::operation::create_responder_gateway::CreateResponderGatewayError::Unhandled(inner) => Error::Unhandled(inner),
284        }
285    }
286}
287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError, R>>
288    for Error
289where
290    R: Send + Sync + std::fmt::Debug + 'static,
291{
292    fn from(
293        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError, R>,
294    ) -> Self {
295        match err {
296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299                source: err.into(),
300            }),
301        }
302    }
303}
304impl From<crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError> for Error {
305    fn from(err: crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError) -> Self {
306        match err {
307            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::AccessDeniedException(inner) => {
308                Error::AccessDeniedException(inner)
309            }
310            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::ConflictException(inner) => {
311                Error::ConflictException(inner)
312            }
313            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::InternalServerException(inner) => {
314                Error::InternalServerException(inner)
315            }
316            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::ResourceNotFoundException(inner) => {
317                Error::ResourceNotFoundException(inner)
318            }
319            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::ThrottlingException(inner) => {
320                Error::ThrottlingException(inner)
321            }
322            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::ValidationException(inner) => {
323                Error::ValidationException(inner)
324            }
325            crate::operation::delete_inbound_external_link::DeleteInboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>> for Error
330where
331    R: Send + Sync + std::fmt::Debug + 'static,
332{
333    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>) -> Self {
334        match err {
335            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
336            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
337                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
338                source: err.into(),
339            }),
340        }
341    }
342}
343impl From<crate::operation::delete_link::DeleteLinkError> for Error {
344    fn from(err: crate::operation::delete_link::DeleteLinkError) -> Self {
345        match err {
346            crate::operation::delete_link::DeleteLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
347            crate::operation::delete_link::DeleteLinkError::ConflictException(inner) => Error::ConflictException(inner),
348            crate::operation::delete_link::DeleteLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
349            crate::operation::delete_link::DeleteLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
350            crate::operation::delete_link::DeleteLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
351            crate::operation::delete_link::DeleteLinkError::ValidationException(inner) => Error::ValidationException(inner),
352            crate::operation::delete_link::DeleteLinkError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError, R>>
357    for Error
358where
359    R: Send + Sync + std::fmt::Debug + 'static,
360{
361    fn from(
362        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError, R>,
363    ) -> Self {
364        match err {
365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368                source: err.into(),
369            }),
370        }
371    }
372}
373impl From<crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError> for Error {
374    fn from(err: crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError) -> Self {
375        match err {
376            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::AccessDeniedException(inner) => {
377                Error::AccessDeniedException(inner)
378            }
379            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::ConflictException(inner) => {
380                Error::ConflictException(inner)
381            }
382            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::InternalServerException(inner) => {
383                Error::InternalServerException(inner)
384            }
385            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::ResourceNotFoundException(inner) => {
386                Error::ResourceNotFoundException(inner)
387            }
388            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::ThrottlingException(inner) => {
389                Error::ThrottlingException(inner)
390            }
391            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::ValidationException(inner) => {
392                Error::ValidationException(inner)
393            }
394            crate::operation::delete_outbound_external_link::DeleteOutboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
395        }
396    }
397}
398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_requester_gateway::DeleteRequesterGatewayError, R>> for Error
399where
400    R: Send + Sync + std::fmt::Debug + 'static,
401{
402    fn from(
403        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_requester_gateway::DeleteRequesterGatewayError, R>,
404    ) -> Self {
405        match err {
406            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409                source: err.into(),
410            }),
411        }
412    }
413}
414impl From<crate::operation::delete_requester_gateway::DeleteRequesterGatewayError> for Error {
415    fn from(err: crate::operation::delete_requester_gateway::DeleteRequesterGatewayError) -> Self {
416        match err {
417            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::AccessDeniedException(inner) => {
418                Error::AccessDeniedException(inner)
419            }
420            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::InternalServerException(inner) => {
421                Error::InternalServerException(inner)
422            }
423            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::ResourceNotFoundException(inner) => {
424                Error::ResourceNotFoundException(inner)
425            }
426            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
427            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::ValidationException(inner) => Error::ValidationException(inner),
428            crate::operation::delete_requester_gateway::DeleteRequesterGatewayError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_responder_gateway::DeleteResponderGatewayError, R>> for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(
437        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_responder_gateway::DeleteResponderGatewayError, R>,
438    ) -> Self {
439        match err {
440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443                source: err.into(),
444            }),
445        }
446    }
447}
448impl From<crate::operation::delete_responder_gateway::DeleteResponderGatewayError> for Error {
449    fn from(err: crate::operation::delete_responder_gateway::DeleteResponderGatewayError) -> Self {
450        match err {
451            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::AccessDeniedException(inner) => {
452                Error::AccessDeniedException(inner)
453            }
454            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::InternalServerException(inner) => {
455                Error::InternalServerException(inner)
456            }
457            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::ResourceNotFoundException(inner) => {
458                Error::ResourceNotFoundException(inner)
459            }
460            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
461            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::ValidationException(inner) => Error::ValidationException(inner),
462            crate::operation::delete_responder_gateway::DeleteResponderGatewayError::Unhandled(inner) => Error::Unhandled(inner),
463        }
464    }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_inbound_external_link::GetInboundExternalLinkError, R>>
467    for Error
468where
469    R: Send + Sync + std::fmt::Debug + 'static,
470{
471    fn from(
472        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_inbound_external_link::GetInboundExternalLinkError, R>,
473    ) -> Self {
474        match err {
475            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
476            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
477                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
478                source: err.into(),
479            }),
480        }
481    }
482}
483impl From<crate::operation::get_inbound_external_link::GetInboundExternalLinkError> for Error {
484    fn from(err: crate::operation::get_inbound_external_link::GetInboundExternalLinkError) -> Self {
485        match err {
486            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::AccessDeniedException(inner) => {
487                Error::AccessDeniedException(inner)
488            }
489            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::InternalServerException(inner) => {
490                Error::InternalServerException(inner)
491            }
492            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::ResourceNotFoundException(inner) => {
493                Error::ResourceNotFoundException(inner)
494            }
495            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
496            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::ValidationException(inner) => Error::ValidationException(inner),
497            crate::operation::get_inbound_external_link::GetInboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
498        }
499    }
500}
501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link::GetLinkError, R>> for Error
502where
503    R: Send + Sync + std::fmt::Debug + 'static,
504{
505    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link::GetLinkError, R>) -> Self {
506        match err {
507            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
508            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
509                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
510                source: err.into(),
511            }),
512        }
513    }
514}
515impl From<crate::operation::get_link::GetLinkError> for Error {
516    fn from(err: crate::operation::get_link::GetLinkError) -> Self {
517        match err {
518            crate::operation::get_link::GetLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
519            crate::operation::get_link::GetLinkError::ConflictException(inner) => Error::ConflictException(inner),
520            crate::operation::get_link::GetLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
521            crate::operation::get_link::GetLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
522            crate::operation::get_link::GetLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
523            crate::operation::get_link::GetLinkError::ValidationException(inner) => Error::ValidationException(inner),
524            crate::operation::get_link::GetLinkError::Unhandled(inner) => Error::Unhandled(inner),
525        }
526    }
527}
528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_outbound_external_link::GetOutboundExternalLinkError, R>>
529    for Error
530where
531    R: Send + Sync + std::fmt::Debug + 'static,
532{
533    fn from(
534        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_outbound_external_link::GetOutboundExternalLinkError, R>,
535    ) -> 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::get_outbound_external_link::GetOutboundExternalLinkError> for Error {
546    fn from(err: crate::operation::get_outbound_external_link::GetOutboundExternalLinkError) -> Self {
547        match err {
548            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::AccessDeniedException(inner) => {
549                Error::AccessDeniedException(inner)
550            }
551            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::InternalServerException(inner) => {
552                Error::InternalServerException(inner)
553            }
554            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::ResourceNotFoundException(inner) => {
555                Error::ResourceNotFoundException(inner)
556            }
557            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::ThrottlingException(inner) => {
558                Error::ThrottlingException(inner)
559            }
560            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::ValidationException(inner) => {
561                Error::ValidationException(inner)
562            }
563            crate::operation::get_outbound_external_link::GetOutboundExternalLinkError::Unhandled(inner) => Error::Unhandled(inner),
564        }
565    }
566}
567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_requester_gateway::GetRequesterGatewayError, R>> for Error
568where
569    R: Send + Sync + std::fmt::Debug + 'static,
570{
571    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_requester_gateway::GetRequesterGatewayError, R>) -> Self {
572        match err {
573            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
574            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
575                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
576                source: err.into(),
577            }),
578        }
579    }
580}
581impl From<crate::operation::get_requester_gateway::GetRequesterGatewayError> for Error {
582    fn from(err: crate::operation::get_requester_gateway::GetRequesterGatewayError) -> Self {
583        match err {
584            crate::operation::get_requester_gateway::GetRequesterGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
585            crate::operation::get_requester_gateway::GetRequesterGatewayError::InternalServerException(inner) => {
586                Error::InternalServerException(inner)
587            }
588            crate::operation::get_requester_gateway::GetRequesterGatewayError::ResourceNotFoundException(inner) => {
589                Error::ResourceNotFoundException(inner)
590            }
591            crate::operation::get_requester_gateway::GetRequesterGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
592            crate::operation::get_requester_gateway::GetRequesterGatewayError::ValidationException(inner) => Error::ValidationException(inner),
593            crate::operation::get_requester_gateway::GetRequesterGatewayError::Unhandled(inner) => Error::Unhandled(inner),
594        }
595    }
596}
597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_responder_gateway::GetResponderGatewayError, R>> for Error
598where
599    R: Send + Sync + std::fmt::Debug + 'static,
600{
601    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_responder_gateway::GetResponderGatewayError, R>) -> Self {
602        match err {
603            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606                source: err.into(),
607            }),
608        }
609    }
610}
611impl From<crate::operation::get_responder_gateway::GetResponderGatewayError> for Error {
612    fn from(err: crate::operation::get_responder_gateway::GetResponderGatewayError) -> Self {
613        match err {
614            crate::operation::get_responder_gateway::GetResponderGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
615            crate::operation::get_responder_gateway::GetResponderGatewayError::InternalServerException(inner) => {
616                Error::InternalServerException(inner)
617            }
618            crate::operation::get_responder_gateway::GetResponderGatewayError::ResourceNotFoundException(inner) => {
619                Error::ResourceNotFoundException(inner)
620            }
621            crate::operation::get_responder_gateway::GetResponderGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
622            crate::operation::get_responder_gateway::GetResponderGatewayError::ValidationException(inner) => Error::ValidationException(inner),
623            crate::operation::get_responder_gateway::GetResponderGatewayError::Unhandled(inner) => Error::Unhandled(inner),
624        }
625    }
626}
627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_links::ListLinksError, R>> for Error
628where
629    R: Send + Sync + std::fmt::Debug + 'static,
630{
631    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_links::ListLinksError, R>) -> Self {
632        match err {
633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
636                source: err.into(),
637            }),
638        }
639    }
640}
641impl From<crate::operation::list_links::ListLinksError> for Error {
642    fn from(err: crate::operation::list_links::ListLinksError) -> Self {
643        match err {
644            crate::operation::list_links::ListLinksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
645            crate::operation::list_links::ListLinksError::InternalServerException(inner) => Error::InternalServerException(inner),
646            crate::operation::list_links::ListLinksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
647            crate::operation::list_links::ListLinksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
648            crate::operation::list_links::ListLinksError::ValidationException(inner) => Error::ValidationException(inner),
649            crate::operation::list_links::ListLinksError::Unhandled(inner) => Error::Unhandled(inner),
650        }
651    }
652}
653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_requester_gateways::ListRequesterGatewaysError, R>> for Error
654where
655    R: Send + Sync + std::fmt::Debug + 'static,
656{
657    fn from(
658        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_requester_gateways::ListRequesterGatewaysError, R>,
659    ) -> Self {
660        match err {
661            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
662            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
663                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
664                source: err.into(),
665            }),
666        }
667    }
668}
669impl From<crate::operation::list_requester_gateways::ListRequesterGatewaysError> for Error {
670    fn from(err: crate::operation::list_requester_gateways::ListRequesterGatewaysError) -> Self {
671        match err {
672            crate::operation::list_requester_gateways::ListRequesterGatewaysError::InternalServerException(inner) => {
673                Error::InternalServerException(inner)
674            }
675            crate::operation::list_requester_gateways::ListRequesterGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
676            crate::operation::list_requester_gateways::ListRequesterGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
677        }
678    }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_responder_gateways::ListResponderGatewaysError, R>> for Error
681where
682    R: Send + Sync + std::fmt::Debug + 'static,
683{
684    fn from(
685        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_responder_gateways::ListResponderGatewaysError, R>,
686    ) -> Self {
687        match err {
688            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
689            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
690                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
691                source: err.into(),
692            }),
693        }
694    }
695}
696impl From<crate::operation::list_responder_gateways::ListResponderGatewaysError> for Error {
697    fn from(err: crate::operation::list_responder_gateways::ListResponderGatewaysError) -> Self {
698        match err {
699            crate::operation::list_responder_gateways::ListResponderGatewaysError::InternalServerException(inner) => {
700                Error::InternalServerException(inner)
701            }
702            crate::operation::list_responder_gateways::ListResponderGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
703            crate::operation::list_responder_gateways::ListResponderGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
722    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
723        match err {
724            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
725            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
726                Error::InternalServerException(inner)
727            }
728            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
729                Error::ResourceNotFoundException(inner)
730            }
731            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
732            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
733            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
734        }
735    }
736}
737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_link::RejectLinkError, R>> for Error
738where
739    R: Send + Sync + std::fmt::Debug + 'static,
740{
741    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_link::RejectLinkError, R>) -> Self {
742        match err {
743            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
744            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
745                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
746                source: err.into(),
747            }),
748        }
749    }
750}
751impl From<crate::operation::reject_link::RejectLinkError> for Error {
752    fn from(err: crate::operation::reject_link::RejectLinkError) -> Self {
753        match err {
754            crate::operation::reject_link::RejectLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
755            crate::operation::reject_link::RejectLinkError::ConflictException(inner) => Error::ConflictException(inner),
756            crate::operation::reject_link::RejectLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
757            crate::operation::reject_link::RejectLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
758            crate::operation::reject_link::RejectLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
759            crate::operation::reject_link::RejectLinkError::ValidationException(inner) => Error::ValidationException(inner),
760            crate::operation::reject_link::RejectLinkError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
769        match err {
770            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
771            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
772                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
773                source: err.into(),
774            }),
775        }
776    }
777}
778impl From<crate::operation::tag_resource::TagResourceError> for Error {
779    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
780        match err {
781            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
782            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
783            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
784            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
785            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
786            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
787        }
788    }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
791where
792    R: Send + Sync + std::fmt::Debug + 'static,
793{
794    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::untag_resource::UntagResourceError> for Error {
805    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
806        match err {
807            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
808            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
809            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
810            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
811            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
812            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
813        }
814    }
815}
816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>> for Error
817where
818    R: Send + Sync + std::fmt::Debug + 'static,
819{
820    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>) -> Self {
821        match err {
822            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
823            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
824                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
825                source: err.into(),
826            }),
827        }
828    }
829}
830impl From<crate::operation::update_link::UpdateLinkError> for Error {
831    fn from(err: crate::operation::update_link::UpdateLinkError) -> Self {
832        match err {
833            crate::operation::update_link::UpdateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
834            crate::operation::update_link::UpdateLinkError::ConflictException(inner) => Error::ConflictException(inner),
835            crate::operation::update_link::UpdateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
836            crate::operation::update_link::UpdateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
837            crate::operation::update_link::UpdateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
838            crate::operation::update_link::UpdateLinkError::ValidationException(inner) => Error::ValidationException(inner),
839            crate::operation::update_link::UpdateLinkError::Unhandled(inner) => Error::Unhandled(inner),
840        }
841    }
842}
843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link_module_flow::UpdateLinkModuleFlowError, R>> for Error
844where
845    R: Send + Sync + std::fmt::Debug + 'static,
846{
847    fn from(
848        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link_module_flow::UpdateLinkModuleFlowError, R>,
849    ) -> Self {
850        match err {
851            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854                source: err.into(),
855            }),
856        }
857    }
858}
859impl From<crate::operation::update_link_module_flow::UpdateLinkModuleFlowError> for Error {
860    fn from(err: crate::operation::update_link_module_flow::UpdateLinkModuleFlowError) -> Self {
861        match err {
862            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
863            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::ConflictException(inner) => Error::ConflictException(inner),
864            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::InternalServerException(inner) => {
865                Error::InternalServerException(inner)
866            }
867            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::ResourceNotFoundException(inner) => {
868                Error::ResourceNotFoundException(inner)
869            }
870            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::ServiceQuotaExceededException(inner) => {
871                Error::ServiceQuotaExceededException(inner)
872            }
873            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
874            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::ValidationException(inner) => Error::ValidationException(inner),
875            crate::operation::update_link_module_flow::UpdateLinkModuleFlowError::Unhandled(inner) => Error::Unhandled(inner),
876        }
877    }
878}
879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_requester_gateway::UpdateRequesterGatewayError, R>> for Error
880where
881    R: Send + Sync + std::fmt::Debug + 'static,
882{
883    fn from(
884        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_requester_gateway::UpdateRequesterGatewayError, R>,
885    ) -> Self {
886        match err {
887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
890                source: err.into(),
891            }),
892        }
893    }
894}
895impl From<crate::operation::update_requester_gateway::UpdateRequesterGatewayError> for Error {
896    fn from(err: crate::operation::update_requester_gateway::UpdateRequesterGatewayError) -> Self {
897        match err {
898            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::AccessDeniedException(inner) => {
899                Error::AccessDeniedException(inner)
900            }
901            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::ConflictException(inner) => Error::ConflictException(inner),
902            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::InternalServerException(inner) => {
903                Error::InternalServerException(inner)
904            }
905            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::ResourceNotFoundException(inner) => {
906                Error::ResourceNotFoundException(inner)
907            }
908            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
909            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::ValidationException(inner) => Error::ValidationException(inner),
910            crate::operation::update_requester_gateway::UpdateRequesterGatewayError::Unhandled(inner) => Error::Unhandled(inner),
911        }
912    }
913}
914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_responder_gateway::UpdateResponderGatewayError, R>> for Error
915where
916    R: Send + Sync + std::fmt::Debug + 'static,
917{
918    fn from(
919        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_responder_gateway::UpdateResponderGatewayError, R>,
920    ) -> Self {
921        match err {
922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
925                source: err.into(),
926            }),
927        }
928    }
929}
930impl From<crate::operation::update_responder_gateway::UpdateResponderGatewayError> for Error {
931    fn from(err: crate::operation::update_responder_gateway::UpdateResponderGatewayError) -> Self {
932        match err {
933            crate::operation::update_responder_gateway::UpdateResponderGatewayError::AccessDeniedException(inner) => {
934                Error::AccessDeniedException(inner)
935            }
936            crate::operation::update_responder_gateway::UpdateResponderGatewayError::ConflictException(inner) => Error::ConflictException(inner),
937            crate::operation::update_responder_gateway::UpdateResponderGatewayError::InternalServerException(inner) => {
938                Error::InternalServerException(inner)
939            }
940            crate::operation::update_responder_gateway::UpdateResponderGatewayError::ResourceNotFoundException(inner) => {
941                Error::ResourceNotFoundException(inner)
942            }
943            crate::operation::update_responder_gateway::UpdateResponderGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
944            crate::operation::update_responder_gateway::UpdateResponderGatewayError::ValidationException(inner) => Error::ValidationException(inner),
945            crate::operation::update_responder_gateway::UpdateResponderGatewayError::Unhandled(inner) => Error::Unhandled(inner),
946        }
947    }
948}
949impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
950where
951    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
952    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
953{
954    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
955        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956            meta: ::std::default::Default::default(),
957            source: err.into(),
958        })
959    }
960}
961impl ::std::error::Error for Error {
962    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
963        match self {
964            Error::AccessDeniedException(inner) => inner.source(),
965            Error::ConflictException(inner) => inner.source(),
966            Error::InternalServerException(inner) => inner.source(),
967            Error::ResourceNotFoundException(inner) => inner.source(),
968            Error::ServiceQuotaExceededException(inner) => inner.source(),
969            Error::ThrottlingException(inner) => inner.source(),
970            Error::ValidationException(inner) => inner.source(),
971            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
972        }
973    }
974}
975impl ::aws_types::request_id::RequestId for Error {
976    fn request_id(&self) -> Option<&str> {
977        match self {
978            Self::AccessDeniedException(e) => e.request_id(),
979            Self::ConflictException(e) => e.request_id(),
980            Self::InternalServerException(e) => e.request_id(),
981            Self::ResourceNotFoundException(e) => e.request_id(),
982            Self::ServiceQuotaExceededException(e) => e.request_id(),
983            Self::ThrottlingException(e) => e.request_id(),
984            Self::ValidationException(e) => e.request_id(),
985            Self::Unhandled(e) => e.meta.request_id(),
986        }
987    }
988}