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