Class: Aws::EC2::Types::TransitGatewayNatRule

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

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#match_source_cidr ⇒ String

The IPv4 CIDR block of the source addresses to translate.

Returns:

  • (String)


91182
91183
91184
91185
91186
91187
91188
91189
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 91182

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

#nat_cidr ⇒ String

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

Returns:

  • (String)


91182
91183
91184
91185
91186
91187
91188
91189
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 91182

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

#rule_number ⇒ Integer

The rule number.

Returns:

  • (Integer)


91182
91183
91184
91185
91186
91187
91188
91189
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 91182

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

#state ⇒ String

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.

Returns:

  • (String)


91182
91183
91184
91185
91186
91187
91188
91189
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 91182

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