Class: AWSCDK::VPCLattice::CfnRule::PathMatchProperty

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

Overview

Describes the conditions that can be applied when matching a path for incoming requests.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match:, case_sensitive: nil) ⇒ PathMatchProperty

Returns a new instance of PathMatchProperty.

Parameters:



928
929
930
931
932
933
# File 'vpc_lattice/cfn_rule.rb', line 928

def initialize(match:, case_sensitive: nil)
  @match = match.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty.new(**match.transform_keys(&:to_sym)) : match
  Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmblJ1bGUuUGF0aE1hdGNoVHlwZVByb3BlcnR5In1dfX0=")), "match")
  @case_sensitive = case_sensitive
  Jsii::Type.check_type(@case_sensitive, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "caseSensitive") unless @case_sensitive.nil?
end

Instance Attribute Details

#case_sensitiveBoolean, ... (readonly)

Note:

Default: - false

Indicates whether the match is case sensitive.



945
946
947
# File 'vpc_lattice/cfn_rule.rb', line 945

def case_sensitive
  @case_sensitive
end

Class Method Details

.jsii_propertiesObject



947
948
949
950
951
952
# File 'vpc_lattice/cfn_rule.rb', line 947

def self.jsii_properties
  {
    :match => "match",
    :case_sensitive => "caseSensitive",
  }
end

Instance Method Details

#to_jsiiObject



954
955
956
957
958
959
960
961
# File 'vpc_lattice/cfn_rule.rb', line 954

def to_jsii
  result = {}
  result.merge!({
    "match" => @match,
    "caseSensitive" => @case_sensitive,
  })
  result.compact
end