Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::FlowTimeoutsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_firewall/cfn_firewall_policy.rb

Overview

Describes the amount of time that can pass without any traffic sent through the firewall before the firewall determines that the connection is idle and Network Firewall removes the flow entry from its flow table.

Existing connections and flows are not impacted when you update this value. Only new connections after you update this value are impacted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tcp_idle_timeout_seconds: nil) ⇒ FlowTimeoutsProperty

Returns a new instance of FlowTimeoutsProperty.

Parameters:

  • tcp_idle_timeout_seconds (Numeric, nil) (defaults to: nil)

    The number of seconds that can pass without any TCP traffic sent through the firewall before the firewall determines that the connection is idle.



855
856
857
858
# File 'network_firewall/cfn_firewall_policy.rb', line 855

def initialize(tcp_idle_timeout_seconds: nil)
  @tcp_idle_timeout_seconds = tcp_idle_timeout_seconds
  Jsii::Type.check_type(@tcp_idle_timeout_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "tcpIdleTimeoutSeconds") unless @tcp_idle_timeout_seconds.nil?
end

Instance Attribute Details

#tcp_idle_timeout_secondsNumeric? (readonly)

The number of seconds that can pass without any TCP traffic sent through the firewall before the firewall determines that the connection is idle.

After the idle timeout passes, data packets are dropped, however, the next TCP SYN packet is considered a new flow and is processed by the firewall. Clients or targets can use TCP keepalive packets to reset the idle timeout.

You can define the TcpIdleTimeoutSeconds value to be between 60 and 6000 seconds. If no value is provided, it defaults to 350 seconds.



868
869
870
# File 'network_firewall/cfn_firewall_policy.rb', line 868

def tcp_idle_timeout_seconds
  @tcp_idle_timeout_seconds
end

Class Method Details

.jsii_propertiesObject



870
871
872
873
874
# File 'network_firewall/cfn_firewall_policy.rb', line 870

def self.jsii_properties
  {
    :tcp_idle_timeout_seconds => "tcpIdleTimeoutSeconds",
  }
end

Instance Method Details

#to_jsiiObject



876
877
878
879
880
881
882
# File 'network_firewall/cfn_firewall_policy.rb', line 876

def to_jsii
  result = {}
  result.merge!({
    "tcpIdleTimeoutSeconds" => @tcp_idle_timeout_seconds,
  })
  result.compact
end