Skip to content

NatRuleRequest

Source code in docs_src/capo_networkmanager/types/nat_rule_request.py
class NatRuleRequest(TypedDict, closed=True):
    rule_number: "capo_networkmanager.types.nat_rule_number.NatRuleNumber"
    """<p>The rule number, from 1 to 32766. Each rule number must be unique for the attachment.</p>"""
    match_source_cidr: "capo_networkmanager.types.ip_address.IPAddress"
    """<p>The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).</p>"""
    nat_cidr: "capo_networkmanager.types.ip_address.IPAddress"
    """<p>The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length of <code>MatchSourceCidr</code>. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.</p>"""

match_source_cidr instance-attribute

match_source_cidr: IPAddress

The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).

nat_cidr instance-attribute

nat_cidr: IPAddress

The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length of MatchSourceCidr. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.

rule_number instance-attribute

rule_number: NatRuleNumber

The rule number, from 1 to 32766. Each rule number must be unique for the attachment.