Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data HttpRouteMatch = HttpRouteMatch' {}
- newHttpRouteMatch :: HttpRouteMatch
- httpRouteMatch_path :: Lens' HttpRouteMatch (Maybe HttpPathMatch)
- httpRouteMatch_prefix :: Lens' HttpRouteMatch (Maybe Text)
- httpRouteMatch_queryParameters :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpQueryParameter))
- httpRouteMatch_headers :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpRouteHeader))
- httpRouteMatch_method :: Lens' HttpRouteMatch (Maybe HttpMethod)
- httpRouteMatch_scheme :: Lens' HttpRouteMatch (Maybe HttpScheme)
Documentation
data HttpRouteMatch Source #
An object that represents the requirements for a route to match HTTP requests for a virtual router.
See: newHttpRouteMatch
smart constructor.
HttpRouteMatch' | |
|
Instances
newHttpRouteMatch :: HttpRouteMatch Source #
Create a value of HttpRouteMatch
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:path:HttpRouteMatch'
, httpRouteMatch_path
- The client request path to match on.
$sel:prefix:HttpRouteMatch'
, httpRouteMatch_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
.
$sel:queryParameters:HttpRouteMatch'
, httpRouteMatch_queryParameters
- The client request query parameters to match on.
$sel:headers:HttpRouteMatch'
, httpRouteMatch_headers
- The client request headers to match on.
$sel:method:HttpRouteMatch'
, httpRouteMatch_method
- The client request method to match on. Specify only one.
$sel:scheme:HttpRouteMatch'
, httpRouteMatch_scheme
- The client request scheme to match on. Specify only one. Applicable only
for HTTP2 routes.
httpRouteMatch_path :: Lens' HttpRouteMatch (Maybe HttpPathMatch) Source #
The client request path to match on.
httpRouteMatch_prefix :: Lens' HttpRouteMatch (Maybe Text) Source #
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
.
httpRouteMatch_queryParameters :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpQueryParameter)) Source #
The client request query parameters to match on.
httpRouteMatch_headers :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpRouteHeader)) Source #
The client request headers to match on.
httpRouteMatch_method :: Lens' HttpRouteMatch (Maybe HttpMethod) Source #
The client request method to match on. Specify only one.
httpRouteMatch_scheme :: Lens' HttpRouteMatch (Maybe HttpScheme) Source #
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.