Class: AWSCDK::VPCLattice::CfnRule::PathMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnRule::PathMatchProperty
- 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
-
#case_sensitive ⇒ Boolean, ...
readonly
Indicates whether the match is case sensitive.
-
#match ⇒ AWSCDK::IResolvable, AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty
readonly
The type of path match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(match:, case_sensitive: nil) ⇒ PathMatchProperty
constructor
A new instance of PathMatchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(match:, case_sensitive: nil) ⇒ PathMatchProperty
Returns a new instance of PathMatchProperty.
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_sensitive ⇒ Boolean, ... (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 |
#match ⇒ AWSCDK::IResolvable, AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty (readonly)
The type of path match.
939 940 941 |
# File 'vpc_lattice/cfn_rule.rb', line 939 def match @match end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |