Class: AWSCDK::VPCLattice::CfnTargetGroup::MatcherProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_code:) ⇒ MatcherProperty

Returns a new instance of MatcherProperty.

Parameters:

  • http_code (String)

    The HTTP code to use when checking for a successful response from a target.



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_codeString (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_propertiesObject



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_jsiiObject



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