Class: AWSCDK::AppMesh::HttpRoutePathMatch
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppMesh::HttpRoutePathMatch
- 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
-
.exactly(path) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch
The value of the path must match the specified value exactly.
- .jsii_overridable_methods ⇒ Object
-
.regex(regex) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch
The value of the path must match the specified regex.
-
.starts_with(prefix) ⇒ AWSCDK::AppMesh::HttpRoutePathMatch
The value of the path must match the specified prefix.
Instance Method Summary collapse
-
#bind(scope) ⇒ AWSCDK::AppMesh::HttpRoutePathMatchConfig
Returns the route path match configuration.
-
#initialize ⇒ HttpRoutePathMatch
constructor
A new instance of HttpRoutePathMatch.
Constructor Details
#initialize ⇒ HttpRoutePathMatch
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.
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_methods ⇒ Object
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.
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.
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.
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 |