Struct aws_sdk_wafv2::types::Condition
source · #[non_exhaustive]pub struct Condition {
pub action_condition: Option<ActionCondition>,
pub label_name_condition: Option<LabelNameCondition>,
}
Expand description
A single match condition for a Filter
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action_condition: Option<ActionCondition>
A single action condition. This is the action setting that a log record must contain in order to meet the condition.
label_name_condition: Option<LabelNameCondition>
A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
Implementations§
source§impl Condition
impl Condition
sourcepub fn action_condition(&self) -> Option<&ActionCondition>
pub fn action_condition(&self) -> Option<&ActionCondition>
A single action condition. This is the action setting that a log record must contain in order to meet the condition.
sourcepub fn label_name_condition(&self) -> Option<&LabelNameCondition>
pub fn label_name_condition(&self) -> Option<&LabelNameCondition>
A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.