Class: AWSCDK::AppMesh::CfnVirtualNode::ListenerProperty

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

Overview

An object that represents a listener for a virtual node.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port_mapping:, connection_pool: nil, health_check: nil, outlier_detection: nil, timeout: nil, tls: nil) ⇒ ListenerProperty

Returns a new instance of ListenerProperty.

Parameters:



1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'app_mesh/cfn_virtual_node.rb', line 1378

def initialize(port_mapping:, connection_pool: nil, health_check: nil, outlier_detection: nil, timeout: nil, tls: nil)
  @port_mapping = port_mapping.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::PortMappingProperty.new(**port_mapping.transform_keys(&:to_sym)) : port_mapping
  Jsii::Type.check_type(@port_mapping, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLlBvcnRNYXBwaW5nUHJvcGVydHkifV19fQ==")), "portMapping")
  @connection_pool = connection_pool.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::VirtualNodeConnectionPoolProperty.new(**connection_pool.transform_keys(&:to_sym)) : connection_pool
  Jsii::Type.check_type(@connection_pool, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLlZpcnR1YWxOb2RlQ29ubmVjdGlvblBvb2xQcm9wZXJ0eSJ9XX19")), "connectionPool") unless @connection_pool.nil?
  @health_check = health_check.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::HealthCheckProperty.new(**health_check.transform_keys(&:to_sym)) : health_check
  Jsii::Type.check_type(@health_check, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkhlYWx0aENoZWNrUHJvcGVydHkifV19fQ==")), "healthCheck") unless @health_check.nil?
  @outlier_detection = outlier_detection.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::OutlierDetectionProperty.new(**outlier_detection.transform_keys(&:to_sym)) : outlier_detection
  Jsii::Type.check_type(@outlier_detection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLk91dGxpZXJEZXRlY3Rpb25Qcm9wZXJ0eSJ9XX19")), "outlierDetection") unless @outlier_detection.nil?
  @timeout = timeout.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::ListenerTimeoutProperty.new(**timeout.transform_keys(&:to_sym)) : timeout
  Jsii::Type.check_type(@timeout, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkxpc3RlbmVyVGltZW91dFByb3BlcnR5In1dfX0=")), "timeout") unless @timeout.nil?
  @tls = tls.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::ListenerTLSProperty.new(**tls.transform_keys(&:to_sym)) : tls
  Jsii::Type.check_type(@tls, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkxpc3RlbmVyVGxzUHJvcGVydHkifV19fQ==")), "tls") unless @tls.nil?
end

Instance Attribute Details

#connection_poolAWSCDK::IResolvable, ... (readonly)

The connection pool information for the listener.



1402
1403
1404
# File 'app_mesh/cfn_virtual_node.rb', line 1402

def connection_pool
  @connection_pool
end

#health_checkAWSCDK::IResolvable, ... (readonly)

The health check information for the listener.



1407
1408
1409
# File 'app_mesh/cfn_virtual_node.rb', line 1407

def health_check
  @health_check
end

#outlier_detectionAWSCDK::IResolvable, ... (readonly)

The outlier detection information for the listener.



1412
1413
1414
# File 'app_mesh/cfn_virtual_node.rb', line 1412

def outlier_detection
  @outlier_detection
end

#port_mappingAWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualNode::PortMappingProperty (readonly)

The port mapping information for the listener.



1397
1398
1399
# File 'app_mesh/cfn_virtual_node.rb', line 1397

def port_mapping
  @port_mapping
end

#timeoutAWSCDK::IResolvable, ... (readonly)

An object that represents timeouts for different protocols.



1417
1418
1419
# File 'app_mesh/cfn_virtual_node.rb', line 1417

def timeout
  @timeout
end

#tlsAWSCDK::IResolvable, ... (readonly)

A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.



1422
1423
1424
# File 'app_mesh/cfn_virtual_node.rb', line 1422

def tls
  @tls
end

Class Method Details

.jsii_propertiesObject



1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
# File 'app_mesh/cfn_virtual_node.rb', line 1424

def self.jsii_properties
  {
    :port_mapping => "portMapping",
    :connection_pool => "connectionPool",
    :health_check => "healthCheck",
    :outlier_detection => "outlierDetection",
    :timeout => "timeout",
    :tls => "tls",
  }
end

Instance Method Details

#to_jsiiObject



1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
# File 'app_mesh/cfn_virtual_node.rb', line 1435

def to_jsii
  result = {}
  result.merge!({
    "portMapping" => @port_mapping,
    "connectionPool" => @connection_pool,
    "healthCheck" => @health_check,
    "outlierDetection" => @outlier_detection,
    "timeout" => @timeout,
    "tls" => @tls,
  })
  result.compact
end