View a markdown version of this page

NatRuleRequest - AWS Global Networks for Transit Gateways

NatRuleRequest

Describes a NAT rule to configure on an attachment. Source addresses in the source CIDR block of traffic from the attachment are translated to the same host addresses in the NAT CIDR block. Traffic to an address in the NAT CIDR block is translated back to the matching address in the source CIDR block.

Contents

MatchSourceCidr

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

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50.

Pattern: [\s\S]*

Required: Yes

NatCidr

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.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50.

Pattern: [\s\S]*

Required: Yes

RuleNumber

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 32766.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: