Class: AWSCDK::AppMesh::TCPTimeout
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::TCPTimeout
- Defined in:
- app_mesh/tcp_timeout.rb
Overview
Represents timeouts for TCP protocols.
Instance Attribute Summary collapse
-
#idle ⇒ AWSCDK::Duration?
readonly
Represents an idle timeout.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(idle: nil) ⇒ TCPTimeout
constructor
A new instance of TCPTimeout.
- #to_jsii ⇒ Object
Constructor Details
#initialize(idle: nil) ⇒ TCPTimeout
Returns a new instance of TCPTimeout.
8 9 10 11 |
# File 'app_mesh/tcp_timeout.rb', line 8 def initialize(idle: nil) @idle = idle Jsii::Type.check_type(@idle, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "idle") unless @idle.nil? end |
Instance Attribute Details
#idle ⇒ AWSCDK::Duration? (readonly)
Note:
Default: - none
Represents an idle timeout.
The amount of time that a connection may be idle.
19 20 21 |
# File 'app_mesh/tcp_timeout.rb', line 19 def idle @idle end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'app_mesh/tcp_timeout.rb', line 21 def self.jsii_properties { :idle => "idle", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'app_mesh/tcp_timeout.rb', line 27 def to_jsii result = {} result.merge!({ "idle" => @idle, }) result.compact end |