Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayConnectionPoolProperty

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

Overview

An object that represents the type of virtual gateway connection pool.

Only one protocol is used at a time and should be the same protocol as the one chosen under port mapping.

If not present the default value for max_pending_requests is 2147483647 .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grpc: nil, http: nil, http2: nil) ⇒ VirtualGatewayConnectionPoolProperty

Returns a new instance of VirtualGatewayConnectionPoolProperty.

Parameters:



991
992
993
994
995
996
997
998
# File 'app_mesh/cfn_virtual_gateway.rb', line 991

def initialize(grpc: nil, http: nil, http2: nil)
  @grpc = grpc.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayGrpcConnectionPoolProperty.new(**grpc.transform_keys(&:to_sym)) : grpc
  Jsii::Type.check_type(@grpc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5R3JwY0Nvbm5lY3Rpb25Qb29sUHJvcGVydHkifV19fQ==")), "grpc") unless @grpc.nil?
  @http = http.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHttpConnectionPoolProperty.new(**http.transform_keys(&:to_sym)) : http
  Jsii::Type.check_type(@http, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5SHR0cENvbm5lY3Rpb25Qb29sUHJvcGVydHkifV19fQ==")), "http") unless @http.nil?
  @http2 = http2.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHttp2ConnectionPoolProperty.new(**http2.transform_keys(&:to_sym)) : http2
  Jsii::Type.check_type(@http2, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5SHR0cDJDb25uZWN0aW9uUG9vbFByb3BlcnR5In1dfX0=")), "http2") unless @http2.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



1016
1017
1018
1019
1020
1021
1022
# File 'app_mesh/cfn_virtual_gateway.rb', line 1016

def self.jsii_properties
  {
    :grpc => "grpc",
    :http => "http",
    :http2 => "http2",
  }
end

Instance Method Details

#to_jsiiObject



1024
1025
1026
1027
1028
1029
1030
1031
1032
# File 'app_mesh/cfn_virtual_gateway.rb', line 1024

def to_jsii
  result = {}
  result.merge!({
    "grpc" => @grpc,
    "http" => @http,
    "http2" => @http2,
  })
  result.compact
end