Class: AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty
- Defined in:
- app_mesh/cfn_route.rb
Overview
An object representing the path to match in the request.
Instance Attribute Summary collapse
-
#exact ⇒ String?
readonly
The exact path to match on.
-
#regex ⇒ String?
readonly
The regex used to match the path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exact: nil, regex: nil) ⇒ HttpPathMatchProperty
constructor
A new instance of HttpPathMatchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exact: nil, regex: nil) ⇒ HttpPathMatchProperty
Returns a new instance of HttpPathMatchProperty.
1184 1185 1186 1187 1188 1189 |
# File 'app_mesh/cfn_route.rb', line 1184 def initialize(exact: nil, regex: nil) @exact = exact Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil? @regex = regex Jsii::Type.check_type(@regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") unless @regex.nil? end |
Instance Attribute Details
#exact ⇒ String? (readonly)
The exact path to match on.
1195 1196 1197 |
# File 'app_mesh/cfn_route.rb', line 1195 def exact @exact end |
#regex ⇒ String? (readonly)
The regex used to match the path.
1200 1201 1202 |
# File 'app_mesh/cfn_route.rb', line 1200 def regex @regex end |
Class Method Details
.jsii_properties ⇒ Object
1202 1203 1204 1205 1206 1207 |
# File 'app_mesh/cfn_route.rb', line 1202 def self.jsii_properties { :exact => "exact", :regex => "regex", } end |
Instance Method Details
#to_jsii ⇒ Object
1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'app_mesh/cfn_route.rb', line 1209 def to_jsii result = {} result.merge!({ "exact" => @exact, "regex" => @regex, }) result.compact end |