Class: Aws::NetworkManager::Types::NatRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#match_source_cidr ⇒ String

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

Returns:

  • (String)


5138
5139
5140
5141
5142
5143
5144
# File 'gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/types.rb', line 5138

class NatRuleRequest < Struct.new(
  :rule_number,
  :match_source_cidr,
  :nat_cidr)
  SENSITIVE = []
  include Aws::Structure
end

#nat_cidr ⇒ String

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.

Returns:

  • (String)


5138
5139
5140
5141
5142
5143
5144
# File 'gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/types.rb', line 5138

class NatRuleRequest < Struct.new(
  :rule_number,
  :match_source_cidr,
  :nat_cidr)
  SENSITIVE = []
  include Aws::Structure
end

#rule_number ⇒ Integer

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

Returns:

  • (Integer)


5138
5139
5140
5141
5142
5143
5144
# File 'gems/aws-sdk-networkmanager/lib/aws-sdk-networkmanager/types.rb', line 5138

class NatRuleRequest < Struct.new(
  :rule_number,
  :match_source_cidr,
  :nat_cidr)
  SENSITIVE = []
  include Aws::Structure
end