Interface CfnGatewayRoute.IHttpGatewayRouteMatchProperty
An object that represents the criteria for determining a request match.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpGatewayRouteMatchProperty
Syntax (vb)
Public Interface IHttpGatewayRouteMatchProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var httpGatewayRouteMatchProperty = new HttpGatewayRouteMatchProperty {
Headers = new [] { new HttpGatewayRouteHeaderProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new HttpGatewayRouteHeaderMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Hostname = new GatewayRouteHostnameMatchProperty {
Exact = "exact",
Suffix = "suffix"
},
Method = "method",
Path = new HttpPathMatchProperty {
Exact = "exact",
Regex = "regex"
},
Port = 123,
Prefix = "prefix",
QueryParameters = new [] { new QueryParameterProperty {
Name = "name",
// the properties below are optional
Match = new HttpQueryParameterMatchProperty {
Exact = "exact"
}
} }
};
Synopsis
Properties
Headers | The client request headers to match on. |
Hostname | The host name to match on. |
Method | The method to match on. |
Path | The path to match on. |
Port | The port number to match on. |
Prefix | Specifies the path to match requests with. |
QueryParameters | The query parameter to match on. |
Properties
Headers
The client request headers to match on.
virtual object Headers { get; }
Property Value
System.Object
Remarks
Hostname
The host name to match on.
virtual object Hostname { get; }
Property Value
System.Object
Remarks
Method
The method to match on.
virtual string Method { get; }
Property Value
System.String
Remarks
Path
The path to match on.
virtual object Path { get; }
Property Value
System.Object
Remarks
Port
The port number to match on.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
Prefix
Specifies the path to match requests with.
virtual string Prefix { get; }
Property Value
System.String
Remarks
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
The query parameter to match on.
virtual object QueryParameters { get; }
Property Value
System.Object