Class: AWSCDK::AppMesh::HttpRoutePathMatch

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

Overview

Defines HTTP route matching based on the URL path of the request.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHttpRoutePathMatch

Returns a new instance of HttpRoutePathMatch.



8
9
10
# File 'app_mesh/http_route_path_match.rb', line 8

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.exactly(path) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch

The value of the path must match the specified value exactly.

The provided path must start with the '/' character.

Parameters:

  • path (String)

    the exact path to match on.

Returns:

  • (AWSCDK::AppMesh::HttpRoutePathMatch)


24
25
26
27
# File 'app_mesh/http_route_path_match.rb', line 24

def self.exactly(path)
  Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HttpRoutePathMatch", "exactly", [path])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'app_mesh/http_route_path_match.rb', line 12

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

.regex(regex) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch

The value of the path must match the specified regex.

Parameters:

  • regex (String)

    the regex used to match the path.

Returns:

  • (AWSCDK::AppMesh::HttpRoutePathMatch)


33
34
35
36
# File 'app_mesh/http_route_path_match.rb', line 33

def self.regex(regex)
  Jsii::Type.check_type(regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HttpRoutePathMatch", "regex", [regex])
end

.starts_with(prefix) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch

The value of the path must match the specified prefix.

Parameters:

  • prefix (String)

    the value to use to match the beginning of the path part of the URL of the request.

Returns:

  • (AWSCDK::AppMesh::HttpRoutePathMatch)


42
43
44
45
# File 'app_mesh/http_route_path_match.rb', line 42

def self.starts_with(prefix)
  Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HttpRoutePathMatch", "startsWith", [prefix])
end

Instance Method Details

#bind(scope) ⇒ AWSCDK::AppMesh::HttpRoutePathMatchConfig

Returns the route path match configuration.

Parameters:

  • scope (Constructs::Construct)

Returns:



51
52
53
54
# File 'app_mesh/http_route_path_match.rb', line 51

def bind(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [scope])
end