Class: AWSCDK::EC2::CfnNetworkInterface::ConnectionTrackingSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInterface::ConnectionTrackingSpecificationProperty
- Defined in:
- ec2/cfn_network_interface.rb
Overview
Configurable options for connection tracking on a network interface.
For more information, see Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide .
Instance Attribute Summary collapse
-
#tcp_established_timeout ⇒ Numeric?
readonly
Timeout (in seconds) for idle TCP connections in an established state.
-
#udp_stream_timeout ⇒ Numeric?
readonly
Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction.
-
#udp_timeout ⇒ Numeric?
readonly
Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tcp_established_timeout: nil, udp_stream_timeout: nil, udp_timeout: nil) ⇒ ConnectionTrackingSpecificationProperty
constructor
A new instance of ConnectionTrackingSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tcp_established_timeout: nil, udp_stream_timeout: nil, udp_timeout: nil) ⇒ ConnectionTrackingSpecificationProperty
Returns a new instance of ConnectionTrackingSpecificationProperty.
800 801 802 803 804 805 806 807 |
# File 'ec2/cfn_network_interface.rb', line 800 def initialize(tcp_established_timeout: nil, udp_stream_timeout: nil, udp_timeout: nil) @tcp_established_timeout = tcp_established_timeout Jsii::Type.check_type(@tcp_established_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "tcpEstablishedTimeout") unless @tcp_established_timeout.nil? @udp_stream_timeout = udp_stream_timeout Jsii::Type.check_type(@udp_stream_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "udpStreamTimeout") unless @udp_stream_timeout.nil? @udp_timeout = udp_timeout Jsii::Type.check_type(@udp_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "udpTimeout") unless @udp_timeout.nil? end |
Instance Attribute Details
#tcp_established_timeout ⇒ Numeric? (readonly)
Timeout (in seconds) for idle TCP connections in an established state.
Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
815 816 817 |
# File 'ec2/cfn_network_interface.rb', line 815 def tcp_established_timeout @tcp_established_timeout end |
#udp_stream_timeout ⇒ Numeric? (readonly)
Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction.
Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
822 823 824 |
# File 'ec2/cfn_network_interface.rb', line 822 def udp_stream_timeout @udp_stream_timeout end |
#udp_timeout ⇒ Numeric? (readonly)
Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction.
Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
829 830 831 |
# File 'ec2/cfn_network_interface.rb', line 829 def udp_timeout @udp_timeout end |
Class Method Details
.jsii_properties ⇒ Object
831 832 833 834 835 836 837 |
# File 'ec2/cfn_network_interface.rb', line 831 def self.jsii_properties { :tcp_established_timeout => "tcpEstablishedTimeout", :udp_stream_timeout => "udpStreamTimeout", :udp_timeout => "udpTimeout", } end |
Instance Method Details
#to_jsii ⇒ Object
839 840 841 842 843 844 845 846 847 |
# File 'ec2/cfn_network_interface.rb', line 839 def to_jsii result = {} result.merge!({ "tcpEstablishedTimeout" => @tcp_established_timeout, "udpStreamTimeout" => @udp_stream_timeout, "udpTimeout" => @udp_timeout, }) result.compact end |