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