pub struct WafAction {
pub type_: Option<String>,
}
Expand description
Details about the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
Fields§
§type_: Option<String>
Specifies how you want AWS WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
-
ALLOW
- AWS WAF allows requests -
BLOCK
- AWS WAF blocks requests -
COUNT
- AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNT
for the default action for a WebACL.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WafAction
impl<'de> Deserialize<'de> for WafAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for WafAction
Auto Trait Implementations§
impl Freeze for WafAction
impl RefUnwindSafe for WafAction
impl Send for WafAction
impl Sync for WafAction
impl Unpin for WafAction
impl UnwindSafe for WafAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more