Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHttpConnectionPoolProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHttpConnectionPoolProperty
- Defined in:
- app_mesh/cfn_virtual_gateway.rb
Overview
An object that represents a type of connection pool.
Instance Attribute Summary collapse
-
#max_connections ⇒ Numeric
readonly
Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
-
#max_pending_requests ⇒ Numeric?
readonly
Number of overflowing requests after
max_connectionsEnvoy will queue to upstream cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_connections:, max_pending_requests: nil) ⇒ VirtualGatewayHttpConnectionPoolProperty
constructor
A new instance of VirtualGatewayHttpConnectionPoolProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_connections:, max_pending_requests: nil) ⇒ VirtualGatewayHttpConnectionPoolProperty
Returns a new instance of VirtualGatewayHttpConnectionPoolProperty.
1255 1256 1257 1258 1259 1260 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1255 def initialize(max_connections:, max_pending_requests: nil) @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") unless @max_pending_requests.nil? end |
Instance Attribute Details
#max_connections ⇒ Numeric (readonly)
Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
1266 1267 1268 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1266 def max_connections @max_connections end |
#max_pending_requests ⇒ Numeric? (readonly)
Number of overflowing requests after max_connections Envoy will queue to upstream cluster.
1271 1272 1273 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1271 def max_pending_requests @max_pending_requests end |
Class Method Details
.jsii_properties ⇒ Object
1273 1274 1275 1276 1277 1278 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1273 def self.jsii_properties { :max_connections => "maxConnections", :max_pending_requests => "maxPendingRequests", } end |
Instance Method Details
#to_jsii ⇒ Object
1280 1281 1282 1283 1284 1285 1286 1287 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1280 def to_jsii result = {} result.merge!({ "maxConnections" => @max_connections, "maxPendingRequests" => @max_pending_requests, }) result.compact end |