interface HttpMatchProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.VpcLattice.Mixins.CfnRulePropsMixin.HttpMatchProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsvpclattice/mixins#CfnRulePropsMixin_HttpMatchProperty |
Java | software.amazon.awscdk.mixins.preview.services.vpclattice.mixins.CfnRulePropsMixin.HttpMatchProperty |
Python | aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnRulePropsMixin.HttpMatchProperty |
TypeScript | @aws-cdk/mixins-preview » aws_vpclattice » mixins » CfnRulePropsMixin » 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 { mixins as vpclattice_mixins } from '@aws-cdk/mixins-preview/aws-vpclattice';
const httpMatchProperty: vpclattice_mixins.CfnRulePropsMixin.HttpMatchProperty = {
headerMatches: [{
caseSensitive: false,
match: {
contains: 'contains',
exact: 'exact',
prefix: 'prefix',
},
name: 'name',
}],
method: 'method',
pathMatch: {
caseSensitive: false,
match: {
exact: 'exact',
prefix: 'prefix',
},
},
};
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
Go
Java
Python
TypeScript