class Aws::AppMesh::Types::HttpRouteMatch
An object that represents the requirements for a route to match HTTP requests for a virtual router.
@note 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: "GET", # accepts GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH path: { exact: "HttpPathExact", regex: "HttpPathRegex", }, prefix: "String", query_parameters: [ { match: { exact: "String", }, name: "QueryParameterName", # required }, ], scheme: "http", # accepts http, https }
@!attribute [rw] headers
The client request headers to match on. @return [Array<Types::HttpRouteHeader>]
@!attribute [rw] method
The client request method to match on. Specify only one. @return [String]
@!attribute [rw] path
The client request path to match on. @return [Types::HttpPathMatch]
@!attribute [rw] prefix
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`. @return [String]
@!attribute [rw] query_parameters
The client request query parameters to match on. @return [Array<Types::HttpQueryParameter>]
@!attribute [rw] scheme
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/HttpRouteMatch AWS API Documentation
Constants
- SENSITIVE