Class: AWSCDK::VPCLattice::CfnTargetGroup::MatcherProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnTargetGroup::MatcherProperty
- Defined in:
- vpc_lattice/cfn_target_group.rb
Overview
Describes the codes to use when checking for a successful response from a target for health checks.
Instance Attribute Summary collapse
-
#http_code ⇒ String
readonly
The HTTP code to use when checking for a successful response from a target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_code:) ⇒ MatcherProperty
constructor
A new instance of MatcherProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_code:) ⇒ MatcherProperty
Returns a new instance of MatcherProperty.
749 750 751 752 |
# File 'vpc_lattice/cfn_target_group.rb', line 749 def initialize(http_code:) @http_code = http_code Jsii::Type.check_type(@http_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpCode") end |
Instance Attribute Details
#http_code ⇒ String (readonly)
The HTTP code to use when checking for a successful response from a target.
758 759 760 |
# File 'vpc_lattice/cfn_target_group.rb', line 758 def http_code @http_code end |
Class Method Details
.jsii_properties ⇒ Object
760 761 762 763 764 |
# File 'vpc_lattice/cfn_target_group.rb', line 760 def self.jsii_properties { :http_code => "httpCode", } end |
Instance Method Details
#to_jsii ⇒ Object
766 767 768 769 770 771 772 |
# File 'vpc_lattice/cfn_target_group.rb', line 766 def to_jsii result = {} result.merge!({ "httpCode" => @http_code, }) result.compact end |