Interface CfnRoute.HttpRouteMatchProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoute.HttpRouteMatchProperty.Jsii$Proxy
- Enclosing class:
CfnRoute
@Stability(Stable)
public static interface CfnRoute.HttpRouteMatchProperty
extends software.amazon.jsii.JsiiSerializable
An object that represents the requirements for a route to match HTTP requests for a virtual router.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoute.HttpRouteMatchPropertystatic final classAn implementation forCfnRoute.HttpRouteMatchProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe client request headers to match on.default StringThe client request method to match on.default ObjectgetPath()The client request path to match on.default NumbergetPort()The port number to match on.default StringSpecifies the path to match requests with.default ObjectThe client request query parameters to match on.default StringThe client request scheme to match on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeaders
The client request headers to match on.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRoute.HttpRouteHeaderProperty>- See Also:
-
getMethod
The client request method to match on.Specify only one.
- See Also:
-
getPath
The client request path to match on.Returns union: either
IResolvableorCfnRoute.HttpPathMatchProperty- See Also:
-
getPort
The port number to match on.- See Also:
-
getPrefix
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 ismy-service.localand you want the route to match requests tomy-service.local/metrics, your prefix should be/metrics.- See Also:
-
getQueryParameters
The client request query parameters to match on.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRoute.QueryParameterProperty>- See Also:
-
getScheme
The client request scheme to match on.Specify only one. Applicable only for HTTP2 routes.
- See Also:
-
builder
-