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