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 HttpGatewayRouteMatch = HttpGatewayRouteMatch' {}
- newHttpGatewayRouteMatch :: HttpGatewayRouteMatch
- httpGatewayRouteMatch_hostname :: Lens' HttpGatewayRouteMatch (Maybe GatewayRouteHostnameMatch)
- httpGatewayRouteMatch_path :: Lens' HttpGatewayRouteMatch (Maybe HttpPathMatch)
- httpGatewayRouteMatch_prefix :: Lens' HttpGatewayRouteMatch (Maybe Text)
- httpGatewayRouteMatch_queryParameters :: Lens' HttpGatewayRouteMatch (Maybe (NonEmpty HttpQueryParameter))
- httpGatewayRouteMatch_headers :: Lens' HttpGatewayRouteMatch (Maybe (NonEmpty HttpGatewayRouteHeader))
- httpGatewayRouteMatch_method :: Lens' HttpGatewayRouteMatch (Maybe HttpMethod)
Documentation
data HttpGatewayRouteMatch Source #
An object that represents the criteria for determining a request match.
See: newHttpGatewayRouteMatch
smart constructor.
HttpGatewayRouteMatch' | |
|
Instances
newHttpGatewayRouteMatch :: HttpGatewayRouteMatch Source #
Create a value of HttpGatewayRouteMatch
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:hostname:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_hostname
- The host name to match on.
$sel:path:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_path
- The path to match on.
$sel:prefix:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_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:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_queryParameters
- The query parameter to match on.
$sel:headers:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_headers
- The client request headers to match on.
$sel:method:HttpGatewayRouteMatch'
, httpGatewayRouteMatch_method
- The method to match on.
httpGatewayRouteMatch_hostname :: Lens' HttpGatewayRouteMatch (Maybe GatewayRouteHostnameMatch) Source #
The host name to match on.
httpGatewayRouteMatch_path :: Lens' HttpGatewayRouteMatch (Maybe HttpPathMatch) Source #
The path to match on.
httpGatewayRouteMatch_prefix :: Lens' HttpGatewayRouteMatch (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
.
httpGatewayRouteMatch_queryParameters :: Lens' HttpGatewayRouteMatch (Maybe (NonEmpty HttpQueryParameter)) Source #
The query parameter to match on.
httpGatewayRouteMatch_headers :: Lens' HttpGatewayRouteMatch (Maybe (NonEmpty HttpGatewayRouteHeader)) Source #
The client request headers to match on.
httpGatewayRouteMatch_method :: Lens' HttpGatewayRouteMatch (Maybe HttpMethod) Source #
The method to match on.