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