Interface CfnRule.IHttpMatchProperty
Describes criteria that can be applied to incoming requests.
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public interface IHttpMatchProperty
Syntax (vb)
Public Interface IHttpMatchProperty
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.VpcLattice;
var httpMatchProperty = new HttpMatchProperty {
HeaderMatches = new [] { new HeaderMatchProperty {
Match = new HeaderMatchTypeProperty {
Contains = "contains",
Exact = "exact",
Prefix = "prefix"
},
Name = "name",
// the properties below are optional
CaseSensitive = false
} },
Method = "method",
PathMatch = new PathMatchProperty {
Match = new PathMatchTypeProperty {
Exact = "exact",
Prefix = "prefix"
},
// the properties below are optional
CaseSensitive = false
}
};
Synopsis
Properties
HeaderMatches | The header matches. |
Method | The HTTP method type. |
PathMatch | The path match. |
Properties
HeaderMatches
The header matches.
virtual object HeaderMatches { get; }
Property Value
System.Object
Remarks
Matches incoming requests with rule based on request header value before applying rule action.
Method
The HTTP method type.
virtual string Method { get; }
Property Value
System.String
Remarks
PathMatch
The path match.
virtual object PathMatch { get; }
Property Value
System.Object