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