Class: AWSCDK::AppMesh::HttpConnectionPool

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

Overview

Connection pool properties for HTTP listeners.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_connections:, max_pending_requests:) ⇒ HttpConnectionPool

Returns a new instance of HttpConnectionPool.

Parameters:

  • max_connections (Numeric)

    The maximum connections in the pool.

  • max_pending_requests (Numeric)

    The maximum pending requests in the pool.



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_connectionsNumeric (readonly)

Note:

Default: - none

The maximum connections in the pool.

Returns:

  • (Numeric)


20
21
22
# File 'app_mesh/http_connection_pool.rb', line 20

def max_connections
  @max_connections
end

#max_pending_requestsNumeric (readonly)

Note:

Default: - none

The maximum pending requests in the pool.

Returns:

  • (Numeric)


25
26
27
# File 'app_mesh/http_connection_pool.rb', line 25

def max_pending_requests
  @max_pending_requests
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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