Class: AWSCDK::VPCLattice::CfnRule::MatchProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
vpc_lattice/cfn_rule.rb

Overview

Describes a rule match.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_match:) ⇒ MatchProperty

Returns a new instance of MatchProperty.

Parameters:



894
895
896
897
# File 'vpc_lattice/cfn_rule.rb', line 894

def initialize(http_match:)
  @http_match = http_match.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnRule::HttpMatchProperty.new(**http_match.transform_keys(&:to_sym)) : http_match
  Jsii::Type.check_type(@http_match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmblJ1bGUuSHR0cE1hdGNoUHJvcGVydHkifV19fQ==")), "httpMatch")
end

Instance Attribute Details

#http_matchAWSCDK::IResolvable, AWSCDK::VPCLattice::CfnRule::HttpMatchProperty (readonly)

The HTTP criteria that a rule must match.



903
904
905
# File 'vpc_lattice/cfn_rule.rb', line 903

def http_match
  @http_match
end

Class Method Details

.jsii_propertiesObject



905
906
907
908
909
# File 'vpc_lattice/cfn_rule.rb', line 905

def self.jsii_properties
  {
    :http_match => "httpMatch",
  }
end

Instance Method Details

#to_jsiiObject



911
912
913
914
915
916
917
# File 'vpc_lattice/cfn_rule.rb', line 911

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