Struct aws_sdk_networkfirewall::types::RulesSource  
source · #[non_exhaustive]pub struct RulesSource {
    pub rules_string: Option<String>,
    pub rules_source_list: Option<RulesSourceList>,
    pub stateful_rules: Option<Vec<StatefulRule>>,
    pub stateless_rules_and_custom_actions: Option<StatelessRulesAndCustomActions>,
}Expand description
The stateless or stateful rules definitions for use in a single rule group. Each rule group requires a single RulesSource. You can use an instance of this for either stateless rules or stateful rules. 
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.rules_string: Option<String>Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.
rules_source_list: Option<RulesSourceList>Stateful inspection criteria for a domain list rule group.
stateful_rules: Option<Vec<StatefulRule>>An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format. 
stateless_rules_and_custom_actions: Option<StatelessRulesAndCustomActions>Stateless inspection criteria to be used in a stateless rule group.
Implementations§
source§impl RulesSource
 
impl RulesSource
sourcepub fn rules_string(&self) -> Option<&str>
 
pub fn rules_string(&self) -> Option<&str>
Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.
sourcepub fn rules_source_list(&self) -> Option<&RulesSourceList>
 
pub fn rules_source_list(&self) -> Option<&RulesSourceList>
Stateful inspection criteria for a domain list rule group.
sourcepub fn stateful_rules(&self) -> &[StatefulRule]
 
pub fn stateful_rules(&self) -> &[StatefulRule]
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format. 
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .stateful_rules.is_none().
sourcepub fn stateless_rules_and_custom_actions(
    &self
) -> Option<&StatelessRulesAndCustomActions>
 
pub fn stateless_rules_and_custom_actions( &self ) -> Option<&StatelessRulesAndCustomActions>
Stateless inspection criteria to be used in a stateless rule group.
source§impl RulesSource
 
impl RulesSource
sourcepub fn builder() -> RulesSourceBuilder
 
pub fn builder() -> RulesSourceBuilder
Creates a new builder-style object to manufacture RulesSource.
Trait Implementations§
source§impl Clone for RulesSource
 
impl Clone for RulesSource
source§fn clone(&self) -> RulesSource
 
fn clone(&self) -> RulesSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RulesSource
 
impl Debug for RulesSource
source§impl PartialEq for RulesSource
 
impl PartialEq for RulesSource
source§fn eq(&self, other: &RulesSource) -> bool
 
fn eq(&self, other: &RulesSource) -> bool
self and other values to be equal, and is used
by ==.