Struct aws_sdk_networkfirewall::model::MatchAttributes
source · [−]#[non_exhaustive]pub struct MatchAttributes {
pub sources: Option<Vec<Address>>,
pub destinations: Option<Vec<Address>>,
pub source_ports: Option<Vec<PortRange>>,
pub destination_ports: Option<Vec<PortRange>>,
pub protocols: Option<Vec<i32>>,
pub tcp_flags: Option<Vec<TcpFlagField>>,
}
Expand description
Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection. Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags.
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.sources: Option<Vec<Address>>
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
destinations: Option<Vec<Address>>
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
source_ports: Option<Vec<PortRange>>
The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
destination_ports: Option<Vec<PortRange>>
The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
protocols: Option<Vec<i32>>
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
tcp_flags: Option<Vec<TcpFlagField>>
The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
Implementations
sourceimpl MatchAttributes
impl MatchAttributes
sourcepub fn sources(&self) -> Option<&[Address]>
pub fn sources(&self) -> Option<&[Address]>
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
sourcepub fn destinations(&self) -> Option<&[Address]>
pub fn destinations(&self) -> Option<&[Address]>
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
sourcepub fn source_ports(&self) -> Option<&[PortRange]>
pub fn source_ports(&self) -> Option<&[PortRange]>
The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
sourcepub fn destination_ports(&self) -> Option<&[PortRange]>
pub fn destination_ports(&self) -> Option<&[PortRange]>
The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
sourceimpl MatchAttributes
impl MatchAttributes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MatchAttributes
Trait Implementations
sourceimpl Clone for MatchAttributes
impl Clone for MatchAttributes
sourcefn clone(&self) -> MatchAttributes
fn clone(&self) -> MatchAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MatchAttributes
impl Debug for MatchAttributes
sourceimpl PartialEq<MatchAttributes> for MatchAttributes
impl PartialEq<MatchAttributes> for MatchAttributes
sourcefn eq(&self, other: &MatchAttributes) -> bool
fn eq(&self, other: &MatchAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MatchAttributes) -> bool
fn ne(&self, other: &MatchAttributes) -> bool
This method tests for !=
.
impl StructuralPartialEq for MatchAttributes
Auto Trait Implementations
impl RefUnwindSafe for MatchAttributes
impl Send for MatchAttributes
impl Sync for MatchAttributes
impl Unpin for MatchAttributes
impl UnwindSafe for MatchAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more