interface HttpMatchProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.VpcLattice.CfnRule.HttpMatchProperty |
Java | software.amazon.awscdk.services.vpclattice.CfnRule.HttpMatchProperty |
Python | aws_cdk.aws_vpclattice.CfnRule.HttpMatchProperty |
TypeScript | @aws-cdk/aws-vpclattice » CfnRule » HttpMatchProperty |
Describes criteria that can be applied to incoming requests.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as vpclattice from '@aws-cdk/aws-vpclattice';
const httpMatchProperty: vpclattice.CfnRule.HttpMatchProperty = {
headerMatches: [{
match: {
contains: 'contains',
exact: 'exact',
prefix: 'prefix',
},
name: 'name',
// the properties below are optional
caseSensitive: false,
}],
method: 'method',
pathMatch: {
match: {
exact: 'exact',
prefix: 'prefix',
},
// the properties below are optional
caseSensitive: false,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| header | IResolvable | IResolvable | Header[] | The header matches. |
| method? | string | The HTTP method type. |
| path | IResolvable | Path | The path match. |
headerMatches?
Type:
IResolvable | IResolvable | Header[]
(optional)
The header matches.
Matches incoming requests with rule based on request header value before applying rule action.
method?
Type:
string
(optional)
The HTTP method type.
pathMatch?
Type:
IResolvable | Path
(optional)
The path match.

.NET
Java
Python
TypeScript