#[non_exhaustive]pub struct RuleGroupSourceStatelessRuleDefinition {
pub actions: Option<Vec<String>>,
pub match_attributes: Option<RuleGroupSourceStatelessRuleMatchAttributes>,
}
Expand description
The definition of the stateless rule.
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.actions: Option<Vec<String>>
The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action (aws:pass
, aws:drop
, or aws:forward_to_sfe
). You can then add custom actions.
match_attributes: Option<RuleGroupSourceStatelessRuleMatchAttributes>
The criteria for Network Firewall to use to inspect an individual packet in a stateless rule inspection.
Implementations§
source§impl RuleGroupSourceStatelessRuleDefinition
impl RuleGroupSourceStatelessRuleDefinition
sourcepub fn actions(&self) -> &[String]
pub fn actions(&self) -> &[String]
The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action (aws:pass
, aws:drop
, or aws:forward_to_sfe
). You can then add custom actions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
sourcepub fn match_attributes(
&self
) -> Option<&RuleGroupSourceStatelessRuleMatchAttributes>
pub fn match_attributes( &self ) -> Option<&RuleGroupSourceStatelessRuleMatchAttributes>
The criteria for Network Firewall to use to inspect an individual packet in a stateless rule inspection.
source§impl RuleGroupSourceStatelessRuleDefinition
impl RuleGroupSourceStatelessRuleDefinition
sourcepub fn builder() -> RuleGroupSourceStatelessRuleDefinitionBuilder
pub fn builder() -> RuleGroupSourceStatelessRuleDefinitionBuilder
Creates a new builder-style object to manufacture RuleGroupSourceStatelessRuleDefinition
.
Trait Implementations§
source§impl Clone for RuleGroupSourceStatelessRuleDefinition
impl Clone for RuleGroupSourceStatelessRuleDefinition
source§fn clone(&self) -> RuleGroupSourceStatelessRuleDefinition
fn clone(&self) -> RuleGroupSourceStatelessRuleDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RuleGroupSourceStatelessRuleDefinition
impl PartialEq for RuleGroupSourceStatelessRuleDefinition
source§fn eq(&self, other: &RuleGroupSourceStatelessRuleDefinition) -> bool
fn eq(&self, other: &RuleGroupSourceStatelessRuleDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.