Class: AWSCDK::AppMesh::HttpGatewayListenerOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HttpGatewayListenerOptions
- Defined in:
- app_mesh/http_gateway_listener_options.rb
Overview
Represents the properties needed to define HTTP Listeners for a VirtualGateway.
Instance Attribute Summary collapse
-
#connection_pool ⇒ AWSCDK::AppMesh::HttpConnectionPool?
readonly
Connection pool for http listeners.
-
#health_check ⇒ AWSCDK::AppMesh::HealthCheck?
readonly
The health check information for the listener.
-
#port ⇒ Numeric?
readonly
Port to listen for connections on.
-
#tls ⇒ AWSCDK::AppMesh::ListenerTLSOptions?
readonly
Represents the configuration for enabling TLS on a listener.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_pool: nil, health_check: nil, port: nil, tls: nil) ⇒ HttpGatewayListenerOptions
constructor
A new instance of HttpGatewayListenerOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_pool: nil, health_check: nil, port: nil, tls: nil) ⇒ HttpGatewayListenerOptions
Returns a new instance of HttpGatewayListenerOptions.
11 12 13 14 15 16 17 18 19 20 |
# File 'app_mesh/http_gateway_listener_options.rb', line 11 def initialize(connection_pool: nil, health_check: nil, port: nil, tls: nil) @connection_pool = connection_pool.is_a?(Hash) ? ::AWSCDK::AppMesh::HttpConnectionPool.new(**connection_pool.transform_keys(&:to_sym)) : connection_pool Jsii::Type.check_type(@connection_pool, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwQ29ubmVjdGlvblBvb2wifQ==")), "connectionPool") unless @connection_pool.nil? @health_check = health_check Jsii::Type.check_type(@health_check, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IZWFsdGhDaGVjayJ9")), "healthCheck") unless @health_check.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil? @tls = tls.is_a?(Hash) ? ::AWSCDK::AppMesh::ListenerTLSOptions.new(**tls.transform_keys(&:to_sym)) : tls Jsii::Type.check_type(@tls, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5MaXN0ZW5lclRsc09wdGlvbnMifQ==")), "tls") unless @tls.nil? end |
Instance Attribute Details
#connection_pool ⇒ AWSCDK::AppMesh::HttpConnectionPool? (readonly)
Note:
Default: - None
Connection pool for http listeners.
26 27 28 |
# File 'app_mesh/http_gateway_listener_options.rb', line 26 def connection_pool @connection_pool end |
#health_check ⇒ AWSCDK::AppMesh::HealthCheck? (readonly)
Note:
Default: - no healthcheck
The health check information for the listener.
31 32 33 |
# File 'app_mesh/http_gateway_listener_options.rb', line 31 def health_check @health_check end |
#port ⇒ Numeric? (readonly)
Note:
Default: - 8080
Port to listen for connections on.
36 37 38 |
# File 'app_mesh/http_gateway_listener_options.rb', line 36 def port @port end |
#tls ⇒ AWSCDK::AppMesh::ListenerTLSOptions? (readonly)
Note:
Default: - none
Represents the configuration for enabling TLS on a listener.
41 42 43 |
# File 'app_mesh/http_gateway_listener_options.rb', line 41 def tls @tls end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'app_mesh/http_gateway_listener_options.rb', line 43 def self.jsii_properties { :connection_pool => "connectionPool", :health_check => "healthCheck", :port => "port", :tls => "tls", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'app_mesh/http_gateway_listener_options.rb', line 52 def to_jsii result = {} result.merge!({ "connectionPool" => @connection_pool, "healthCheck" => @health_check, "port" => @port, "tls" => @tls, }) result.compact end |