Skip to main content

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