Struct aws_sdk_wafv2::types::builders::RuleActionBuilder
source · #[non_exhaustive]pub struct RuleActionBuilder { /* private fields */ }
Expand description
A builder for RuleAction
.
Implementations§
source§impl RuleActionBuilder
impl RuleActionBuilder
sourcepub fn block(self, input: BlockAction) -> Self
pub fn block(self, input: BlockAction) -> Self
Instructs WAF to block the web request.
sourcepub fn set_block(self, input: Option<BlockAction>) -> Self
pub fn set_block(self, input: Option<BlockAction>) -> Self
Instructs WAF to block the web request.
sourcepub fn get_block(&self) -> &Option<BlockAction>
pub fn get_block(&self) -> &Option<BlockAction>
Instructs WAF to block the web request.
sourcepub fn allow(self, input: AllowAction) -> Self
pub fn allow(self, input: AllowAction) -> Self
Instructs WAF to allow the web request.
sourcepub fn set_allow(self, input: Option<AllowAction>) -> Self
pub fn set_allow(self, input: Option<AllowAction>) -> Self
Instructs WAF to allow the web request.
sourcepub fn get_allow(&self) -> &Option<AllowAction>
pub fn get_allow(&self) -> &Option<AllowAction>
Instructs WAF to allow the web request.
sourcepub fn count(self, input: CountAction) -> Self
pub fn count(self, input: CountAction) -> Self
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn set_count(self, input: Option<CountAction>) -> Self
pub fn set_count(self, input: Option<CountAction>) -> Self
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn get_count(&self) -> &Option<CountAction>
pub fn get_count(&self) -> &Option<CountAction>
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn captcha(self, input: CaptchaAction) -> Self
pub fn captcha(self, input: CaptchaAction) -> Self
Instructs WAF to run a CAPTCHA
check against the web request.
sourcepub fn set_captcha(self, input: Option<CaptchaAction>) -> Self
pub fn set_captcha(self, input: Option<CaptchaAction>) -> Self
Instructs WAF to run a CAPTCHA
check against the web request.
sourcepub fn get_captcha(&self) -> &Option<CaptchaAction>
pub fn get_captcha(&self) -> &Option<CaptchaAction>
Instructs WAF to run a CAPTCHA
check against the web request.
sourcepub fn challenge(self, input: ChallengeAction) -> Self
pub fn challenge(self, input: ChallengeAction) -> Self
Instructs WAF to run a Challenge
check against the web request.
sourcepub fn set_challenge(self, input: Option<ChallengeAction>) -> Self
pub fn set_challenge(self, input: Option<ChallengeAction>) -> Self
Instructs WAF to run a Challenge
check against the web request.
sourcepub fn get_challenge(&self) -> &Option<ChallengeAction>
pub fn get_challenge(&self) -> &Option<ChallengeAction>
Instructs WAF to run a Challenge
check against the web request.
sourcepub fn build(self) -> RuleAction
pub fn build(self) -> RuleAction
Consumes the builder and constructs a RuleAction
.
Trait Implementations§
source§impl Clone for RuleActionBuilder
impl Clone for RuleActionBuilder
source§fn clone(&self) -> RuleActionBuilder
fn clone(&self) -> RuleActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleActionBuilder
impl Debug for RuleActionBuilder
source§impl Default for RuleActionBuilder
impl Default for RuleActionBuilder
source§fn default() -> RuleActionBuilder
fn default() -> RuleActionBuilder
source§impl PartialEq for RuleActionBuilder
impl PartialEq for RuleActionBuilder
source§fn eq(&self, other: &RuleActionBuilder) -> bool
fn eq(&self, other: &RuleActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.