Class: AWSCDK::EC2::CfnLaunchTemplate::ConnectionTrackingSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::ConnectionTrackingSpecificationProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
A security group connection tracking specification that enables you to set the idle timeout for connection tracking on an Elastic network interface.
For more information, see Connection tracking timeouts in the Amazon EC2 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.
934 935 936 937 938 939 940 941 |
# File 'ec2/cfn_launch_template.rb', line 934 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.
949 950 951 |
# File 'ec2/cfn_launch_template.rb', line 949 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.
956 957 958 |
# File 'ec2/cfn_launch_template.rb', line 956 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.
963 964 965 |
# File 'ec2/cfn_launch_template.rb', line 963 def udp_timeout @udp_timeout end |
Class Method Details
.jsii_properties ⇒ Object
965 966 967 968 969 970 971 |
# File 'ec2/cfn_launch_template.rb', line 965 def self.jsii_properties { :tcp_established_timeout => "tcpEstablishedTimeout", :udp_stream_timeout => "udpStreamTimeout", :udp_timeout => "udpTimeout", } end |
Instance Method Details
#to_jsii ⇒ Object
973 974 975 976 977 978 979 980 981 |
# File 'ec2/cfn_launch_template.rb', line 973 def to_jsii result = {} result.merge!({ "tcpEstablishedTimeout" => @tcp_established_timeout, "udpStreamTimeout" => @udp_stream_timeout, "udpTimeout" => @udp_timeout, }) result.compact end |