#[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 ==
.impl StructuralPartialEq for RuleGroupSourceStatelessRuleDefinition
Auto Trait Implementations§
impl Freeze for RuleGroupSourceStatelessRuleDefinition
impl RefUnwindSafe for RuleGroupSourceStatelessRuleDefinition
impl Send for RuleGroupSourceStatelessRuleDefinition
impl Sync for RuleGroupSourceStatelessRuleDefinition
impl Unpin for RuleGroupSourceStatelessRuleDefinition
impl UnwindSafe for RuleGroupSourceStatelessRuleDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more