Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty
- Defined in:
- app_mesh/cfn_gateway_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.
1660 1661 1662 1663 1664 1665 |
# File 'app_mesh/cfn_gateway_route.rb', line 1660 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.
1671 1672 1673 |
# File 'app_mesh/cfn_gateway_route.rb', line 1671 def exact @exact end |
#regex ⇒ String? (readonly)
The regex used to match the path.
1676 1677 1678 |
# File 'app_mesh/cfn_gateway_route.rb', line 1676 def regex @regex end |
Class Method Details
.jsii_properties ⇒ Object
1678 1679 1680 1681 1682 1683 |
# File 'app_mesh/cfn_gateway_route.rb', line 1678 def self.jsii_properties { :exact => "exact", :regex => "regex", } end |
Instance Method Details
#to_jsii ⇒ Object
1685 1686 1687 1688 1689 1690 1691 1692 |
# File 'app_mesh/cfn_gateway_route.rb', line 1685 def to_jsii result = {} result.merge!({ "exact" => @exact, "regex" => @regex, }) result.compact end |