Class: AWSCDK::AppMesh::HealthCheckBindOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HealthCheckBindOptions
- Defined in:
- app_mesh/health_check_bind_options.rb
Overview
Options used for creating the Health Check object.
Instance Attribute Summary collapse
-
#default_port ⇒ Numeric?
readonly
Port for Health Check interface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_port: nil) ⇒ HealthCheckBindOptions
constructor
A new instance of HealthCheckBindOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_port: nil) ⇒ HealthCheckBindOptions
Returns a new instance of HealthCheckBindOptions.
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_port ⇒ Numeric? (readonly)
Note:
Default: - no default port is provided
Port for Health Check interface.
17 18 19 |
# File 'app_mesh/health_check_bind_options.rb', line 17 def default_port @default_port end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |