Class: AWSCDK::AppMesh::TCPConnectionPool
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::TCPConnectionPool
- Defined in:
- app_mesh/tcp_connection_pool.rb
Overview
Connection pool properties for TCP listeners.
Instance Attribute Summary collapse
-
#max_connections ⇒ Numeric
readonly
The maximum connections in the pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_connections:) ⇒ TCPConnectionPool
constructor
A new instance of TCPConnectionPool.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_connections:) ⇒ TCPConnectionPool
Returns a new instance of TCPConnectionPool.
8 9 10 11 |
# File 'app_mesh/tcp_connection_pool.rb', line 8 def initialize(max_connections:) @max_connections = max_connections Jsii::Type.check_type(@max_connections, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxConnections") end |
Instance Attribute Details
#max_connections ⇒ Numeric (readonly)
Note:
Default: - none
The maximum connections in the pool.
17 18 19 |
# File 'app_mesh/tcp_connection_pool.rb', line 17 def max_connections @max_connections end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'app_mesh/tcp_connection_pool.rb', line 19 def self.jsii_properties { :max_connections => "maxConnections", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'app_mesh/tcp_connection_pool.rb', line 25 def to_jsii result = {} result.merge!({ "maxConnections" => @max_connections, }) result.compact end |