#[non_exhaustive]pub struct AwsWafv2RulesDetailsBuilder { /* private fields */ }Expand description
A builder for AwsWafv2RulesDetails.
Implementations§
source§impl AwsWafv2RulesDetailsBuilder
impl AwsWafv2RulesDetailsBuilder
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 get_action(&self) -> &Option<AwsWafv2RulesActionDetails>
pub fn get_action(&self) -> &Option<AwsWafv2RulesActionDetails>
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 get_override_action(&self) -> &Option<String>
pub fn get_override_action(&self) -> &Option<String>
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 get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
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 get_visibility_config(&self) -> &Option<AwsWafv2VisibilityConfigDetails>
pub fn get_visibility_config(&self) -> &Option<AwsWafv2VisibilityConfigDetails>
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.
Trait Implementations§
source§impl Clone for AwsWafv2RulesDetailsBuilder
impl Clone for AwsWafv2RulesDetailsBuilder
source§fn clone(&self) -> AwsWafv2RulesDetailsBuilder
fn clone(&self) -> AwsWafv2RulesDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsWafv2RulesDetailsBuilder
impl Debug for AwsWafv2RulesDetailsBuilder
source§impl Default for AwsWafv2RulesDetailsBuilder
impl Default for AwsWafv2RulesDetailsBuilder
source§fn default() -> AwsWafv2RulesDetailsBuilder
fn default() -> AwsWafv2RulesDetailsBuilder
source§impl PartialEq for AwsWafv2RulesDetailsBuilder
impl PartialEq for AwsWafv2RulesDetailsBuilder
source§fn eq(&self, other: &AwsWafv2RulesDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafv2RulesDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.