Class: AWSCDK::AppMesh::HealthCheckBindOptions

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

Overview

Options used for creating the Health Check object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_port: nil) ⇒ HealthCheckBindOptions

Returns a new instance of HealthCheckBindOptions.

Parameters:

  • default_port (Numeric, nil) (defaults to: nil)

    Port for Health Check interface.



8
9
10
11
# File 'app_mesh/health_check_bind_options.rb', line 8

def initialize(default_port: nil)
  @default_port = default_port
  Jsii::Type.check_type(@default_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "defaultPort") unless @default_port.nil?
end

Instance Attribute Details

#default_portNumeric? (readonly)

Note:

Default: - no default port is provided

Port for Health Check interface.

Returns:

  • (Numeric, nil)


17
18
19
# File 'app_mesh/health_check_bind_options.rb', line 17

def default_port
  @default_port
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'app_mesh/health_check_bind_options.rb', line 19

def self.jsii_properties
  {
    :default_port => "defaultPort",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'app_mesh/health_check_bind_options.rb', line 25

def to_jsii
  result = {}
  result.merge!({
    "defaultPort" => @default_port,
  })
  result.compact
end