Class: AWSCDK::AppMesh::TCPTimeout

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/tcp_timeout.rb

Overview

Represents timeouts for TCP protocols.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idle: nil) ⇒ TCPTimeout

Returns a new instance of TCPTimeout.

Parameters:

  • idle (AWSCDK::Duration, nil) (defaults to: nil)

    Represents an idle timeout.



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

#idleAWSCDK::Duration? (readonly)

Note:

Default: - none

Represents an idle timeout.

The amount of time that a connection may be idle.

Returns:



19
20
21
# File 'app_mesh/tcp_timeout.rb', line 19

def idle
  @idle
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'app_mesh/tcp_timeout.rb', line 21

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

Instance Method Details

#to_jsiiObject



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