HttpRouteMatch

class aws_cdk.aws_appmesh.HttpRouteMatch(*, prefix_path, headers=None, method=None, protocol=None)

Bases: object

(experimental) The criterion for determining a request match for this GatewayRoute.

Parameters
  • prefix_path (str) – (experimental) 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.

  • headers (Optional[Sequence[HttpHeaderMatch]]) – (experimental) Specifies the client request headers to match on. All specified headers must match for the route to match. Default: - do not match on headers

  • method (Optional[HttpRouteMatchMethod]) – (experimental) The HTTP client request method to match on. Default: - do not match on request method

  • protocol (Optional[HttpRouteProtocol]) – (experimental) The client request protocol to match on. Applicable only for HTTP2 routes. Default: - do not match on HTTP2 request protocol

Stability

experimental

Attributes

headers

(experimental) Specifies the client request headers to match on.

All specified headers must match for the route to match.

Default
  • do not match on headers

Stability

experimental

Return type

Optional[List[HttpHeaderMatch]]

method

(experimental) The HTTP client request method to match on.

Default
  • do not match on request method

Stability

experimental

Return type

Optional[HttpRouteMatchMethod]

prefix_path

(experimental) 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.

Stability

experimental

Return type

str

protocol

(experimental) The client request protocol to match on.

Applicable only for HTTP2 routes.

Default
  • do not match on HTTP2 request protocol

Stability

experimental

Return type

Optional[HttpRouteProtocol]