Class: AWSCDK::AppMesh::HttpConnectionPool
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HttpConnectionPool
- Defined in:
- app_mesh/http_connection_pool.rb
Overview
Connection pool properties for HTTP listeners.
Instance Attribute Summary collapse
-
#max_connections ⇒ Numeric
readonly
The maximum connections in the pool.
-
#max_pending_requests ⇒ Numeric
readonly
The maximum pending requests in the pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_connections:, max_pending_requests:) ⇒ HttpConnectionPool
constructor
A new instance of HttpConnectionPool.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_connections:, max_pending_requests:) ⇒ HttpConnectionPool
Returns a new instance of HttpConnectionPool.
9 10 11 12 13 14 |
# File 'app_mesh/http_connection_pool.rb', line 9 def initialize(max_connections:, max_pending_requests:) @max_connections = max_connections Jsii::Type.check_type(@max_connections, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxConnections") @max_pending_requests = max_pending_requests Jsii::Type.check_type(@max_pending_requests, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxPendingRequests") end |
Instance Attribute Details
#max_connections ⇒ Numeric (readonly)
Note:
Default: - none
The maximum connections in the pool.
20 21 22 |
# File 'app_mesh/http_connection_pool.rb', line 20 def max_connections @max_connections end |
#max_pending_requests ⇒ Numeric (readonly)
Note:
Default: - none
The maximum pending requests in the pool.
25 26 27 |
# File 'app_mesh/http_connection_pool.rb', line 25 def max_pending_requests @max_pending_requests end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'app_mesh/http_connection_pool.rb', line 27 def self.jsii_properties { :max_connections => "maxConnections", :max_pending_requests => "maxPendingRequests", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'app_mesh/http_connection_pool.rb', line 34 def to_jsii result = {} result.merge!({ "maxConnections" => @max_connections, "maxPendingRequests" => @max_pending_requests, }) result.compact end |