Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerProperty
- Defined in:
- app_mesh/cfn_virtual_gateway.rb
Overview
An object that represents a listener for a virtual gateway.
Instance Attribute Summary collapse
-
#connection_pool ⇒ AWSCDK::IResolvable, ...
readonly
The connection pool information for the listener.
-
#health_check ⇒ AWSCDK::IResolvable, ...
readonly
The health check information for the listener.
-
#port_mapping ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayPortMappingProperty
readonly
The port mapping information for the listener.
-
#tls ⇒ AWSCDK::IResolvable, ...
readonly
A reference to an object that represents the Transport Layer Security (TLS) properties for the listener.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port_mapping:, connection_pool: nil, health_check: nil, tls: nil) ⇒ VirtualGatewayListenerProperty
constructor
A new instance of VirtualGatewayListenerProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port_mapping:, connection_pool: nil, health_check: nil, tls: nil) ⇒ VirtualGatewayListenerProperty
Returns a new instance of VirtualGatewayListenerProperty.
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1300 def initialize(port_mapping:, connection_pool: nil, health_check: nil, tls: nil) @port_mapping = port_mapping.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayPortMappingProperty.new(**port_mapping.transform_keys(&:to_sym)) : port_mapping Jsii::Type.check_type(@port_mapping, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5UG9ydE1hcHBpbmdQcm9wZXJ0eSJ9XX19")), "portMapping") @connection_pool = connection_pool.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayConnectionPoolProperty.new(**connection_pool.transform_keys(&:to_sym)) : connection_pool Jsii::Type.check_type(@connection_pool, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5Q29ubmVjdGlvblBvb2xQcm9wZXJ0eSJ9XX19")), "connectionPool") unless @connection_pool.nil? @health_check = health_check.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayHealthCheckPolicyProperty.new(**health_check.transform_keys(&:to_sym)) : health_check Jsii::Type.check_type(@health_check, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5SGVhbHRoQ2hlY2tQb2xpY3lQcm9wZXJ0eSJ9XX19")), "healthCheck") unless @health_check.nil? @tls = tls.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerTLSProperty.new(**tls.transform_keys(&:to_sym)) : tls Jsii::Type.check_type(@tls, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5TGlzdGVuZXJUbHNQcm9wZXJ0eSJ9XX19")), "tls") unless @tls.nil? end |
Instance Attribute Details
#connection_pool ⇒ AWSCDK::IResolvable, ... (readonly)
The connection pool information for the listener.
1320 1321 1322 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1320 def connection_pool @connection_pool end |
#health_check ⇒ AWSCDK::IResolvable, ... (readonly)
The health check information for the listener.
1325 1326 1327 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1325 def health_check @health_check end |
#port_mapping ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayPortMappingProperty (readonly)
The port mapping information for the listener.
1315 1316 1317 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1315 def port_mapping @port_mapping end |
#tls ⇒ AWSCDK::IResolvable, ... (readonly)
A reference to an object that represents the Transport Layer Security (TLS) properties for the listener.
1330 1331 1332 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1330 def tls @tls end |
Class Method Details
.jsii_properties ⇒ Object
1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1332 def self.jsii_properties { :port_mapping => "portMapping", :connection_pool => "connectionPool", :health_check => "healthCheck", :tls => "tls", } end |
Instance Method Details
#to_jsii ⇒ Object
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1341 def to_jsii result = {} result.merge!({ "portMapping" => @port_mapping, "connectionPool" => @connection_pool, "healthCheck" => @health_check, "tls" => @tls, }) result.compact end |