Skip to content

MatchAttributes

Source code in docs_src/capo_network_firewall/types/match_attributes.py
class MatchAttributes(TypedDict, closed=True):
    sources: NotRequired["capo_network_firewall.types.addresses.Addresses"]
    """<p>The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. </p>"""
    destinations: NotRequired["capo_network_firewall.types.addresses.Addresses"]
    """<p>The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. </p>"""
    source_ports: NotRequired["capo_network_firewall.types.port_ranges.PortRanges"]
    """<p>The source port to inspect for. You can specify an individual port, for example <code>1994</code> and you can specify a port range, for example <code>1990:1994</code>. To match with any port, specify <code>ANY</code>.</p> <p> If not specified, this matches with any source port.</p> <p>This setting is only used for protocols 6 (TCP) and 17 (UDP).</p>"""
    destination_ports: NotRequired["capo_network_firewall.types.port_ranges.PortRanges"]
    """<p>The destination port to inspect for. You can specify an individual port, for example <code>1994</code> and you can specify a port range, for example <code>1990:1994</code>. To match with any port, specify <code>ANY</code>.</p> <p>This setting is only used for protocols 6 (TCP) and 17 (UDP). </p>"""
    protocols: NotRequired[
        "capo_network_firewall.types.protocol_numbers.ProtocolNumbers"
    ]
    """<p>The protocols to inspect for, specified using the assigned internet protocol number (IANA) for each protocol. If not specified, this matches with any protocol.</p>"""
    tcp_flags: NotRequired["capo_network_firewall.types.tcp_flags.TCPFlags"]
    """<p>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).</p>"""

destination_ports instance-attribute

destination_ports: NotRequired[PortRanges]

The destination port to inspect for. You can specify an individual port, for example 1994 and you can specify a port range, for example 1990:1994. To match with any port, specify ANY.

This setting is only used for protocols 6 (TCP) and 17 (UDP).

destinations instance-attribute

destinations: NotRequired[Addresses]

The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.

protocols instance-attribute

protocols: NotRequired[ProtocolNumbers]

The protocols to inspect for, specified using the assigned internet protocol number (IANA) for each protocol. If not specified, this matches with any protocol.

source_ports instance-attribute

source_ports: NotRequired[PortRanges]

The source port to inspect for. You can specify an individual port, for example 1994 and you can specify a port range, for example 1990:1994. To match with any port, specify ANY.

If not specified, this matches with any source port.

This setting is only used for protocols 6 (TCP) and 17 (UDP).

sources instance-attribute

sources: NotRequired[Addresses]

The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.

tcp_flags instance-attribute

tcp_flags: NotRequired[TCPFlags]

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).