Class: Aws::AppMesh::Types::HttpRouteMatch
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::HttpRouteMatch
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-appmesh/types.rb
Overview
When making an API call, you may pass HttpRouteMatch data as a hash:
{
headers: [
{
invert: false,
match: {
exact: "HeaderMatch",
prefix: "HeaderMatch",
range: {
end: 1, # required
start: 1, # required
},
regex: "HeaderMatch",
suffix: "HeaderMatch",
},
name: "HeaderName", # required
},
],
method: "CONNECT", # accepts CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE
prefix: "String", # required
scheme: "http", # accepts http, https
}
An object that represents the requirements for a route to match HTTP requests for a virtual router.
Instance Attribute Summary collapse
-
#headers ⇒ Array<Types::HttpRouteHeader>
An object that represents the client request headers to match on.
-
#method ⇒ String
The client request method to match on.
-
#prefix ⇒ String
Specifies the path to match requests with.
-
#scheme ⇒ String
The client request scheme to match on.
Instance Attribute Details
#headers ⇒ Array<Types::HttpRouteHeader>
An object that represents the client request headers to match on.
2066 2067 2068 2069 2070 2071 2072 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2066 class HttpRouteMatch < Struct.new( :headers, :method, :prefix, :scheme) include Aws::Structure end |
#method ⇒ String
The client request method to match on. Specify only one.
2066 2067 2068 2069 2070 2071 2072 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2066 class HttpRouteMatch < Struct.new( :headers, :method, :prefix, :scheme) include Aws::Structure end |
#prefix ⇒ String
Specifies the path to match requests with. This parameter must always start with ‘/`, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is `my-service.local` and you want the route to match requests to `my-service.local/metrics`, your prefix should be `/metrics`.
2066 2067 2068 2069 2070 2071 2072 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2066 class HttpRouteMatch < Struct.new( :headers, :method, :prefix, :scheme) include Aws::Structure end |
#scheme ⇒ String
The client request scheme to match on. Specify only one.
2066 2067 2068 2069 2070 2071 2072 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2066 class HttpRouteMatch < Struct.new( :headers, :method, :prefix, :scheme) include Aws::Structure end |