| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppMesh.Types.HttpRouteMatch
Description
Synopsis
- data HttpRouteMatch = HttpRouteMatch' {}
- newHttpRouteMatch :: HttpRouteMatch
- httpRouteMatch_headers :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpRouteHeader))
- httpRouteMatch_method :: Lens' HttpRouteMatch (Maybe HttpMethod)
- httpRouteMatch_path :: Lens' HttpRouteMatch (Maybe HttpPathMatch)
- httpRouteMatch_port :: Lens' HttpRouteMatch (Maybe Natural)
- httpRouteMatch_prefix :: Lens' HttpRouteMatch (Maybe Text)
- httpRouteMatch_queryParameters :: Lens' HttpRouteMatch (Maybe (NonEmpty HttpQueryParameter))
- 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.
Constructors
| HttpRouteMatch' | |
Fields
| |
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: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:path:HttpRouteMatch', httpRouteMatch_path - The client request path to match on.
$sel:port:HttpRouteMatch', httpRouteMatch_port - The port number 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:scheme:HttpRouteMatch', httpRouteMatch_scheme - The client request scheme to match on. Specify only one. Applicable only
for HTTP2 routes.
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_path :: Lens' HttpRouteMatch (Maybe HttpPathMatch) Source #
The client request path to match on.
httpRouteMatch_port :: Lens' HttpRouteMatch (Maybe Natural) Source #
The port number 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_scheme :: Lens' HttpRouteMatch (Maybe HttpScheme) Source #
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.