Class: AWSCDK::ServiceDiscovery::HealthCheckCustomConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_discovery/health_check_custom_config.rb

Overview

Specifies information about an optional custom health check.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure_threshold: nil) ⇒ HealthCheckCustomConfig

Returns a new instance of HealthCheckCustomConfig.

Parameters:

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

    The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance.



8
9
10
11
# File 'service_discovery/health_check_custom_config.rb', line 8

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

Instance Attribute Details

#failure_thresholdNumeric? (readonly)

Note:

Default: 1

The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance.

Returns:

  • (Numeric, nil)


17
18
19
# File 'service_discovery/health_check_custom_config.rb', line 17

def failure_threshold
  @failure_threshold
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'service_discovery/health_check_custom_config.rb', line 19

def self.jsii_properties
  {
    :failure_threshold => "failureThreshold",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'service_discovery/health_check_custom_config.rb', line 25

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