interface HttpGatewayRouteMatchProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty |
Java | software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty |
Python | aws_cdk.aws_appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty |
TypeScript | @aws-cdk/aws-appmesh » CfnGatewayRoute » HttpGatewayRouteMatchProperty |
An object that represents the criteria for determining a request match.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appmesh from '@aws-cdk/aws-appmesh';
const httpGatewayRouteMatchProperty: appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty = {
headers: [{
name: 'name',
// the properties below are optional
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
}],
hostname: {
exact: 'exact',
suffix: 'suffix',
},
method: 'method',
path: {
exact: 'exact',
regex: 'regex',
},
port: 123,
prefix: 'prefix',
queryParameters: [{
name: 'name',
// the properties below are optional
match: {
exact: 'exact',
},
}],
};
Properties
Name | Type | Description |
---|---|---|
headers? | IResolvable | IResolvable | Http [] | The client request headers to match on. |
hostname? | IResolvable | Gateway | The host name to match on. |
method? | string | The method to match on. |
path? | IResolvable | Http | The path to match on. |
port? | number | The port number to match on. |
prefix? | string | Specifies the path to match requests with. |
query | IResolvable | IResolvable | Query [] | The query parameter to match on. |
headers?
Type:
IResolvable
|
IResolvable
|
Http
[]
(optional)
The client request headers to match on.
hostname?
Type:
IResolvable
|
Gateway
(optional)
The host name to match on.
method?
Type:
string
(optional)
The method to match on.
path?
Type:
IResolvable
|
Http
(optional)
The path to match on.
port?
Type:
number
(optional)
The port number to match on.
prefix?
Type:
string
(optional)
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?
Type:
IResolvable
|
IResolvable
|
Query
[]
(optional)
The query parameter to match on.