pub struct Builder { /* private fields */ }
Expand description
A builder for AwsWafv2RulesActionDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn allow(self, input: AwsWafv2ActionAllowDetails) -> Self
pub fn allow(self, input: AwsWafv2ActionAllowDetails) -> Self
Instructs WAF to allow the web request.
sourcepub fn set_allow(self, input: Option<AwsWafv2ActionAllowDetails>) -> Self
pub fn set_allow(self, input: Option<AwsWafv2ActionAllowDetails>) -> Self
Instructs WAF to allow the web request.
sourcepub fn block(self, input: AwsWafv2ActionBlockDetails) -> Self
pub fn block(self, input: AwsWafv2ActionBlockDetails) -> Self
Instructs WAF to block the web request.
sourcepub fn set_block(self, input: Option<AwsWafv2ActionBlockDetails>) -> Self
pub fn set_block(self, input: Option<AwsWafv2ActionBlockDetails>) -> Self
Instructs WAF to block the web request.
sourcepub fn captcha(self, input: AwsWafv2RulesActionCaptchaDetails) -> Self
pub fn captcha(self, input: AwsWafv2RulesActionCaptchaDetails) -> Self
Instructs WAF to run a CAPTCHA check against the web request.
sourcepub fn set_captcha(
self,
input: Option<AwsWafv2RulesActionCaptchaDetails>
) -> Self
pub fn set_captcha(
self,
input: Option<AwsWafv2RulesActionCaptchaDetails>
) -> Self
Instructs WAF to run a CAPTCHA check against the web request.
sourcepub fn count(self, input: AwsWafv2RulesActionCountDetails) -> Self
pub fn count(self, input: AwsWafv2RulesActionCountDetails) -> 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<AwsWafv2RulesActionCountDetails>) -> Self
pub fn set_count(self, input: Option<AwsWafv2RulesActionCountDetails>) -> Self
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn build(self) -> AwsWafv2RulesActionDetails
pub fn build(self) -> AwsWafv2RulesActionDetails
Consumes the builder and constructs a AwsWafv2RulesActionDetails
.