Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerProperty

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

Overview

An object that represents a listener for a virtual gateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port_mapping:, connection_pool: nil, health_check: nil, tls: nil) ⇒ VirtualGatewayListenerProperty

Returns a new instance of VirtualGatewayListenerProperty.

Parameters:



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_poolAWSCDK::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_checkAWSCDK::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

#tlsAWSCDK::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_propertiesObject



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_jsiiObject



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