public static interface CfnRoute.HttpRouteMatchProperty
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appmesh.*; HttpRouteMatchProperty httpRouteMatchProperty = HttpRouteMatchProperty.builder() .headers(List.of(HttpRouteHeaderProperty.builder() .name("name") // the properties below are optional .invert(false) .match(HeaderMatchMethodProperty.builder() .exact("exact") .prefix("prefix") .range(MatchRangeProperty.builder() .end(123) .start(123) .build()) .regex("regex") .suffix("suffix") .build()) .build())) .method("method") .path(HttpPathMatchProperty.builder() .exact("exact") .regex("regex") .build()) .port(123) .prefix("prefix") .queryParameters(List.of(QueryParameterProperty.builder() .name("name") // the properties below are optional .match(HttpQueryParameterMatchProperty.builder() .exact("exact") .build()) .build())) .scheme("scheme") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnRoute.HttpRouteMatchProperty.Builder
A builder for
CfnRoute.HttpRouteMatchProperty |
static class |
CfnRoute.HttpRouteMatchProperty.Jsii$Proxy
An implementation for
CfnRoute.HttpRouteMatchProperty |
Modifier and Type | Method and Description |
---|---|
static CfnRoute.HttpRouteMatchProperty.Builder |
builder() |
default java.lang.Object |
getHeaders()
The client request headers to match on.
|
default java.lang.String |
getMethod()
The client request method to match on.
|
default java.lang.Object |
getPath()
The client request path to match on.
|
default java.lang.Number |
getPort()
The port number to match on.
|
default java.lang.String |
getPrefix()
Specifies the path to match requests with.
|
default java.lang.Object |
getQueryParameters()
The client request query parameters to match on.
|
default java.lang.String |
getScheme()
The client request scheme to match on.
|
default java.lang.Object getHeaders()
default java.lang.String getMethod()
Specify only one.
default java.lang.Object getPath()
default java.lang.Number getPort()
default java.lang.String getPrefix()
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
.
default java.lang.Object getQueryParameters()
default java.lang.String getScheme()
Specify only one. Applicable only for HTTP2 routes.
static CfnRoute.HttpRouteMatchProperty.Builder builder()