Class: AWSCDK::AppMesh::Http2GatewayListenerOptions

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

Overview

Represents the properties needed to define HTTP2 Listeners for a VirtualGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_pool: nil, health_check: nil, port: nil, tls: nil) ⇒ Http2GatewayListenerOptions

Returns a new instance of Http2GatewayListenerOptions.

Parameters:



11
12
13
14
15
16
17
18
19
20
# File 'app_mesh/http2_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::Http2ConnectionPool.new(**connection_pool.transform_keys(&:to_sym)) : connection_pool
  Jsii::Type.check_type(@connection_pool, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwMkNvbm5lY3Rpb25Qb29sIn0=")), "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_poolAWSCDK::AppMesh::Http2ConnectionPool? (readonly)

Note:

Default: - None

Connection pool for http listeners.



26
27
28
# File 'app_mesh/http2_gateway_listener_options.rb', line 26

def connection_pool
  @connection_pool
end

#health_checkAWSCDK::AppMesh::HealthCheck? (readonly)

Note:

Default: - no healthcheck

The health check information for the listener.



31
32
33
# File 'app_mesh/http2_gateway_listener_options.rb', line 31

def health_check
  @health_check
end

#portNumeric? (readonly)

Note:

Default: - 8080

Port to listen for connections on.

Returns:

  • (Numeric, nil)


36
37
38
# File 'app_mesh/http2_gateway_listener_options.rb', line 36

def port
  @port
end

#tlsAWSCDK::AppMesh::ListenerTLSOptions? (readonly)

Note:

Default: - none

Represents the configuration for enabling TLS on a listener.



41
42
43
# File 'app_mesh/http2_gateway_listener_options.rb', line 41

def tls
  @tls
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
50
# File 'app_mesh/http2_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_jsiiObject



52
53
54
55
56
57
58
59
60
61
# File 'app_mesh/http2_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