Class: AWSCDK::RTBFabric::CfnResponderGateway::HealthCheckConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rtb_fabric/cfn_responder_gateway.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, port:, healthy_threshold_count: nil, interval_seconds: nil, protocol: nil, status_code_matcher: nil, timeout_ms: nil, unhealthy_threshold_count: nil) ⇒ HealthCheckConfigProperty

Returns a new instance of HealthCheckConfigProperty.

Parameters:

  • path (String)
  • port (Numeric)
  • healthy_threshold_count (Numeric, nil) (defaults to: nil)
  • interval_seconds (Numeric, nil) (defaults to: nil)
  • protocol (String, nil) (defaults to: nil)
  • status_code_matcher (String, nil) (defaults to: nil)
  • timeout_ms (Numeric, nil) (defaults to: nil)
  • unhealthy_threshold_count (Numeric, nil) (defaults to: nil)


845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
# File 'rtb_fabric/cfn_responder_gateway.rb', line 845

def initialize(path:, port:, healthy_threshold_count: nil, interval_seconds: nil, protocol: nil, status_code_matcher: nil, timeout_ms: nil, unhealthy_threshold_count: nil)
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
  @healthy_threshold_count = healthy_threshold_count
  Jsii::Type.check_type(@healthy_threshold_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "healthyThresholdCount") unless @healthy_threshold_count.nil?
  @interval_seconds = interval_seconds
  Jsii::Type.check_type(@interval_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "intervalSeconds") unless @interval_seconds.nil?
  @protocol = protocol
  Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") unless @protocol.nil?
  @status_code_matcher = status_code_matcher
  Jsii::Type.check_type(@status_code_matcher, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statusCodeMatcher") unless @status_code_matcher.nil?
  @timeout_ms = timeout_ms
  Jsii::Type.check_type(@timeout_ms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMs") unless @timeout_ms.nil?
  @unhealthy_threshold_count = unhealthy_threshold_count
  Jsii::Type.check_type(@unhealthy_threshold_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "unhealthyThresholdCount") unless @unhealthy_threshold_count.nil?
end

Instance Attribute Details

#healthy_threshold_countNumeric? (readonly)



872
873
874
# File 'rtb_fabric/cfn_responder_gateway.rb', line 872

def healthy_threshold_count
  @healthy_threshold_count
end

#interval_secondsNumeric? (readonly)



875
876
877
# File 'rtb_fabric/cfn_responder_gateway.rb', line 875

def interval_seconds
  @interval_seconds
end

#pathString (readonly)



866
867
868
# File 'rtb_fabric/cfn_responder_gateway.rb', line 866

def path
  @path
end

#portNumeric (readonly)



869
870
871
# File 'rtb_fabric/cfn_responder_gateway.rb', line 869

def port
  @port
end

#protocolString? (readonly)



878
879
880
# File 'rtb_fabric/cfn_responder_gateway.rb', line 878

def protocol
  @protocol
end

#status_code_matcherString? (readonly)



881
882
883
# File 'rtb_fabric/cfn_responder_gateway.rb', line 881

def status_code_matcher
  @status_code_matcher
end

#timeout_msNumeric? (readonly)



884
885
886
# File 'rtb_fabric/cfn_responder_gateway.rb', line 884

def timeout_ms
  @timeout_ms
end

#unhealthy_threshold_countNumeric? (readonly)



887
888
889
# File 'rtb_fabric/cfn_responder_gateway.rb', line 887

def unhealthy_threshold_count
  @unhealthy_threshold_count
end

Class Method Details

.jsii_propertiesObject



889
890
891
892
893
894
895
896
897
898
899
900
# File 'rtb_fabric/cfn_responder_gateway.rb', line 889

def self.jsii_properties
  {
    :path => "path",
    :port => "port",
    :healthy_threshold_count => "healthyThresholdCount",
    :interval_seconds => "intervalSeconds",
    :protocol => "protocol",
    :status_code_matcher => "statusCodeMatcher",
    :timeout_ms => "timeoutMs",
    :unhealthy_threshold_count => "unhealthyThresholdCount",
  }
end

Instance Method Details

#to_jsiiObject



902
903
904
905
906
907
908
909
910
911
912
913
914
915
# File 'rtb_fabric/cfn_responder_gateway.rb', line 902

def to_jsii
  result = {}
  result.merge!({
    "path" => @path,
    "port" => @port,
    "healthyThresholdCount" => @healthy_threshold_count,
    "intervalSeconds" => @interval_seconds,
    "protocol" => @protocol,
    "statusCodeMatcher" => @status_code_matcher,
    "timeoutMs" => @timeout_ms,
    "unhealthyThresholdCount" => @unhealthy_threshold_count,
  })
  result.compact
end