Struct aws_sdk_networkfirewall::model::MatchAttributes
source · #[non_exhaustive]pub struct MatchAttributes { /* private fields */ }
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.
Implementations§
source§impl 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
.
sourcepub fn protocols(&self) -> Option<&[i32]>
pub fn protocols(&self) -> Option<&[i32]>
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
sourcepub fn tcp_flags(&self) -> Option<&[TcpFlagField]>
pub fn tcp_flags(&self) -> Option<&[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).
source§impl MatchAttributes
impl MatchAttributes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MatchAttributes
.
Trait Implementations§
source§impl Clone for MatchAttributes
impl Clone for MatchAttributes
source§fn clone(&self) -> MatchAttributes
fn clone(&self) -> MatchAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MatchAttributes
impl Debug for MatchAttributes
source§impl PartialEq<MatchAttributes> for MatchAttributes
impl PartialEq<MatchAttributes> for MatchAttributes
source§fn eq(&self, other: &MatchAttributes) -> bool
fn eq(&self, other: &MatchAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.