Class: AWSCDK::AppMesh::HttpRoutePathMatchConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/http_route_path_match_config.rb

Overview

The type returned from the bind() method in HttpRoutePathMatch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prefix_path_match: nil, whole_path_match: nil) ⇒ HttpRoutePathMatchConfig

Returns a new instance of HttpRoutePathMatchConfig.

Parameters:

  • prefix_path_match (String, nil) (defaults to: nil)

    Route configuration for matching on the prefix of the URL path of the request.

  • whole_path_match (AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty, nil) (defaults to: nil)

    Route configuration for matching on the complete URL path of the request.



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_matchString? (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.

Returns:

  • (String, nil)


20
21
22
# File 'app_mesh/http_route_path_match_config.rb', line 20

def prefix_path_match
  @prefix_path_match
end

#whole_path_matchAWSCDK::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_propertiesObject



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_jsiiObject



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