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