Skip to content

NatRule

Source code in docs_src/capo_networkmanager/types/nat_rule.py
class NatRule(TypedDict, closed=True):
    rule_number: NotRequired["capo_networkmanager.types.nat_rule_number.NatRuleNumber"]
    """<p>The rule number. Rule numbers identify the rules of an attachment and don't set the order in which rules are evaluated.</p>"""
    match_source_cidr: NotRequired["capo_networkmanager.types.ip_address.IPAddress"]
    """<p>The source CIDR block that the rule matches for traffic from the attachment.</p>"""
    nat_cidr: NotRequired["capo_networkmanager.types.ip_address.IPAddress"]
    """<p>The CIDR block that matching source addresses are translated to.</p>"""
    state: NotRequired["capo_networkmanager.types.nat_rule_state.NatRuleState"]
    """<p>The state of the NAT rule. The possible values are the following:</p> <ul> <li> <p> <code>CREATING</code>: The rule is being created.</p> </li> <li> <p> <code>MODIFYING</code>: The rule is being modified.</p> </li> <li> <p> <code>DELETING</code>: The rule is being deleted.</p> </li> <li> <p> <code>ACTIVATING</code>: NAT gateway support is being enabled, and the rule is being applied.</p> </li> <li> <p> <code>ACTIVATED</code>: NAT gateway support is enabled, and the rule is applied.</p> </li> <li> <p> <code>DEACTIVATING</code>: NAT gateway support is being disabled, and the rule is being removed from use.</p> </li> <li> <p> <code>DEACTIVATED</code>: NAT gateway support is disabled, and the rule isn't applied.</p> </li> <li> <p> <code>FAILED</code>: The attachment failed to be created, and the rule isn't applied.</p> </li> <li> <p> <code>PENDING_ATTACHMENT_ACCEPTANCE</code>: The attachment is pending acceptance. The rule is applied after the attachment is accepted.</p> </li> </ul>"""

match_source_cidr instance-attribute

match_source_cidr: NotRequired[IPAddress]

The source CIDR block that the rule matches for traffic from the attachment.

nat_cidr instance-attribute

nat_cidr: NotRequired[IPAddress]

The CIDR block that matching source addresses are translated to.

rule_number instance-attribute

rule_number: NotRequired[NatRuleNumber]

The rule number. Rule numbers identify the rules of an attachment and don't set the order in which rules are evaluated.

state instance-attribute

state: NotRequired[NatRuleState]

The state of the NAT rule. The possible values are the following:

  • CREATING: The rule is being created.

  • MODIFYING: The rule is being modified.

  • DELETING: The rule is being deleted.

  • ACTIVATING: NAT gateway support is being enabled, and the rule is being applied.

  • ACTIVATED: NAT gateway support is enabled, and the rule is applied.

  • DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use.

  • DEACTIVATED: NAT gateway support is disabled, and the rule isn't applied.

  • FAILED: The attachment failed to be created, and the rule isn't applied.

  • PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.