Class: AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty
- Defined in:
- vpc_lattice/cfn_rule.rb
Overview
Describes a path match type.
Each rule can include only one of the following types of paths.
Instance Attribute Summary collapse
-
#exact ⇒ String?
readonly
An exact match of the path.
-
#prefix ⇒ String?
readonly
A prefix match of the path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exact: nil, prefix: nil) ⇒ PathMatchTypeProperty
constructor
A new instance of PathMatchTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exact: nil, prefix: nil) ⇒ PathMatchTypeProperty
Returns a new instance of PathMatchTypeProperty.
974 975 976 977 978 979 |
# File 'vpc_lattice/cfn_rule.rb', line 974 def initialize(exact: nil, prefix: nil) @exact = exact Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil? @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? end |
Instance Attribute Details
#exact ⇒ String? (readonly)
An exact match of the path.
985 986 987 |
# File 'vpc_lattice/cfn_rule.rb', line 985 def exact @exact end |
#prefix ⇒ String? (readonly)
A prefix match of the path.
990 991 992 |
# File 'vpc_lattice/cfn_rule.rb', line 990 def prefix @prefix end |
Class Method Details
.jsii_properties ⇒ Object
992 993 994 995 996 997 |
# File 'vpc_lattice/cfn_rule.rb', line 992 def self.jsii_properties { :exact => "exact", :prefix => "prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
999 1000 1001 1002 1003 1004 1005 1006 |
# File 'vpc_lattice/cfn_rule.rb', line 999 def to_jsii result = {} result.merge!({ "exact" => @exact, "prefix" => @prefix, }) result.compact end |