Class: AWSCDK::AppMesh::HttpGatewayRoutePathMatchConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HttpGatewayRoutePathMatchConfig
- Defined in:
- app_mesh/http_gateway_route_path_match_config.rb
Overview
The type returned from the bind() method in HttpGatewayRoutePathMatch.
Instance Attribute Summary collapse
-
#prefix_path_match ⇒ String?
readonly
Gateway route configuration for matching on the prefix of the URL path of the request.
-
#prefix_path_rewrite ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty?
readonly
Gateway route configuration for rewriting the prefix of the URL path of the request.
-
#whole_path_match ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty?
readonly
Gateway route configuration for matching on the complete URL path of the request.
-
#whole_path_rewrite ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePathRewriteProperty?
readonly
Gateway route configuration for rewriting the complete URL path of the request..
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prefix_path_match: nil, prefix_path_rewrite: nil, whole_path_match: nil, whole_path_rewrite: nil) ⇒ HttpGatewayRoutePathMatchConfig
constructor
A new instance of HttpGatewayRoutePathMatchConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prefix_path_match: nil, prefix_path_rewrite: nil, whole_path_match: nil, whole_path_rewrite: nil) ⇒ HttpGatewayRoutePathMatchConfig
Returns a new instance of HttpGatewayRoutePathMatchConfig.
11 12 13 14 15 16 17 18 19 20 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 11 def initialize(prefix_path_match: nil, prefix_path_rewrite: nil, whole_path_match: nil, whole_path_rewrite: 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? @prefix_path_rewrite = prefix_path_rewrite.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty.new(**prefix_path_rewrite.transform_keys(&:to_sym)) : prefix_path_rewrite Jsii::Type.check_type(@prefix_path_rewrite, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5HYXRld2F5Um91dGUuSHR0cEdhdGV3YXlSb3V0ZVByZWZpeFJld3JpdGVQcm9wZXJ0eSJ9")), "prefixPathRewrite") unless @prefix_path_rewrite.nil? @whole_path_match = whole_path_match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty.new(**whole_path_match.transform_keys(&:to_sym)) : whole_path_match Jsii::Type.check_type(@whole_path_match, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5HYXRld2F5Um91dGUuSHR0cFBhdGhNYXRjaFByb3BlcnR5In0=")), "wholePathMatch") unless @whole_path_match.nil? @whole_path_rewrite = whole_path_rewrite.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePathRewriteProperty.new(**whole_path_rewrite.transform_keys(&:to_sym)) : whole_path_rewrite Jsii::Type.check_type(@whole_path_rewrite, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5HYXRld2F5Um91dGUuSHR0cEdhdGV3YXlSb3V0ZVBhdGhSZXdyaXRlUHJvcGVydHkifQ==")), "wholePathRewrite") unless @whole_path_rewrite.nil? end |
Instance Attribute Details
#prefix_path_match ⇒ String? (readonly)
Default: - no matching will be performed on the prefix of the URL path
Gateway route configuration for matching on the prefix of the URL path of the request.
26 27 28 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 26 def prefix_path_match @prefix_path_match end |
#prefix_path_rewrite ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty? (readonly)
Default: - rewrites the request's URL path to '/'
Gateway route configuration for rewriting the prefix of the URL path of the request.
31 32 33 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 31 def prefix_path_rewrite @prefix_path_rewrite end |
#whole_path_match ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty? (readonly)
Default: - no matching will be performed on the complete URL path
Gateway route configuration for matching on the complete URL path of the request.
36 37 38 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 36 def whole_path_match @whole_path_match end |
#whole_path_rewrite ⇒ AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePathRewriteProperty? (readonly)
Default: - no rewrite will be performed on the request's complete URL path
Gateway route configuration for rewriting the complete URL path of the request..
41 42 43 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 41 def whole_path_rewrite @whole_path_rewrite end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 43 def self.jsii_properties { :prefix_path_match => "prefixPathMatch", :prefix_path_rewrite => "prefixPathRewrite", :whole_path_match => "wholePathMatch", :whole_path_rewrite => "wholePathRewrite", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'app_mesh/http_gateway_route_path_match_config.rb', line 52 def to_jsii result = {} result.merge!({ "prefixPathMatch" => @prefix_path_match, "prefixPathRewrite" => @prefix_path_rewrite, "wholePathMatch" => @whole_path_match, "wholePathRewrite" => @whole_path_rewrite, }) result.compact end |