Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHttpConnectionPoolProperty

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

Overview

An object that represents a type of connection pool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_connections:, max_pending_requests: nil) ⇒ VirtualGatewayHttpConnectionPoolProperty

Returns a new instance of VirtualGatewayHttpConnectionPoolProperty.

Parameters:

  • max_connections (Numeric)

    Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.

  • max_pending_requests (Numeric, nil) (defaults to: nil)

    Number of overflowing requests after max_connections Envoy will queue to upstream cluster.



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_connectionsNumeric (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_requestsNumeric? (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_propertiesObject



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_jsiiObject



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