Class: AWSCDK::AppMesh::CfnVirtualNode::HealthCheckProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::HealthCheckProperty
- Defined in:
- app_mesh/cfn_virtual_node.rb
Overview
An object that represents the health check policy for a virtual node's listener.
Instance Attribute Summary collapse
-
#healthy_threshold ⇒ Numeric
readonly
The number of consecutive successful health checks that must occur before declaring listener healthy.
-
#interval_millis ⇒ Numeric
readonly
The time period in milliseconds between each health check execution.
-
#path ⇒ String?
readonly
The destination path for the health check request.
-
#port ⇒ Numeric?
readonly
The destination port for the health check request.
-
#protocol ⇒ String
readonly
The protocol for the health check request.
-
#timeout_millis ⇒ Numeric
readonly
The amount of time to wait when receiving a response from the health check, in milliseconds.
-
#unhealthy_threshold ⇒ Numeric
readonly
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(healthy_threshold:, interval_millis:, protocol:, timeout_millis:, unhealthy_threshold:, path: nil, port: nil) ⇒ HealthCheckProperty
constructor
A new instance of HealthCheckProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(healthy_threshold:, interval_millis:, protocol:, timeout_millis:, unhealthy_threshold:, path: nil, port: nil) ⇒ HealthCheckProperty
Returns a new instance of HealthCheckProperty.
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 |
# File 'app_mesh/cfn_virtual_node.rb', line 1190 def initialize(healthy_threshold:, interval_millis:, protocol:, timeout_millis:, unhealthy_threshold:, path: nil, port: nil) @healthy_threshold = healthy_threshold Jsii::Type.check_type(@healthy_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "healthyThreshold") @interval_millis = interval_millis Jsii::Type.check_type(@interval_millis, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "intervalMillis") @protocol = protocol Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") @timeout_millis = timeout_millis Jsii::Type.check_type(@timeout_millis, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMillis") @unhealthy_threshold = unhealthy_threshold Jsii::Type.check_type(@unhealthy_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "unhealthyThreshold") @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil? end |
Instance Attribute Details
#healthy_threshold ⇒ Numeric (readonly)
The number of consecutive successful health checks that must occur before declaring listener healthy.
1211 1212 1213 |
# File 'app_mesh/cfn_virtual_node.rb', line 1211 def healthy_threshold @healthy_threshold end |
#interval_millis ⇒ Numeric (readonly)
The time period in milliseconds between each health check execution.
1216 1217 1218 |
# File 'app_mesh/cfn_virtual_node.rb', line 1216 def interval_millis @interval_millis end |
#path ⇒ String? (readonly)
The destination path for the health check request.
This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
1240 1241 1242 |
# File 'app_mesh/cfn_virtual_node.rb', line 1240 def path @path end |
#port ⇒ Numeric? (readonly)
The destination port for the health check request.
This port must match the port defined in the PortMapping for the listener.
1247 1248 1249 |
# File 'app_mesh/cfn_virtual_node.rb', line 1247 def port @port end |
#protocol ⇒ String (readonly)
The protocol for the health check request.
If you specify grpc , then your service must conform to the GRPC Health Checking Protocol .
1223 1224 1225 |
# File 'app_mesh/cfn_virtual_node.rb', line 1223 def protocol @protocol end |
#timeout_millis ⇒ Numeric (readonly)
The amount of time to wait when receiving a response from the health check, in milliseconds.
1228 1229 1230 |
# File 'app_mesh/cfn_virtual_node.rb', line 1228 def timeout_millis @timeout_millis end |
#unhealthy_threshold ⇒ Numeric (readonly)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
1233 1234 1235 |
# File 'app_mesh/cfn_virtual_node.rb', line 1233 def unhealthy_threshold @unhealthy_threshold end |
Class Method Details
.jsii_properties ⇒ Object
1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'app_mesh/cfn_virtual_node.rb', line 1249 def self.jsii_properties { :healthy_threshold => "healthyThreshold", :interval_millis => "intervalMillis", :protocol => "protocol", :timeout_millis => "timeoutMillis", :unhealthy_threshold => "unhealthyThreshold", :path => "path", :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'app_mesh/cfn_virtual_node.rb', line 1261 def to_jsii result = {} result.merge!({ "healthyThreshold" => @healthy_threshold, "intervalMillis" => @interval_millis, "protocol" => @protocol, "timeoutMillis" => @timeout_millis, "unhealthyThreshold" => @unhealthy_threshold, "path" => @path, "port" => @port, }) result.compact end |