Skip to content

EC2  >  Structures  >  TransitGatewayNatRule

TransitGatewayNatRule

Structure Class

TransitGatewayNatRule dataclass

Bases: _SerdeShape

Contains information about a NAT gateway rule for a transit gateway attachment, including the rule number, the source CIDR block, the translated CIDR block, and the state of the rule.

Attributes

match_source_cidr class-attribute instance-attribute
match_source_cidr: str | None = ...

The IPv4 CIDR block of the source addresses to translate.

nat_cidr class-attribute instance-attribute
nat_cidr: str | None = ...

The IPv4 CIDR block that the transit gateway translates the source addresses to.

rule_number class-attribute instance-attribute
rule_number: int | None = ...

The rule number.

state class-attribute instance-attribute
state: str | None = ...

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

  • pending - The transit gateway is applying a change to the rule.

  • activated - The rule is in effect because NAT gateway support is enabled for the attachment.

  • deactivated - The rule isn't in effect because NAT gateway support is disabled for the attachment.