Class: AWSCDK::AppMesh::HttpRoutePathMatchConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HttpRoutePathMatchConfig
- Defined in:
- app_mesh/http_route_path_match_config.rb
Overview
The type returned from the bind() method in HttpRoutePathMatch.
Instance Attribute Summary collapse
-
#prefix_path_match ⇒ String?
readonly
Route configuration for matching on the prefix of the URL path of the request.
-
#whole_path_match ⇒ AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty?
readonly
Route configuration for matching on the complete URL path of the request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prefix_path_match: nil, whole_path_match: nil) ⇒ HttpRoutePathMatchConfig
constructor
A new instance of HttpRoutePathMatchConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prefix_path_match: nil, whole_path_match: nil) ⇒ HttpRoutePathMatchConfig
Returns a new instance of HttpRoutePathMatchConfig.
9 10 11 12 13 14 |
# File 'app_mesh/http_route_path_match_config.rb', line 9 def initialize(prefix_path_match: nil, whole_path_match: nil) @prefix_path_match = prefix_path_match Jsii::Type.check_type(@prefix_path_match, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixPathMatch") unless @prefix_path_match.nil? @whole_path_match = whole_path_match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty.new(**whole_path_match.transform_keys(&:to_sym)) : whole_path_match Jsii::Type.check_type(@whole_path_match, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5Sb3V0ZS5IdHRwUGF0aE1hdGNoUHJvcGVydHkifQ==")), "wholePathMatch") unless @whole_path_match.nil? end |
Instance Attribute Details
#prefix_path_match ⇒ String? (readonly)
Note:
Default: - no matching will be performed on the prefix of the URL path
Route configuration for matching on the prefix of the URL path of the request.
20 21 22 |
# File 'app_mesh/http_route_path_match_config.rb', line 20 def prefix_path_match @prefix_path_match end |
#whole_path_match ⇒ AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty? (readonly)
Note:
Default: - no matching will be performed on the complete URL path
Route configuration for matching on the complete URL path of the request.
25 26 27 |
# File 'app_mesh/http_route_path_match_config.rb', line 25 def whole_path_match @whole_path_match end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'app_mesh/http_route_path_match_config.rb', line 27 def self.jsii_properties { :prefix_path_match => "prefixPathMatch", :whole_path_match => "wholePathMatch", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'app_mesh/http_route_path_match_config.rb', line 34 def to_jsii result = {} result.merge!({ "prefixPathMatch" => @prefix_path_match, "wholePathMatch" => @whole_path_match, }) result.compact end |