aws_sdk_vpclattice/
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 user does not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred while processing the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request references a resource that does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The limit on the number of requests per second was exceeded.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input does not satisfy the constraints specified by an Amazon Web Services 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::batch_update_rule::BatchUpdateRuleError, 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::batch_update_rule::BatchUpdateRuleError, 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::batch_update_rule::BatchUpdateRuleError> for Error {
86    fn from(err: crate::operation::batch_update_rule::BatchUpdateRuleError) -> Self {
87        match err {
88            crate::operation::batch_update_rule::BatchUpdateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::batch_update_rule::BatchUpdateRuleError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::batch_update_rule::BatchUpdateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::batch_update_rule::BatchUpdateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::batch_update_rule::BatchUpdateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93            crate::operation::batch_update_rule::BatchUpdateRuleError::ValidationException(inner) => Error::ValidationException(inner),
94            crate::operation::batch_update_rule::BatchUpdateRuleError::Unhandled(inner) => Error::Unhandled(inner),
95        }
96    }
97}
98impl<R>
99    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError, R>>
100    for Error
101where
102    R: Send + Sync + std::fmt::Debug + 'static,
103{
104    fn from(
105        err: ::aws_smithy_runtime_api::client::result::SdkError<
106            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError,
107            R,
108        >,
109    ) -> Self {
110        match err {
111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
114                source: err.into(),
115            }),
116        }
117    }
118}
119impl From<crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError> for Error {
120    fn from(err: crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError) -> Self {
121        match err {
122            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::AccessDeniedException(inner) => {
123                Error::AccessDeniedException(inner)
124            }
125            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::ConflictException(inner) => {
126                Error::ConflictException(inner)
127            }
128            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::InternalServerException(inner) => {
129                Error::InternalServerException(inner)
130            }
131            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::ResourceNotFoundException(inner) => {
132                Error::ResourceNotFoundException(inner)
133            }
134            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::ThrottlingException(inner) => {
135                Error::ThrottlingException(inner)
136            }
137            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::ValidationException(inner) => {
138                Error::ValidationException(inner)
139            }
140            crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
141        }
142    }
143}
144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>> for Error
145where
146    R: Send + Sync + std::fmt::Debug + 'static,
147{
148    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>) -> Self {
149        match err {
150            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
151            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
152                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
153                source: err.into(),
154            }),
155        }
156    }
157}
158impl From<crate::operation::create_listener::CreateListenerError> for Error {
159    fn from(err: crate::operation::create_listener::CreateListenerError) -> Self {
160        match err {
161            crate::operation::create_listener::CreateListenerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
162            crate::operation::create_listener::CreateListenerError::ConflictException(inner) => Error::ConflictException(inner),
163            crate::operation::create_listener::CreateListenerError::InternalServerException(inner) => Error::InternalServerException(inner),
164            crate::operation::create_listener::CreateListenerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
165            crate::operation::create_listener::CreateListenerError::ServiceQuotaExceededException(inner) => {
166                Error::ServiceQuotaExceededException(inner)
167            }
168            crate::operation::create_listener::CreateListenerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
169            crate::operation::create_listener::CreateListenerError::ValidationException(inner) => Error::ValidationException(inner),
170            crate::operation::create_listener::CreateListenerError::Unhandled(inner) => Error::Unhandled(inner),
171        }
172    }
173}
174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_configuration::CreateResourceConfigurationError, R>>
175    for Error
176where
177    R: Send + Sync + std::fmt::Debug + 'static,
178{
179    fn from(
180        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_configuration::CreateResourceConfigurationError, R>,
181    ) -> Self {
182        match err {
183            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
184            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
185                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
186                source: err.into(),
187            }),
188        }
189    }
190}
191impl From<crate::operation::create_resource_configuration::CreateResourceConfigurationError> for Error {
192    fn from(err: crate::operation::create_resource_configuration::CreateResourceConfigurationError) -> Self {
193        match err {
194            crate::operation::create_resource_configuration::CreateResourceConfigurationError::AccessDeniedException(inner) => {
195                Error::AccessDeniedException(inner)
196            }
197            crate::operation::create_resource_configuration::CreateResourceConfigurationError::ConflictException(inner) => {
198                Error::ConflictException(inner)
199            }
200            crate::operation::create_resource_configuration::CreateResourceConfigurationError::InternalServerException(inner) => {
201                Error::InternalServerException(inner)
202            }
203            crate::operation::create_resource_configuration::CreateResourceConfigurationError::ResourceNotFoundException(inner) => {
204                Error::ResourceNotFoundException(inner)
205            }
206            crate::operation::create_resource_configuration::CreateResourceConfigurationError::ServiceQuotaExceededException(inner) => {
207                Error::ServiceQuotaExceededException(inner)
208            }
209            crate::operation::create_resource_configuration::CreateResourceConfigurationError::ThrottlingException(inner) => {
210                Error::ThrottlingException(inner)
211            }
212            crate::operation::create_resource_configuration::CreateResourceConfigurationError::ValidationException(inner) => {
213                Error::ValidationException(inner)
214            }
215            crate::operation::create_resource_configuration::CreateResourceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
216        }
217    }
218}
219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_gateway::CreateResourceGatewayError, R>> for Error
220where
221    R: Send + Sync + std::fmt::Debug + 'static,
222{
223    fn from(
224        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_gateway::CreateResourceGatewayError, R>,
225    ) -> Self {
226        match err {
227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230                source: err.into(),
231            }),
232        }
233    }
234}
235impl From<crate::operation::create_resource_gateway::CreateResourceGatewayError> for Error {
236    fn from(err: crate::operation::create_resource_gateway::CreateResourceGatewayError) -> Self {
237        match err {
238            crate::operation::create_resource_gateway::CreateResourceGatewayError::AccessDeniedException(inner) => {
239                Error::AccessDeniedException(inner)
240            }
241            crate::operation::create_resource_gateway::CreateResourceGatewayError::ConflictException(inner) => Error::ConflictException(inner),
242            crate::operation::create_resource_gateway::CreateResourceGatewayError::InternalServerException(inner) => {
243                Error::InternalServerException(inner)
244            }
245            crate::operation::create_resource_gateway::CreateResourceGatewayError::ResourceNotFoundException(inner) => {
246                Error::ResourceNotFoundException(inner)
247            }
248            crate::operation::create_resource_gateway::CreateResourceGatewayError::ServiceQuotaExceededException(inner) => {
249                Error::ServiceQuotaExceededException(inner)
250            }
251            crate::operation::create_resource_gateway::CreateResourceGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
252            crate::operation::create_resource_gateway::CreateResourceGatewayError::ValidationException(inner) => Error::ValidationException(inner),
253            crate::operation::create_resource_gateway::CreateResourceGatewayError::Unhandled(inner) => Error::Unhandled(inner),
254        }
255    }
256}
257impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
258where
259    R: Send + Sync + std::fmt::Debug + 'static,
260{
261    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
262        match err {
263            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
264            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
265                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
266                source: err.into(),
267            }),
268        }
269    }
270}
271impl From<crate::operation::create_rule::CreateRuleError> for Error {
272    fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
273        match err {
274            crate::operation::create_rule::CreateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
275            crate::operation::create_rule::CreateRuleError::ConflictException(inner) => Error::ConflictException(inner),
276            crate::operation::create_rule::CreateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
277            crate::operation::create_rule::CreateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
278            crate::operation::create_rule::CreateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
279            crate::operation::create_rule::CreateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
280            crate::operation::create_rule::CreateRuleError::ValidationException(inner) => Error::ValidationException(inner),
281            crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
282        }
283    }
284}
285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>> for Error
286where
287    R: Send + Sync + std::fmt::Debug + 'static,
288{
289    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>) -> Self {
290        match err {
291            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
292            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
293                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
294                source: err.into(),
295            }),
296        }
297    }
298}
299impl From<crate::operation::create_service::CreateServiceError> for Error {
300    fn from(err: crate::operation::create_service::CreateServiceError) -> Self {
301        match err {
302            crate::operation::create_service::CreateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
303            crate::operation::create_service::CreateServiceError::ConflictException(inner) => Error::ConflictException(inner),
304            crate::operation::create_service::CreateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
305            crate::operation::create_service::CreateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
306            crate::operation::create_service::CreateServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
307            crate::operation::create_service::CreateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308            crate::operation::create_service::CreateServiceError::ValidationException(inner) => Error::ValidationException(inner),
309            crate::operation::create_service::CreateServiceError::Unhandled(inner) => Error::Unhandled(inner),
310        }
311    }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_network::CreateServiceNetworkError, R>> for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_network::CreateServiceNetworkError, R>) -> Self {
318        match err {
319            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
320            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
321                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
322                source: err.into(),
323            }),
324        }
325    }
326}
327impl From<crate::operation::create_service_network::CreateServiceNetworkError> for Error {
328    fn from(err: crate::operation::create_service_network::CreateServiceNetworkError) -> Self {
329        match err {
330            crate::operation::create_service_network::CreateServiceNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
331            crate::operation::create_service_network::CreateServiceNetworkError::ConflictException(inner) => Error::ConflictException(inner),
332            crate::operation::create_service_network::CreateServiceNetworkError::InternalServerException(inner) => {
333                Error::InternalServerException(inner)
334            }
335            crate::operation::create_service_network::CreateServiceNetworkError::ResourceNotFoundException(inner) => {
336                Error::ResourceNotFoundException(inner)
337            }
338            crate::operation::create_service_network::CreateServiceNetworkError::ServiceQuotaExceededException(inner) => {
339                Error::ServiceQuotaExceededException(inner)
340            }
341            crate::operation::create_service_network::CreateServiceNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
342            crate::operation::create_service_network::CreateServiceNetworkError::ValidationException(inner) => Error::ValidationException(inner),
343            crate::operation::create_service_network::CreateServiceNetworkError::Unhandled(inner) => Error::Unhandled(inner),
344        }
345    }
346}
347impl<R>
348    From<
349        ::aws_smithy_runtime_api::client::result::SdkError<
350            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError,
351            R,
352        >,
353    > for Error
354where
355    R: Send + Sync + std::fmt::Debug + 'static,
356{
357    fn from(
358        err: ::aws_smithy_runtime_api::client::result::SdkError<
359            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError,
360            R,
361        >,
362    ) -> Self {
363        match err {
364            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
365            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
366                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
367                source: err.into(),
368            }),
369        }
370    }
371}
372impl From<crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError> for Error {
373    fn from(err: crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError) -> Self {
374        match err {
375            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
376            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::ConflictException(inner) => Error::ConflictException(inner),
377            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
378            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
379            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
380            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::ValidationException(inner) => Error::ValidationException(inner),
382            crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError::Unhandled(inner) => Error::Unhandled(inner),
383        }
384    }
385}
386impl<R>
387    From<
388        ::aws_smithy_runtime_api::client::result::SdkError<
389            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError,
390            R,
391        >,
392    > for Error
393where
394    R: Send + Sync + std::fmt::Debug + 'static,
395{
396    fn from(
397        err: ::aws_smithy_runtime_api::client::result::SdkError<
398            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError,
399            R,
400        >,
401    ) -> Self {
402        match err {
403            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
404            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
405                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
406                source: err.into(),
407            }),
408        }
409    }
410}
411impl From<crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError> for Error {
412    fn from(err: crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError) -> Self {
413        match err {
414            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
415            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::ConflictException(inner) => Error::ConflictException(inner),
416            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
417            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
418            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
419            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
420            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::ValidationException(inner) => Error::ValidationException(inner),
421            crate::operation::create_service_network_service_association::CreateServiceNetworkServiceAssociationError::Unhandled(inner) => Error::Unhandled(inner),
422        }
423    }
424}
425impl<R>
426    From<
427        ::aws_smithy_runtime_api::client::result::SdkError<
428            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError,
429            R,
430        >,
431    > for Error
432where
433    R: Send + Sync + std::fmt::Debug + 'static,
434{
435    fn from(
436        err: ::aws_smithy_runtime_api::client::result::SdkError<
437            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError,
438            R,
439        >,
440    ) -> Self {
441        match err {
442            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
443            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
444                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
445                source: err.into(),
446            }),
447        }
448    }
449}
450impl From<crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError> for Error {
451    fn from(err: crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError) -> Self {
452        match err {
453            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::AccessDeniedException(inner) => {
454                Error::AccessDeniedException(inner)
455            }
456            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::ConflictException(inner) => {
457                Error::ConflictException(inner)
458            }
459            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::InternalServerException(inner) => {
460                Error::InternalServerException(inner)
461            }
462            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::ResourceNotFoundException(inner) => {
463                Error::ResourceNotFoundException(inner)
464            }
465            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::ServiceQuotaExceededException(
466                inner,
467            ) => Error::ServiceQuotaExceededException(inner),
468            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::ThrottlingException(inner) => {
469                Error::ThrottlingException(inner)
470            }
471            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::ValidationException(inner) => {
472                Error::ValidationException(inner)
473            }
474            crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError::Unhandled(inner) => {
475                Error::Unhandled(inner)
476            }
477        }
478    }
479}
480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>> for Error
481where
482    R: Send + Sync + std::fmt::Debug + 'static,
483{
484    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>) -> Self {
485        match err {
486            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
487            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
488                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
489                source: err.into(),
490            }),
491        }
492    }
493}
494impl From<crate::operation::create_target_group::CreateTargetGroupError> for Error {
495    fn from(err: crate::operation::create_target_group::CreateTargetGroupError) -> Self {
496        match err {
497            crate::operation::create_target_group::CreateTargetGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
498            crate::operation::create_target_group::CreateTargetGroupError::ConflictException(inner) => Error::ConflictException(inner),
499            crate::operation::create_target_group::CreateTargetGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
500            crate::operation::create_target_group::CreateTargetGroupError::ResourceNotFoundException(inner) => {
501                Error::ResourceNotFoundException(inner)
502            }
503            crate::operation::create_target_group::CreateTargetGroupError::ServiceQuotaExceededException(inner) => {
504                Error::ServiceQuotaExceededException(inner)
505            }
506            crate::operation::create_target_group::CreateTargetGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
507            crate::operation::create_target_group::CreateTargetGroupError::ValidationException(inner) => Error::ValidationException(inner),
508            crate::operation::create_target_group::CreateTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
509        }
510    }
511}
512impl<R>
513    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError, R>>
514    for Error
515where
516    R: Send + Sync + std::fmt::Debug + 'static,
517{
518    fn from(
519        err: ::aws_smithy_runtime_api::client::result::SdkError<
520            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError,
521            R,
522        >,
523    ) -> Self {
524        match err {
525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528                source: err.into(),
529            }),
530        }
531    }
532}
533impl From<crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError> for Error {
534    fn from(err: crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError) -> Self {
535        match err {
536            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::AccessDeniedException(inner) => {
537                Error::AccessDeniedException(inner)
538            }
539            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::InternalServerException(inner) => {
540                Error::InternalServerException(inner)
541            }
542            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::ResourceNotFoundException(inner) => {
543                Error::ResourceNotFoundException(inner)
544            }
545            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::ThrottlingException(inner) => {
546                Error::ThrottlingException(inner)
547            }
548            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::ValidationException(inner) => {
549                Error::ValidationException(inner)
550            }
551            crate::operation::delete_access_log_subscription::DeleteAccessLogSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_auth_policy::DeleteAuthPolicyError, R>> for Error
556where
557    R: Send + Sync + std::fmt::Debug + 'static,
558{
559    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_auth_policy::DeleteAuthPolicyError, R>) -> Self {
560        match err {
561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
564                source: err.into(),
565            }),
566        }
567    }
568}
569impl From<crate::operation::delete_auth_policy::DeleteAuthPolicyError> for Error {
570    fn from(err: crate::operation::delete_auth_policy::DeleteAuthPolicyError) -> Self {
571        match err {
572            crate::operation::delete_auth_policy::DeleteAuthPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
573            crate::operation::delete_auth_policy::DeleteAuthPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
574            crate::operation::delete_auth_policy::DeleteAuthPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
575            crate::operation::delete_auth_policy::DeleteAuthPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
576            crate::operation::delete_auth_policy::DeleteAuthPolicyError::ValidationException(inner) => Error::ValidationException(inner),
577            crate::operation::delete_auth_policy::DeleteAuthPolicyError::Unhandled(inner) => Error::Unhandled(inner),
578        }
579    }
580}
581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>> for Error
582where
583    R: Send + Sync + std::fmt::Debug + 'static,
584{
585    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>) -> Self {
586        match err {
587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
590                source: err.into(),
591            }),
592        }
593    }
594}
595impl From<crate::operation::delete_listener::DeleteListenerError> for Error {
596    fn from(err: crate::operation::delete_listener::DeleteListenerError) -> Self {
597        match err {
598            crate::operation::delete_listener::DeleteListenerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
599            crate::operation::delete_listener::DeleteListenerError::ConflictException(inner) => Error::ConflictException(inner),
600            crate::operation::delete_listener::DeleteListenerError::InternalServerException(inner) => Error::InternalServerException(inner),
601            crate::operation::delete_listener::DeleteListenerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
602            crate::operation::delete_listener::DeleteListenerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
603            crate::operation::delete_listener::DeleteListenerError::ValidationException(inner) => Error::ValidationException(inner),
604            crate::operation::delete_listener::DeleteListenerError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_configuration::DeleteResourceConfigurationError, R>>
609    for Error
610where
611    R: Send + Sync + std::fmt::Debug + 'static,
612{
613    fn from(
614        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_configuration::DeleteResourceConfigurationError, R>,
615    ) -> Self {
616        match err {
617            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
618            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
619                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
620                source: err.into(),
621            }),
622        }
623    }
624}
625impl From<crate::operation::delete_resource_configuration::DeleteResourceConfigurationError> for Error {
626    fn from(err: crate::operation::delete_resource_configuration::DeleteResourceConfigurationError) -> Self {
627        match err {
628            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::AccessDeniedException(inner) => {
629                Error::AccessDeniedException(inner)
630            }
631            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::ConflictException(inner) => {
632                Error::ConflictException(inner)
633            }
634            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::InternalServerException(inner) => {
635                Error::InternalServerException(inner)
636            }
637            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::ResourceNotFoundException(inner) => {
638                Error::ResourceNotFoundException(inner)
639            }
640            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::ThrottlingException(inner) => {
641                Error::ThrottlingException(inner)
642            }
643            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::ValidationException(inner) => {
644                Error::ValidationException(inner)
645            }
646            crate::operation::delete_resource_configuration::DeleteResourceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
647        }
648    }
649}
650impl<R>
651    From<
652        ::aws_smithy_runtime_api::client::result::SdkError<
653            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError,
654            R,
655        >,
656    > for Error
657where
658    R: Send + Sync + std::fmt::Debug + 'static,
659{
660    fn from(
661        err: ::aws_smithy_runtime_api::client::result::SdkError<
662            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError,
663            R,
664        >,
665    ) -> Self {
666        match err {
667            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
668            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
669                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
670                source: err.into(),
671            }),
672        }
673    }
674}
675impl From<crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError> for Error {
676    fn from(err: crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError) -> Self {
677        match err {
678            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::AccessDeniedException(inner) => {
679                Error::AccessDeniedException(inner)
680            }
681            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::InternalServerException(inner) => {
682                Error::InternalServerException(inner)
683            }
684            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::ResourceNotFoundException(inner) => {
685                Error::ResourceNotFoundException(inner)
686            }
687            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::ThrottlingException(inner) => {
688                Error::ThrottlingException(inner)
689            }
690            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::ValidationException(inner) => {
691                Error::ValidationException(inner)
692            }
693            crate::operation::delete_resource_endpoint_association::DeleteResourceEndpointAssociationError::Unhandled(inner) => {
694                Error::Unhandled(inner)
695            }
696        }
697    }
698}
699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_gateway::DeleteResourceGatewayError, R>> for Error
700where
701    R: Send + Sync + std::fmt::Debug + 'static,
702{
703    fn from(
704        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_gateway::DeleteResourceGatewayError, R>,
705    ) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::delete_resource_gateway::DeleteResourceGatewayError> for Error {
716    fn from(err: crate::operation::delete_resource_gateway::DeleteResourceGatewayError) -> Self {
717        match err {
718            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::AccessDeniedException(inner) => {
719                Error::AccessDeniedException(inner)
720            }
721            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::ConflictException(inner) => Error::ConflictException(inner),
722            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::InternalServerException(inner) => {
723                Error::InternalServerException(inner)
724            }
725            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::ResourceNotFoundException(inner) => {
726                Error::ResourceNotFoundException(inner)
727            }
728            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
729            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::ValidationException(inner) => Error::ValidationException(inner),
730            crate::operation::delete_resource_gateway::DeleteResourceGatewayError::Unhandled(inner) => Error::Unhandled(inner),
731        }
732    }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
749    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
750        match err {
751            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
752            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
753                Error::InternalServerException(inner)
754            }
755            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
756                Error::ResourceNotFoundException(inner)
757            }
758            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
759            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
760            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, 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::delete_rule::DeleteRuleError, 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::delete_rule::DeleteRuleError> for Error {
779    fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
780        match err {
781            crate::operation::delete_rule::DeleteRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
782            crate::operation::delete_rule::DeleteRuleError::ConflictException(inner) => Error::ConflictException(inner),
783            crate::operation::delete_rule::DeleteRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
784            crate::operation::delete_rule::DeleteRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
785            crate::operation::delete_rule::DeleteRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
786            crate::operation::delete_rule::DeleteRuleError::ValidationException(inner) => Error::ValidationException(inner),
787            crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
788        }
789    }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>> for Error
792where
793    R: Send + Sync + std::fmt::Debug + 'static,
794{
795    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>) -> Self {
796        match err {
797            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800                source: err.into(),
801            }),
802        }
803    }
804}
805impl From<crate::operation::delete_service::DeleteServiceError> for Error {
806    fn from(err: crate::operation::delete_service::DeleteServiceError) -> Self {
807        match err {
808            crate::operation::delete_service::DeleteServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
809            crate::operation::delete_service::DeleteServiceError::ConflictException(inner) => Error::ConflictException(inner),
810            crate::operation::delete_service::DeleteServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
811            crate::operation::delete_service::DeleteServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
812            crate::operation::delete_service::DeleteServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
813            crate::operation::delete_service::DeleteServiceError::ValidationException(inner) => Error::ValidationException(inner),
814            crate::operation::delete_service::DeleteServiceError::Unhandled(inner) => Error::Unhandled(inner),
815        }
816    }
817}
818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_network::DeleteServiceNetworkError, R>> for Error
819where
820    R: Send + Sync + std::fmt::Debug + 'static,
821{
822    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_network::DeleteServiceNetworkError, R>) -> Self {
823        match err {
824            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
825            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
826                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
827                source: err.into(),
828            }),
829        }
830    }
831}
832impl From<crate::operation::delete_service_network::DeleteServiceNetworkError> for Error {
833    fn from(err: crate::operation::delete_service_network::DeleteServiceNetworkError) -> Self {
834        match err {
835            crate::operation::delete_service_network::DeleteServiceNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
836            crate::operation::delete_service_network::DeleteServiceNetworkError::ConflictException(inner) => Error::ConflictException(inner),
837            crate::operation::delete_service_network::DeleteServiceNetworkError::InternalServerException(inner) => {
838                Error::InternalServerException(inner)
839            }
840            crate::operation::delete_service_network::DeleteServiceNetworkError::ResourceNotFoundException(inner) => {
841                Error::ResourceNotFoundException(inner)
842            }
843            crate::operation::delete_service_network::DeleteServiceNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
844            crate::operation::delete_service_network::DeleteServiceNetworkError::ValidationException(inner) => Error::ValidationException(inner),
845            crate::operation::delete_service_network::DeleteServiceNetworkError::Unhandled(inner) => Error::Unhandled(inner),
846        }
847    }
848}
849impl<R>
850    From<
851        ::aws_smithy_runtime_api::client::result::SdkError<
852            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError,
853            R,
854        >,
855    > for Error
856where
857    R: Send + Sync + std::fmt::Debug + 'static,
858{
859    fn from(
860        err: ::aws_smithy_runtime_api::client::result::SdkError<
861            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError,
862            R,
863        >,
864    ) -> Self {
865        match err {
866            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
867            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
868                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
869                source: err.into(),
870            }),
871        }
872    }
873}
874impl From<crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError> for Error {
875    fn from(err: crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError) -> Self {
876        match err {
877            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
878            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::ConflictException(inner) => Error::ConflictException(inner),
879            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
880            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
881            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
882            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::ValidationException(inner) => Error::ValidationException(inner),
883            crate::operation::delete_service_network_resource_association::DeleteServiceNetworkResourceAssociationError::Unhandled(inner) => Error::Unhandled(inner),
884        }
885    }
886}
887impl<R>
888    From<
889        ::aws_smithy_runtime_api::client::result::SdkError<
890            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError,
891            R,
892        >,
893    > for Error
894where
895    R: Send + Sync + std::fmt::Debug + 'static,
896{
897    fn from(
898        err: ::aws_smithy_runtime_api::client::result::SdkError<
899            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError,
900            R,
901        >,
902    ) -> Self {
903        match err {
904            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907                source: err.into(),
908            }),
909        }
910    }
911}
912impl From<crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError> for Error {
913    fn from(err: crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError) -> Self {
914        match err {
915            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::AccessDeniedException(
916                inner,
917            ) => Error::AccessDeniedException(inner),
918            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::ConflictException(inner) => {
919                Error::ConflictException(inner)
920            }
921            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::InternalServerException(
922                inner,
923            ) => Error::InternalServerException(inner),
924            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::ResourceNotFoundException(
925                inner,
926            ) => Error::ResourceNotFoundException(inner),
927            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::ThrottlingException(inner) => {
928                Error::ThrottlingException(inner)
929            }
930            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::ValidationException(inner) => {
931                Error::ValidationException(inner)
932            }
933            crate::operation::delete_service_network_service_association::DeleteServiceNetworkServiceAssociationError::Unhandled(inner) => {
934                Error::Unhandled(inner)
935            }
936        }
937    }
938}
939impl<R>
940    From<
941        ::aws_smithy_runtime_api::client::result::SdkError<
942            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError,
943            R,
944        >,
945    > for Error
946where
947    R: Send + Sync + std::fmt::Debug + 'static,
948{
949    fn from(
950        err: ::aws_smithy_runtime_api::client::result::SdkError<
951            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError,
952            R,
953        >,
954    ) -> Self {
955        match err {
956            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
957            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
958                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
959                source: err.into(),
960            }),
961        }
962    }
963}
964impl From<crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError> for Error {
965    fn from(err: crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError) -> Self {
966        match err {
967            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::AccessDeniedException(inner) => {
968                Error::AccessDeniedException(inner)
969            }
970            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::ConflictException(inner) => {
971                Error::ConflictException(inner)
972            }
973            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::InternalServerException(inner) => {
974                Error::InternalServerException(inner)
975            }
976            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::ResourceNotFoundException(inner) => {
977                Error::ResourceNotFoundException(inner)
978            }
979            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::ThrottlingException(inner) => {
980                Error::ThrottlingException(inner)
981            }
982            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::ValidationException(inner) => {
983                Error::ValidationException(inner)
984            }
985            crate::operation::delete_service_network_vpc_association::DeleteServiceNetworkVpcAssociationError::Unhandled(inner) => {
986                Error::Unhandled(inner)
987            }
988        }
989    }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>> for Error
992where
993    R: Send + Sync + std::fmt::Debug + 'static,
994{
995    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>) -> Self {
996        match err {
997            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000                source: err.into(),
1001            }),
1002        }
1003    }
1004}
1005impl From<crate::operation::delete_target_group::DeleteTargetGroupError> for Error {
1006    fn from(err: crate::operation::delete_target_group::DeleteTargetGroupError) -> Self {
1007        match err {
1008            crate::operation::delete_target_group::DeleteTargetGroupError::ConflictException(inner) => Error::ConflictException(inner),
1009            crate::operation::delete_target_group::DeleteTargetGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
1010            crate::operation::delete_target_group::DeleteTargetGroupError::ResourceNotFoundException(inner) => {
1011                Error::ResourceNotFoundException(inner)
1012            }
1013            crate::operation::delete_target_group::DeleteTargetGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1014            crate::operation::delete_target_group::DeleteTargetGroupError::ValidationException(inner) => Error::ValidationException(inner),
1015            crate::operation::delete_target_group::DeleteTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1016        }
1017    }
1018}
1019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>> for Error
1020where
1021    R: Send + Sync + std::fmt::Debug + 'static,
1022{
1023    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>) -> Self {
1024        match err {
1025            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1026            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1027                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1028                source: err.into(),
1029            }),
1030        }
1031    }
1032}
1033impl From<crate::operation::deregister_targets::DeregisterTargetsError> for Error {
1034    fn from(err: crate::operation::deregister_targets::DeregisterTargetsError) -> Self {
1035        match err {
1036            crate::operation::deregister_targets::DeregisterTargetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1037            crate::operation::deregister_targets::DeregisterTargetsError::ConflictException(inner) => Error::ConflictException(inner),
1038            crate::operation::deregister_targets::DeregisterTargetsError::InternalServerException(inner) => Error::InternalServerException(inner),
1039            crate::operation::deregister_targets::DeregisterTargetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1040            crate::operation::deregister_targets::DeregisterTargetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1041            crate::operation::deregister_targets::DeregisterTargetsError::ValidationException(inner) => Error::ValidationException(inner),
1042            crate::operation::deregister_targets::DeregisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1043        }
1044    }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError, R>>
1047    for Error
1048where
1049    R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051    fn from(
1052        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError, R>,
1053    ) -> Self {
1054        match err {
1055            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058                source: err.into(),
1059            }),
1060        }
1061    }
1062}
1063impl From<crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError> for Error {
1064    fn from(err: crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError) -> Self {
1065        match err {
1066            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::AccessDeniedException(inner) => {
1067                Error::AccessDeniedException(inner)
1068            }
1069            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::InternalServerException(inner) => {
1070                Error::InternalServerException(inner)
1071            }
1072            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::ResourceNotFoundException(inner) => {
1073                Error::ResourceNotFoundException(inner)
1074            }
1075            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::ThrottlingException(inner) => {
1076                Error::ThrottlingException(inner)
1077            }
1078            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::ValidationException(inner) => {
1079                Error::ValidationException(inner)
1080            }
1081            crate::operation::get_access_log_subscription::GetAccessLogSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1082        }
1083    }
1084}
1085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_auth_policy::GetAuthPolicyError, R>> for Error
1086where
1087    R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_auth_policy::GetAuthPolicyError, R>) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::get_auth_policy::GetAuthPolicyError> for Error {
1100    fn from(err: crate::operation::get_auth_policy::GetAuthPolicyError) -> Self {
1101        match err {
1102            crate::operation::get_auth_policy::GetAuthPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1103            crate::operation::get_auth_policy::GetAuthPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1104            crate::operation::get_auth_policy::GetAuthPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1105            crate::operation::get_auth_policy::GetAuthPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1106            crate::operation::get_auth_policy::GetAuthPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1107            crate::operation::get_auth_policy::GetAuthPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1108        }
1109    }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_listener::GetListenerError, R>> for Error
1112where
1113    R: Send + Sync + std::fmt::Debug + 'static,
1114{
1115    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_listener::GetListenerError, R>) -> Self {
1116        match err {
1117            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1118            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1119                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1120                source: err.into(),
1121            }),
1122        }
1123    }
1124}
1125impl From<crate::operation::get_listener::GetListenerError> for Error {
1126    fn from(err: crate::operation::get_listener::GetListenerError) -> Self {
1127        match err {
1128            crate::operation::get_listener::GetListenerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1129            crate::operation::get_listener::GetListenerError::InternalServerException(inner) => Error::InternalServerException(inner),
1130            crate::operation::get_listener::GetListenerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1131            crate::operation::get_listener::GetListenerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1132            crate::operation::get_listener::GetListenerError::ValidationException(inner) => Error::ValidationException(inner),
1133            crate::operation::get_listener::GetListenerError::Unhandled(inner) => Error::Unhandled(inner),
1134        }
1135    }
1136}
1137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_configuration::GetResourceConfigurationError, R>>
1138    for Error
1139where
1140    R: Send + Sync + std::fmt::Debug + 'static,
1141{
1142    fn from(
1143        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_configuration::GetResourceConfigurationError, R>,
1144    ) -> Self {
1145        match err {
1146            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149                source: err.into(),
1150            }),
1151        }
1152    }
1153}
1154impl From<crate::operation::get_resource_configuration::GetResourceConfigurationError> for Error {
1155    fn from(err: crate::operation::get_resource_configuration::GetResourceConfigurationError) -> Self {
1156        match err {
1157            crate::operation::get_resource_configuration::GetResourceConfigurationError::AccessDeniedException(inner) => {
1158                Error::AccessDeniedException(inner)
1159            }
1160            crate::operation::get_resource_configuration::GetResourceConfigurationError::InternalServerException(inner) => {
1161                Error::InternalServerException(inner)
1162            }
1163            crate::operation::get_resource_configuration::GetResourceConfigurationError::ResourceNotFoundException(inner) => {
1164                Error::ResourceNotFoundException(inner)
1165            }
1166            crate::operation::get_resource_configuration::GetResourceConfigurationError::ThrottlingException(inner) => {
1167                Error::ThrottlingException(inner)
1168            }
1169            crate::operation::get_resource_configuration::GetResourceConfigurationError::ValidationException(inner) => {
1170                Error::ValidationException(inner)
1171            }
1172            crate::operation::get_resource_configuration::GetResourceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1173        }
1174    }
1175}
1176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_gateway::GetResourceGatewayError, R>> for Error
1177where
1178    R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_gateway::GetResourceGatewayError, R>) -> Self {
1181        match err {
1182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1185                source: err.into(),
1186            }),
1187        }
1188    }
1189}
1190impl From<crate::operation::get_resource_gateway::GetResourceGatewayError> for Error {
1191    fn from(err: crate::operation::get_resource_gateway::GetResourceGatewayError) -> Self {
1192        match err {
1193            crate::operation::get_resource_gateway::GetResourceGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1194            crate::operation::get_resource_gateway::GetResourceGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
1195            crate::operation::get_resource_gateway::GetResourceGatewayError::ResourceNotFoundException(inner) => {
1196                Error::ResourceNotFoundException(inner)
1197            }
1198            crate::operation::get_resource_gateway::GetResourceGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1199            crate::operation::get_resource_gateway::GetResourceGatewayError::ValidationException(inner) => Error::ValidationException(inner),
1200            crate::operation::get_resource_gateway::GetResourceGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1201        }
1202    }
1203}
1204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
1205where
1206    R: Send + Sync + std::fmt::Debug + 'static,
1207{
1208    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
1209        match err {
1210            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213                source: err.into(),
1214            }),
1215        }
1216    }
1217}
1218impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
1219    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
1220        match err {
1221            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1222            crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1223            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
1224                Error::ResourceNotFoundException(inner)
1225            }
1226            crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1227            crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1228            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1229        }
1230    }
1231}
1232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>> for Error
1233where
1234    R: Send + Sync + std::fmt::Debug + 'static,
1235{
1236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>) -> Self {
1237        match err {
1238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1241                source: err.into(),
1242            }),
1243        }
1244    }
1245}
1246impl From<crate::operation::get_rule::GetRuleError> for Error {
1247    fn from(err: crate::operation::get_rule::GetRuleError) -> Self {
1248        match err {
1249            crate::operation::get_rule::GetRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1250            crate::operation::get_rule::GetRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1251            crate::operation::get_rule::GetRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1252            crate::operation::get_rule::GetRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1253            crate::operation::get_rule::GetRuleError::ValidationException(inner) => Error::ValidationException(inner),
1254            crate::operation::get_rule::GetRuleError::Unhandled(inner) => Error::Unhandled(inner),
1255        }
1256    }
1257}
1258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>> for Error
1259where
1260    R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>) -> Self {
1263        match err {
1264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267                source: err.into(),
1268            }),
1269        }
1270    }
1271}
1272impl From<crate::operation::get_service::GetServiceError> for Error {
1273    fn from(err: crate::operation::get_service::GetServiceError) -> Self {
1274        match err {
1275            crate::operation::get_service::GetServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1276            crate::operation::get_service::GetServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
1277            crate::operation::get_service::GetServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1278            crate::operation::get_service::GetServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1279            crate::operation::get_service::GetServiceError::ValidationException(inner) => Error::ValidationException(inner),
1280            crate::operation::get_service::GetServiceError::Unhandled(inner) => Error::Unhandled(inner),
1281        }
1282    }
1283}
1284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_network::GetServiceNetworkError, R>> for Error
1285where
1286    R: Send + Sync + std::fmt::Debug + 'static,
1287{
1288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_network::GetServiceNetworkError, R>) -> Self {
1289        match err {
1290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1293                source: err.into(),
1294            }),
1295        }
1296    }
1297}
1298impl From<crate::operation::get_service_network::GetServiceNetworkError> for Error {
1299    fn from(err: crate::operation::get_service_network::GetServiceNetworkError) -> Self {
1300        match err {
1301            crate::operation::get_service_network::GetServiceNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1302            crate::operation::get_service_network::GetServiceNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
1303            crate::operation::get_service_network::GetServiceNetworkError::ResourceNotFoundException(inner) => {
1304                Error::ResourceNotFoundException(inner)
1305            }
1306            crate::operation::get_service_network::GetServiceNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1307            crate::operation::get_service_network::GetServiceNetworkError::ValidationException(inner) => Error::ValidationException(inner),
1308            crate::operation::get_service_network::GetServiceNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1309        }
1310    }
1311}
1312impl<R>
1313    From<
1314        ::aws_smithy_runtime_api::client::result::SdkError<
1315            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError,
1316            R,
1317        >,
1318    > for Error
1319where
1320    R: Send + Sync + std::fmt::Debug + 'static,
1321{
1322    fn from(
1323        err: ::aws_smithy_runtime_api::client::result::SdkError<
1324            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError,
1325            R,
1326        >,
1327    ) -> Self {
1328        match err {
1329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1332                source: err.into(),
1333            }),
1334        }
1335    }
1336}
1337impl From<crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError> for Error {
1338    fn from(err: crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError) -> Self {
1339        match err {
1340            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::AccessDeniedException(inner) => {
1341                Error::AccessDeniedException(inner)
1342            }
1343            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::InternalServerException(inner) => {
1344                Error::InternalServerException(inner)
1345            }
1346            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::ResourceNotFoundException(
1347                inner,
1348            ) => Error::ResourceNotFoundException(inner),
1349            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::ThrottlingException(inner) => {
1350                Error::ThrottlingException(inner)
1351            }
1352            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::ValidationException(inner) => {
1353                Error::ValidationException(inner)
1354            }
1355            crate::operation::get_service_network_resource_association::GetServiceNetworkResourceAssociationError::Unhandled(inner) => {
1356                Error::Unhandled(inner)
1357            }
1358        }
1359    }
1360}
1361impl<R>
1362    From<
1363        ::aws_smithy_runtime_api::client::result::SdkError<
1364            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError,
1365            R,
1366        >,
1367    > for Error
1368where
1369    R: Send + Sync + std::fmt::Debug + 'static,
1370{
1371    fn from(
1372        err: ::aws_smithy_runtime_api::client::result::SdkError<
1373            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError,
1374            R,
1375        >,
1376    ) -> Self {
1377        match err {
1378            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1379            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1380                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1381                source: err.into(),
1382            }),
1383        }
1384    }
1385}
1386impl From<crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError> for Error {
1387    fn from(err: crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError) -> Self {
1388        match err {
1389            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::AccessDeniedException(inner) => {
1390                Error::AccessDeniedException(inner)
1391            }
1392            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::InternalServerException(inner) => {
1393                Error::InternalServerException(inner)
1394            }
1395            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::ResourceNotFoundException(inner) => {
1396                Error::ResourceNotFoundException(inner)
1397            }
1398            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::ThrottlingException(inner) => {
1399                Error::ThrottlingException(inner)
1400            }
1401            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::ValidationException(inner) => {
1402                Error::ValidationException(inner)
1403            }
1404            crate::operation::get_service_network_service_association::GetServiceNetworkServiceAssociationError::Unhandled(inner) => {
1405                Error::Unhandled(inner)
1406            }
1407        }
1408    }
1409}
1410impl<R>
1411    From<
1412        ::aws_smithy_runtime_api::client::result::SdkError<
1413            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError,
1414            R,
1415        >,
1416    > for Error
1417where
1418    R: Send + Sync + std::fmt::Debug + 'static,
1419{
1420    fn from(
1421        err: ::aws_smithy_runtime_api::client::result::SdkError<
1422            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError,
1423            R,
1424        >,
1425    ) -> Self {
1426        match err {
1427            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1428            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1429                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1430                source: err.into(),
1431            }),
1432        }
1433    }
1434}
1435impl From<crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError> for Error {
1436    fn from(err: crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError) -> Self {
1437        match err {
1438            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::AccessDeniedException(inner) => {
1439                Error::AccessDeniedException(inner)
1440            }
1441            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::InternalServerException(inner) => {
1442                Error::InternalServerException(inner)
1443            }
1444            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::ResourceNotFoundException(inner) => {
1445                Error::ResourceNotFoundException(inner)
1446            }
1447            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::ThrottlingException(inner) => {
1448                Error::ThrottlingException(inner)
1449            }
1450            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::ValidationException(inner) => {
1451                Error::ValidationException(inner)
1452            }
1453            crate::operation::get_service_network_vpc_association::GetServiceNetworkVpcAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1454        }
1455    }
1456}
1457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_target_group::GetTargetGroupError, R>> for Error
1458where
1459    R: Send + Sync + std::fmt::Debug + 'static,
1460{
1461    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_target_group::GetTargetGroupError, R>) -> Self {
1462        match err {
1463            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466                source: err.into(),
1467            }),
1468        }
1469    }
1470}
1471impl From<crate::operation::get_target_group::GetTargetGroupError> for Error {
1472    fn from(err: crate::operation::get_target_group::GetTargetGroupError) -> Self {
1473        match err {
1474            crate::operation::get_target_group::GetTargetGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1475            crate::operation::get_target_group::GetTargetGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
1476            crate::operation::get_target_group::GetTargetGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1477            crate::operation::get_target_group::GetTargetGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1478            crate::operation::get_target_group::GetTargetGroupError::ValidationException(inner) => Error::ValidationException(inner),
1479            crate::operation::get_target_group::GetTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1480        }
1481    }
1482}
1483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError, R>>
1484    for Error
1485where
1486    R: Send + Sync + std::fmt::Debug + 'static,
1487{
1488    fn from(
1489        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError, R>,
1490    ) -> Self {
1491        match err {
1492            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1493            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1494                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1495                source: err.into(),
1496            }),
1497        }
1498    }
1499}
1500impl From<crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError> for Error {
1501    fn from(err: crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError) -> Self {
1502        match err {
1503            crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError::AccessDeniedException(inner) => {
1504                Error::AccessDeniedException(inner)
1505            }
1506            crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError::InternalServerException(inner) => {
1507                Error::InternalServerException(inner)
1508            }
1509            crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError::ThrottlingException(inner) => {
1510                Error::ThrottlingException(inner)
1511            }
1512            crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError::ValidationException(inner) => {
1513                Error::ValidationException(inner)
1514            }
1515            crate::operation::list_access_log_subscriptions::ListAccessLogSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1516        }
1517    }
1518}
1519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_listeners::ListListenersError, R>> for Error
1520where
1521    R: Send + Sync + std::fmt::Debug + 'static,
1522{
1523    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_listeners::ListListenersError, R>) -> Self {
1524        match err {
1525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1528                source: err.into(),
1529            }),
1530        }
1531    }
1532}
1533impl From<crate::operation::list_listeners::ListListenersError> for Error {
1534    fn from(err: crate::operation::list_listeners::ListListenersError) -> Self {
1535        match err {
1536            crate::operation::list_listeners::ListListenersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1537            crate::operation::list_listeners::ListListenersError::InternalServerException(inner) => Error::InternalServerException(inner),
1538            crate::operation::list_listeners::ListListenersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1539            crate::operation::list_listeners::ListListenersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1540            crate::operation::list_listeners::ListListenersError::ValidationException(inner) => Error::ValidationException(inner),
1541            crate::operation::list_listeners::ListListenersError::Unhandled(inner) => Error::Unhandled(inner),
1542        }
1543    }
1544}
1545impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_configurations::ListResourceConfigurationsError, R>>
1546    for Error
1547where
1548    R: Send + Sync + std::fmt::Debug + 'static,
1549{
1550    fn from(
1551        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_configurations::ListResourceConfigurationsError, R>,
1552    ) -> Self {
1553        match err {
1554            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1555            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1556                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1557                source: err.into(),
1558            }),
1559        }
1560    }
1561}
1562impl From<crate::operation::list_resource_configurations::ListResourceConfigurationsError> for Error {
1563    fn from(err: crate::operation::list_resource_configurations::ListResourceConfigurationsError) -> Self {
1564        match err {
1565            crate::operation::list_resource_configurations::ListResourceConfigurationsError::AccessDeniedException(inner) => {
1566                Error::AccessDeniedException(inner)
1567            }
1568            crate::operation::list_resource_configurations::ListResourceConfigurationsError::InternalServerException(inner) => {
1569                Error::InternalServerException(inner)
1570            }
1571            crate::operation::list_resource_configurations::ListResourceConfigurationsError::ThrottlingException(inner) => {
1572                Error::ThrottlingException(inner)
1573            }
1574            crate::operation::list_resource_configurations::ListResourceConfigurationsError::ValidationException(inner) => {
1575                Error::ValidationException(inner)
1576            }
1577            crate::operation::list_resource_configurations::ListResourceConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1578        }
1579    }
1580}
1581impl<R>
1582    From<
1583        ::aws_smithy_runtime_api::client::result::SdkError<
1584            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError,
1585            R,
1586        >,
1587    > for Error
1588where
1589    R: Send + Sync + std::fmt::Debug + 'static,
1590{
1591    fn from(
1592        err: ::aws_smithy_runtime_api::client::result::SdkError<
1593            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError,
1594            R,
1595        >,
1596    ) -> Self {
1597        match err {
1598            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1599            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1600                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1601                source: err.into(),
1602            }),
1603        }
1604    }
1605}
1606impl From<crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError> for Error {
1607    fn from(err: crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError) -> Self {
1608        match err {
1609            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError::AccessDeniedException(inner) => {
1610                Error::AccessDeniedException(inner)
1611            }
1612            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError::InternalServerException(inner) => {
1613                Error::InternalServerException(inner)
1614            }
1615            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError::ThrottlingException(inner) => {
1616                Error::ThrottlingException(inner)
1617            }
1618            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError::ValidationException(inner) => {
1619                Error::ValidationException(inner)
1620            }
1621            crate::operation::list_resource_endpoint_associations::ListResourceEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1622        }
1623    }
1624}
1625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_gateways::ListResourceGatewaysError, R>> for Error
1626where
1627    R: Send + Sync + std::fmt::Debug + 'static,
1628{
1629    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_gateways::ListResourceGatewaysError, R>) -> Self {
1630        match err {
1631            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1632            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1633                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1634                source: err.into(),
1635            }),
1636        }
1637    }
1638}
1639impl From<crate::operation::list_resource_gateways::ListResourceGatewaysError> for Error {
1640    fn from(err: crate::operation::list_resource_gateways::ListResourceGatewaysError) -> Self {
1641        match err {
1642            crate::operation::list_resource_gateways::ListResourceGatewaysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1643            crate::operation::list_resource_gateways::ListResourceGatewaysError::InternalServerException(inner) => {
1644                Error::InternalServerException(inner)
1645            }
1646            crate::operation::list_resource_gateways::ListResourceGatewaysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1647            crate::operation::list_resource_gateways::ListResourceGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
1648            crate::operation::list_resource_gateways::ListResourceGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
1649        }
1650    }
1651}
1652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>> for Error
1653where
1654    R: Send + Sync + std::fmt::Debug + 'static,
1655{
1656    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>) -> Self {
1657        match err {
1658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1661                source: err.into(),
1662            }),
1663        }
1664    }
1665}
1666impl From<crate::operation::list_rules::ListRulesError> for Error {
1667    fn from(err: crate::operation::list_rules::ListRulesError) -> Self {
1668        match err {
1669            crate::operation::list_rules::ListRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1670            crate::operation::list_rules::ListRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
1671            crate::operation::list_rules::ListRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1672            crate::operation::list_rules::ListRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1673            crate::operation::list_rules::ListRulesError::ValidationException(inner) => Error::ValidationException(inner),
1674            crate::operation::list_rules::ListRulesError::Unhandled(inner) => Error::Unhandled(inner),
1675        }
1676    }
1677}
1678impl<R>
1679    From<
1680        ::aws_smithy_runtime_api::client::result::SdkError<
1681            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError,
1682            R,
1683        >,
1684    > for Error
1685where
1686    R: Send + Sync + std::fmt::Debug + 'static,
1687{
1688    fn from(
1689        err: ::aws_smithy_runtime_api::client::result::SdkError<
1690            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError,
1691            R,
1692        >,
1693    ) -> Self {
1694        match err {
1695            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698                source: err.into(),
1699            }),
1700        }
1701    }
1702}
1703impl From<crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError> for Error {
1704    fn from(err: crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError) -> Self {
1705        match err {
1706            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError::AccessDeniedException(
1707                inner,
1708            ) => Error::AccessDeniedException(inner),
1709            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError::InternalServerException(
1710                inner,
1711            ) => Error::InternalServerException(inner),
1712            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError::ThrottlingException(inner) => {
1713                Error::ThrottlingException(inner)
1714            }
1715            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError::ValidationException(inner) => {
1716                Error::ValidationException(inner)
1717            }
1718            crate::operation::list_service_network_resource_associations::ListServiceNetworkResourceAssociationsError::Unhandled(inner) => {
1719                Error::Unhandled(inner)
1720            }
1721        }
1722    }
1723}
1724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_networks::ListServiceNetworksError, R>> for Error
1725where
1726    R: Send + Sync + std::fmt::Debug + 'static,
1727{
1728    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_networks::ListServiceNetworksError, R>) -> Self {
1729        match err {
1730            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1731            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1732                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1733                source: err.into(),
1734            }),
1735        }
1736    }
1737}
1738impl From<crate::operation::list_service_networks::ListServiceNetworksError> for Error {
1739    fn from(err: crate::operation::list_service_networks::ListServiceNetworksError) -> Self {
1740        match err {
1741            crate::operation::list_service_networks::ListServiceNetworksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1742            crate::operation::list_service_networks::ListServiceNetworksError::InternalServerException(inner) => {
1743                Error::InternalServerException(inner)
1744            }
1745            crate::operation::list_service_networks::ListServiceNetworksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1746            crate::operation::list_service_networks::ListServiceNetworksError::ValidationException(inner) => Error::ValidationException(inner),
1747            crate::operation::list_service_networks::ListServiceNetworksError::Unhandled(inner) => Error::Unhandled(inner),
1748        }
1749    }
1750}
1751impl<R>
1752    From<
1753        ::aws_smithy_runtime_api::client::result::SdkError<
1754            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError,
1755            R,
1756        >,
1757    > for Error
1758where
1759    R: Send + Sync + std::fmt::Debug + 'static,
1760{
1761    fn from(
1762        err: ::aws_smithy_runtime_api::client::result::SdkError<
1763            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError,
1764            R,
1765        >,
1766    ) -> Self {
1767        match err {
1768            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1769            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1770                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1771                source: err.into(),
1772            }),
1773        }
1774    }
1775}
1776impl From<crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError> for Error {
1777    fn from(err: crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError) -> Self {
1778        match err {
1779            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError::AccessDeniedException(inner) => {
1780                Error::AccessDeniedException(inner)
1781            }
1782            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError::InternalServerException(
1783                inner,
1784            ) => Error::InternalServerException(inner),
1785            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError::ThrottlingException(inner) => {
1786                Error::ThrottlingException(inner)
1787            }
1788            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError::ValidationException(inner) => {
1789                Error::ValidationException(inner)
1790            }
1791            crate::operation::list_service_network_service_associations::ListServiceNetworkServiceAssociationsError::Unhandled(inner) => {
1792                Error::Unhandled(inner)
1793            }
1794        }
1795    }
1796}
1797impl<R>
1798    From<
1799        ::aws_smithy_runtime_api::client::result::SdkError<
1800            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError,
1801            R,
1802        >,
1803    > for Error
1804where
1805    R: Send + Sync + std::fmt::Debug + 'static,
1806{
1807    fn from(
1808        err: ::aws_smithy_runtime_api::client::result::SdkError<
1809            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError,
1810            R,
1811        >,
1812    ) -> Self {
1813        match err {
1814            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1815            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1816                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1817                source: err.into(),
1818            }),
1819        }
1820    }
1821}
1822impl From<crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError> for Error {
1823    fn from(err: crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError) -> Self {
1824        match err {
1825            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError::AccessDeniedException(inner) => {
1826                Error::AccessDeniedException(inner)
1827            }
1828            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError::InternalServerException(inner) => {
1829                Error::InternalServerException(inner)
1830            }
1831            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError::ThrottlingException(inner) => {
1832                Error::ThrottlingException(inner)
1833            }
1834            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError::ValidationException(inner) => {
1835                Error::ValidationException(inner)
1836            }
1837            crate::operation::list_service_network_vpc_associations::ListServiceNetworkVpcAssociationsError::Unhandled(inner) => {
1838                Error::Unhandled(inner)
1839            }
1840        }
1841    }
1842}
1843impl<R>
1844    From<
1845        ::aws_smithy_runtime_api::client::result::SdkError<
1846            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError,
1847            R,
1848        >,
1849    > for Error
1850where
1851    R: Send + Sync + std::fmt::Debug + 'static,
1852{
1853    fn from(
1854        err: ::aws_smithy_runtime_api::client::result::SdkError<
1855            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError,
1856            R,
1857        >,
1858    ) -> Self {
1859        match err {
1860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1863                source: err.into(),
1864            }),
1865        }
1866    }
1867}
1868impl From<crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError> for Error {
1869    fn from(err: crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError) -> Self {
1870        match err {
1871            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1872            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1873            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1874            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1875            crate::operation::list_service_network_vpc_endpoint_associations::ListServiceNetworkVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1876        }
1877    }
1878}
1879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>> for Error
1880where
1881    R: Send + Sync + std::fmt::Debug + 'static,
1882{
1883    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>) -> Self {
1884        match err {
1885            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1886            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1887                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1888                source: err.into(),
1889            }),
1890        }
1891    }
1892}
1893impl From<crate::operation::list_services::ListServicesError> for Error {
1894    fn from(err: crate::operation::list_services::ListServicesError) -> Self {
1895        match err {
1896            crate::operation::list_services::ListServicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1897            crate::operation::list_services::ListServicesError::InternalServerException(inner) => Error::InternalServerException(inner),
1898            crate::operation::list_services::ListServicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1899            crate::operation::list_services::ListServicesError::ValidationException(inner) => Error::ValidationException(inner),
1900            crate::operation::list_services::ListServicesError::Unhandled(inner) => Error::Unhandled(inner),
1901        }
1902    }
1903}
1904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1905where
1906    R: Send + Sync + std::fmt::Debug + 'static,
1907{
1908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1909        match err {
1910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1913                source: err.into(),
1914            }),
1915        }
1916    }
1917}
1918impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1919    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1920        match err {
1921            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1922            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1923                Error::InternalServerException(inner)
1924            }
1925            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1926                Error::ResourceNotFoundException(inner)
1927            }
1928            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1929            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1930        }
1931    }
1932}
1933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_groups::ListTargetGroupsError, R>> for Error
1934where
1935    R: Send + Sync + std::fmt::Debug + 'static,
1936{
1937    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_groups::ListTargetGroupsError, R>) -> Self {
1938        match err {
1939            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1940            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1941                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1942                source: err.into(),
1943            }),
1944        }
1945    }
1946}
1947impl From<crate::operation::list_target_groups::ListTargetGroupsError> for Error {
1948    fn from(err: crate::operation::list_target_groups::ListTargetGroupsError) -> Self {
1949        match err {
1950            crate::operation::list_target_groups::ListTargetGroupsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1951            crate::operation::list_target_groups::ListTargetGroupsError::InternalServerException(inner) => Error::InternalServerException(inner),
1952            crate::operation::list_target_groups::ListTargetGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1953            crate::operation::list_target_groups::ListTargetGroupsError::ValidationException(inner) => Error::ValidationException(inner),
1954            crate::operation::list_target_groups::ListTargetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1955        }
1956    }
1957}
1958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets::ListTargetsError, R>> for Error
1959where
1960    R: Send + Sync + std::fmt::Debug + 'static,
1961{
1962    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets::ListTargetsError, R>) -> Self {
1963        match err {
1964            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1965            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1966                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1967                source: err.into(),
1968            }),
1969        }
1970    }
1971}
1972impl From<crate::operation::list_targets::ListTargetsError> for Error {
1973    fn from(err: crate::operation::list_targets::ListTargetsError) -> Self {
1974        match err {
1975            crate::operation::list_targets::ListTargetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1976            crate::operation::list_targets::ListTargetsError::InternalServerException(inner) => Error::InternalServerException(inner),
1977            crate::operation::list_targets::ListTargetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1978            crate::operation::list_targets::ListTargetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1979            crate::operation::list_targets::ListTargetsError::ValidationException(inner) => Error::ValidationException(inner),
1980            crate::operation::list_targets::ListTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1981        }
1982    }
1983}
1984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_auth_policy::PutAuthPolicyError, R>> for Error
1985where
1986    R: Send + Sync + std::fmt::Debug + 'static,
1987{
1988    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_auth_policy::PutAuthPolicyError, R>) -> Self {
1989        match err {
1990            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1991            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1992                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1993                source: err.into(),
1994            }),
1995        }
1996    }
1997}
1998impl From<crate::operation::put_auth_policy::PutAuthPolicyError> for Error {
1999    fn from(err: crate::operation::put_auth_policy::PutAuthPolicyError) -> Self {
2000        match err {
2001            crate::operation::put_auth_policy::PutAuthPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2002            crate::operation::put_auth_policy::PutAuthPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2003            crate::operation::put_auth_policy::PutAuthPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2004            crate::operation::put_auth_policy::PutAuthPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2005            crate::operation::put_auth_policy::PutAuthPolicyError::ValidationException(inner) => Error::ValidationException(inner),
2006            crate::operation::put_auth_policy::PutAuthPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2007        }
2008    }
2009}
2010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
2011where
2012    R: Send + Sync + std::fmt::Debug + 'static,
2013{
2014    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2015        match err {
2016            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2017            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2018                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2019                source: err.into(),
2020            }),
2021        }
2022    }
2023}
2024impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2025    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2026        match err {
2027            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2028            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2029            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
2030                Error::ResourceNotFoundException(inner)
2031            }
2032            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2033            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2034            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2035        }
2036    }
2037}
2038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>> for Error
2039where
2040    R: Send + Sync + std::fmt::Debug + 'static,
2041{
2042    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>) -> Self {
2043        match err {
2044            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2045            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2046                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2047                source: err.into(),
2048            }),
2049        }
2050    }
2051}
2052impl From<crate::operation::register_targets::RegisterTargetsError> for Error {
2053    fn from(err: crate::operation::register_targets::RegisterTargetsError) -> Self {
2054        match err {
2055            crate::operation::register_targets::RegisterTargetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2056            crate::operation::register_targets::RegisterTargetsError::ConflictException(inner) => Error::ConflictException(inner),
2057            crate::operation::register_targets::RegisterTargetsError::InternalServerException(inner) => Error::InternalServerException(inner),
2058            crate::operation::register_targets::RegisterTargetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2059            crate::operation::register_targets::RegisterTargetsError::ServiceQuotaExceededException(inner) => {
2060                Error::ServiceQuotaExceededException(inner)
2061            }
2062            crate::operation::register_targets::RegisterTargetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2063            crate::operation::register_targets::RegisterTargetsError::ValidationException(inner) => Error::ValidationException(inner),
2064            crate::operation::register_targets::RegisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
2065        }
2066    }
2067}
2068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2069where
2070    R: Send + Sync + std::fmt::Debug + 'static,
2071{
2072    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2073        match err {
2074            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2075            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2076                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2077                source: err.into(),
2078            }),
2079        }
2080    }
2081}
2082impl From<crate::operation::tag_resource::TagResourceError> for Error {
2083    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2084        match err {
2085            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2086            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2087            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2088            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2089            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2090            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2091        }
2092    }
2093}
2094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2095where
2096    R: Send + Sync + std::fmt::Debug + 'static,
2097{
2098    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2099        match err {
2100            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2101            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2102                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2103                source: err.into(),
2104            }),
2105        }
2106    }
2107}
2108impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2109    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2110        match err {
2111            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2112            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2113            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2114            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2115            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2116        }
2117    }
2118}
2119impl<R>
2120    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError, R>>
2121    for Error
2122where
2123    R: Send + Sync + std::fmt::Debug + 'static,
2124{
2125    fn from(
2126        err: ::aws_smithy_runtime_api::client::result::SdkError<
2127            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError,
2128            R,
2129        >,
2130    ) -> Self {
2131        match err {
2132            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2133            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2134                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2135                source: err.into(),
2136            }),
2137        }
2138    }
2139}
2140impl From<crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError> for Error {
2141    fn from(err: crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError) -> Self {
2142        match err {
2143            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::AccessDeniedException(inner) => {
2144                Error::AccessDeniedException(inner)
2145            }
2146            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::ConflictException(inner) => {
2147                Error::ConflictException(inner)
2148            }
2149            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::InternalServerException(inner) => {
2150                Error::InternalServerException(inner)
2151            }
2152            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::ResourceNotFoundException(inner) => {
2153                Error::ResourceNotFoundException(inner)
2154            }
2155            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::ThrottlingException(inner) => {
2156                Error::ThrottlingException(inner)
2157            }
2158            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::ValidationException(inner) => {
2159                Error::ValidationException(inner)
2160            }
2161            crate::operation::update_access_log_subscription::UpdateAccessLogSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
2162        }
2163    }
2164}
2165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_listener::UpdateListenerError, R>> for Error
2166where
2167    R: Send + Sync + std::fmt::Debug + 'static,
2168{
2169    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_listener::UpdateListenerError, R>) -> Self {
2170        match err {
2171            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2172            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2173                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2174                source: err.into(),
2175            }),
2176        }
2177    }
2178}
2179impl From<crate::operation::update_listener::UpdateListenerError> for Error {
2180    fn from(err: crate::operation::update_listener::UpdateListenerError) -> Self {
2181        match err {
2182            crate::operation::update_listener::UpdateListenerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2183            crate::operation::update_listener::UpdateListenerError::ConflictException(inner) => Error::ConflictException(inner),
2184            crate::operation::update_listener::UpdateListenerError::InternalServerException(inner) => Error::InternalServerException(inner),
2185            crate::operation::update_listener::UpdateListenerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2186            crate::operation::update_listener::UpdateListenerError::ServiceQuotaExceededException(inner) => {
2187                Error::ServiceQuotaExceededException(inner)
2188            }
2189            crate::operation::update_listener::UpdateListenerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2190            crate::operation::update_listener::UpdateListenerError::ValidationException(inner) => Error::ValidationException(inner),
2191            crate::operation::update_listener::UpdateListenerError::Unhandled(inner) => Error::Unhandled(inner),
2192        }
2193    }
2194}
2195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_configuration::UpdateResourceConfigurationError, R>>
2196    for Error
2197where
2198    R: Send + Sync + std::fmt::Debug + 'static,
2199{
2200    fn from(
2201        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_configuration::UpdateResourceConfigurationError, R>,
2202    ) -> Self {
2203        match err {
2204            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2205            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2206                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2207                source: err.into(),
2208            }),
2209        }
2210    }
2211}
2212impl From<crate::operation::update_resource_configuration::UpdateResourceConfigurationError> for Error {
2213    fn from(err: crate::operation::update_resource_configuration::UpdateResourceConfigurationError) -> Self {
2214        match err {
2215            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::AccessDeniedException(inner) => {
2216                Error::AccessDeniedException(inner)
2217            }
2218            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::InternalServerException(inner) => {
2219                Error::InternalServerException(inner)
2220            }
2221            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::ResourceNotFoundException(inner) => {
2222                Error::ResourceNotFoundException(inner)
2223            }
2224            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::ServiceQuotaExceededException(inner) => {
2225                Error::ServiceQuotaExceededException(inner)
2226            }
2227            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::ThrottlingException(inner) => {
2228                Error::ThrottlingException(inner)
2229            }
2230            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::ValidationException(inner) => {
2231                Error::ValidationException(inner)
2232            }
2233            crate::operation::update_resource_configuration::UpdateResourceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2234        }
2235    }
2236}
2237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_gateway::UpdateResourceGatewayError, R>> for Error
2238where
2239    R: Send + Sync + std::fmt::Debug + 'static,
2240{
2241    fn from(
2242        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_gateway::UpdateResourceGatewayError, R>,
2243    ) -> Self {
2244        match err {
2245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2248                source: err.into(),
2249            }),
2250        }
2251    }
2252}
2253impl From<crate::operation::update_resource_gateway::UpdateResourceGatewayError> for Error {
2254    fn from(err: crate::operation::update_resource_gateway::UpdateResourceGatewayError) -> Self {
2255        match err {
2256            crate::operation::update_resource_gateway::UpdateResourceGatewayError::AccessDeniedException(inner) => {
2257                Error::AccessDeniedException(inner)
2258            }
2259            crate::operation::update_resource_gateway::UpdateResourceGatewayError::ConflictException(inner) => Error::ConflictException(inner),
2260            crate::operation::update_resource_gateway::UpdateResourceGatewayError::InternalServerException(inner) => {
2261                Error::InternalServerException(inner)
2262            }
2263            crate::operation::update_resource_gateway::UpdateResourceGatewayError::ResourceNotFoundException(inner) => {
2264                Error::ResourceNotFoundException(inner)
2265            }
2266            crate::operation::update_resource_gateway::UpdateResourceGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2267            crate::operation::update_resource_gateway::UpdateResourceGatewayError::ValidationException(inner) => Error::ValidationException(inner),
2268            crate::operation::update_resource_gateway::UpdateResourceGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2269        }
2270    }
2271}
2272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>> for Error
2273where
2274    R: Send + Sync + std::fmt::Debug + 'static,
2275{
2276    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>) -> Self {
2277        match err {
2278            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2279            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2280                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2281                source: err.into(),
2282            }),
2283        }
2284    }
2285}
2286impl From<crate::operation::update_rule::UpdateRuleError> for Error {
2287    fn from(err: crate::operation::update_rule::UpdateRuleError) -> Self {
2288        match err {
2289            crate::operation::update_rule::UpdateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2290            crate::operation::update_rule::UpdateRuleError::ConflictException(inner) => Error::ConflictException(inner),
2291            crate::operation::update_rule::UpdateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
2292            crate::operation::update_rule::UpdateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2293            crate::operation::update_rule::UpdateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2294            crate::operation::update_rule::UpdateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2295            crate::operation::update_rule::UpdateRuleError::ValidationException(inner) => Error::ValidationException(inner),
2296            crate::operation::update_rule::UpdateRuleError::Unhandled(inner) => Error::Unhandled(inner),
2297        }
2298    }
2299}
2300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>> for Error
2301where
2302    R: Send + Sync + std::fmt::Debug + 'static,
2303{
2304    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>) -> Self {
2305        match err {
2306            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2307            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2308                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2309                source: err.into(),
2310            }),
2311        }
2312    }
2313}
2314impl From<crate::operation::update_service::UpdateServiceError> for Error {
2315    fn from(err: crate::operation::update_service::UpdateServiceError) -> Self {
2316        match err {
2317            crate::operation::update_service::UpdateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2318            crate::operation::update_service::UpdateServiceError::ConflictException(inner) => Error::ConflictException(inner),
2319            crate::operation::update_service::UpdateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
2320            crate::operation::update_service::UpdateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2321            crate::operation::update_service::UpdateServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2322            crate::operation::update_service::UpdateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2323            crate::operation::update_service::UpdateServiceError::ValidationException(inner) => Error::ValidationException(inner),
2324            crate::operation::update_service::UpdateServiceError::Unhandled(inner) => Error::Unhandled(inner),
2325        }
2326    }
2327}
2328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_network::UpdateServiceNetworkError, R>> for Error
2329where
2330    R: Send + Sync + std::fmt::Debug + 'static,
2331{
2332    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_network::UpdateServiceNetworkError, R>) -> Self {
2333        match err {
2334            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2335            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2336                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2337                source: err.into(),
2338            }),
2339        }
2340    }
2341}
2342impl From<crate::operation::update_service_network::UpdateServiceNetworkError> for Error {
2343    fn from(err: crate::operation::update_service_network::UpdateServiceNetworkError) -> Self {
2344        match err {
2345            crate::operation::update_service_network::UpdateServiceNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2346            crate::operation::update_service_network::UpdateServiceNetworkError::ConflictException(inner) => Error::ConflictException(inner),
2347            crate::operation::update_service_network::UpdateServiceNetworkError::InternalServerException(inner) => {
2348                Error::InternalServerException(inner)
2349            }
2350            crate::operation::update_service_network::UpdateServiceNetworkError::ResourceNotFoundException(inner) => {
2351                Error::ResourceNotFoundException(inner)
2352            }
2353            crate::operation::update_service_network::UpdateServiceNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2354            crate::operation::update_service_network::UpdateServiceNetworkError::ValidationException(inner) => Error::ValidationException(inner),
2355            crate::operation::update_service_network::UpdateServiceNetworkError::Unhandled(inner) => Error::Unhandled(inner),
2356        }
2357    }
2358}
2359impl<R>
2360    From<
2361        ::aws_smithy_runtime_api::client::result::SdkError<
2362            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError,
2363            R,
2364        >,
2365    > for Error
2366where
2367    R: Send + Sync + std::fmt::Debug + 'static,
2368{
2369    fn from(
2370        err: ::aws_smithy_runtime_api::client::result::SdkError<
2371            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError,
2372            R,
2373        >,
2374    ) -> Self {
2375        match err {
2376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2379                source: err.into(),
2380            }),
2381        }
2382    }
2383}
2384impl From<crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError> for Error {
2385    fn from(err: crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError) -> Self {
2386        match err {
2387            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::AccessDeniedException(inner) => {
2388                Error::AccessDeniedException(inner)
2389            }
2390            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::ConflictException(inner) => {
2391                Error::ConflictException(inner)
2392            }
2393            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::InternalServerException(inner) => {
2394                Error::InternalServerException(inner)
2395            }
2396            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::ResourceNotFoundException(inner) => {
2397                Error::ResourceNotFoundException(inner)
2398            }
2399            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::ThrottlingException(inner) => {
2400                Error::ThrottlingException(inner)
2401            }
2402            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::ValidationException(inner) => {
2403                Error::ValidationException(inner)
2404            }
2405            crate::operation::update_service_network_vpc_association::UpdateServiceNetworkVpcAssociationError::Unhandled(inner) => {
2406                Error::Unhandled(inner)
2407            }
2408        }
2409    }
2410}
2411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_group::UpdateTargetGroupError, R>> for Error
2412where
2413    R: Send + Sync + std::fmt::Debug + 'static,
2414{
2415    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_group::UpdateTargetGroupError, R>) -> Self {
2416        match err {
2417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2420                source: err.into(),
2421            }),
2422        }
2423    }
2424}
2425impl From<crate::operation::update_target_group::UpdateTargetGroupError> for Error {
2426    fn from(err: crate::operation::update_target_group::UpdateTargetGroupError) -> Self {
2427        match err {
2428            crate::operation::update_target_group::UpdateTargetGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2429            crate::operation::update_target_group::UpdateTargetGroupError::ConflictException(inner) => Error::ConflictException(inner),
2430            crate::operation::update_target_group::UpdateTargetGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
2431            crate::operation::update_target_group::UpdateTargetGroupError::ResourceNotFoundException(inner) => {
2432                Error::ResourceNotFoundException(inner)
2433            }
2434            crate::operation::update_target_group::UpdateTargetGroupError::ServiceQuotaExceededException(inner) => {
2435                Error::ServiceQuotaExceededException(inner)
2436            }
2437            crate::operation::update_target_group::UpdateTargetGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2438            crate::operation::update_target_group::UpdateTargetGroupError::ValidationException(inner) => Error::ValidationException(inner),
2439            crate::operation::update_target_group::UpdateTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
2440        }
2441    }
2442}
2443impl ::std::error::Error for Error {
2444    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2445        match self {
2446            Error::AccessDeniedException(inner) => inner.source(),
2447            Error::ConflictException(inner) => inner.source(),
2448            Error::InternalServerException(inner) => inner.source(),
2449            Error::ResourceNotFoundException(inner) => inner.source(),
2450            Error::ServiceQuotaExceededException(inner) => inner.source(),
2451            Error::ThrottlingException(inner) => inner.source(),
2452            Error::ValidationException(inner) => inner.source(),
2453            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2454        }
2455    }
2456}
2457impl ::aws_types::request_id::RequestId for Error {
2458    fn request_id(&self) -> Option<&str> {
2459        match self {
2460            Self::AccessDeniedException(e) => e.request_id(),
2461            Self::ConflictException(e) => e.request_id(),
2462            Self::InternalServerException(e) => e.request_id(),
2463            Self::ResourceNotFoundException(e) => e.request_id(),
2464            Self::ServiceQuotaExceededException(e) => e.request_id(),
2465            Self::ThrottlingException(e) => e.request_id(),
2466            Self::ValidationException(e) => e.request_id(),
2467            Self::Unhandled(e) => e.meta.request_id(),
2468        }
2469    }
2470}