libZSservicesZSamazonka-appmeshZSamazonka-appmesh
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppMesh.Types.HttpRouteMatch

Description

 
Synopsis

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

  • path :: Maybe HttpPathMatch

    The client request path to match on.

  • prefix :: Maybe Text

    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.

  • queryParameters :: Maybe (NonEmpty HttpQueryParameter)

    The client request query parameters to match on.

  • headers :: Maybe (NonEmpty HttpRouteHeader)

    The client request headers to match on.

  • method :: Maybe HttpMethod

    The client request method to match on. Specify only one.

  • scheme :: Maybe HttpScheme

    The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.

Instances

Instances details
Eq HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

Read HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

Show HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

Generic HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

Associated Types

type Rep HttpRouteMatch :: Type -> Type #

NFData HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

Methods

rnf :: HttpRouteMatch -> () #

Hashable HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

ToJSON HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

FromJSON HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

type Rep HttpRouteMatch Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRouteMatch

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.