Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayConnectionPoolProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayConnectionPoolProperty
- 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
-
#grpc ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents a type of connection pool.
-
#http ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents a type of connection pool.
-
#http2 ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents a type of connection pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(grpc: nil, http: nil, http2: nil) ⇒ VirtualGatewayConnectionPoolProperty
constructor
A new instance of VirtualGatewayConnectionPoolProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(grpc: nil, http: nil, http2: nil) ⇒ VirtualGatewayConnectionPoolProperty
Returns a new instance of VirtualGatewayConnectionPoolProperty.
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
#grpc ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents a type of connection pool.
1004 1005 1006 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1004 def grpc @grpc end |
#http ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents a type of connection pool.
1009 1010 1011 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1009 def http @http end |
#http2 ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents a type of connection pool.
1014 1015 1016 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1014 def http2 @http2 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |