Struct aws_sdk_securityhub::model::aws_wafv2_rules_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsWafv2RulesDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn action(self, input: AwsWafv2RulesActionDetails) -> Self
pub fn action(self, input: AwsWafv2RulesActionDetails) -> Self
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
sourcepub fn set_action(self, input: Option<AwsWafv2RulesActionDetails>) -> Self
pub fn set_action(self, input: Option<AwsWafv2RulesActionDetails>) -> Self
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
sourcepub fn override_action(self, input: impl Into<String>) -> Self
pub fn override_action(self, input: impl Into<String>) -> Self
The action to use in the place of the action that results from the rule group evaluation.
sourcepub fn set_override_action(self, input: Option<String>) -> Self
pub fn set_override_action(self, input: Option<String>) -> Self
The action to use in the place of the action that results from the rule group evaluation.
sourcepub fn priority(self, input: i32) -> Self
pub fn priority(self, input: i32) -> Self
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
sourcepub fn visibility_config(self, input: AwsWafv2VisibilityConfigDetails) -> Self
pub fn visibility_config(self, input: AwsWafv2VisibilityConfigDetails) -> Self
Defines and enables Amazon CloudWatch metrics and web request sample collection.
sourcepub fn set_visibility_config(
self,
input: Option<AwsWafv2VisibilityConfigDetails>
) -> Self
pub fn set_visibility_config(
self,
input: Option<AwsWafv2VisibilityConfigDetails>
) -> Self
Defines and enables Amazon CloudWatch metrics and web request sample collection.
sourcepub fn build(self) -> AwsWafv2RulesDetails
pub fn build(self) -> AwsWafv2RulesDetails
Consumes the builder and constructs a AwsWafv2RulesDetails
.