aws-cdk-lib.aws_vpclattice.CfnRule.HttpMatchProperty

interface HttpMatchProperty

LanguageType name
.NETAmazon.CDK.AWS.VpcLattice.CfnRule.HttpMatchProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnRule_HttpMatchProperty
Javasoftware.amazon.awscdk.services.vpclattice.CfnRule.HttpMatchProperty
Pythonaws_cdk.aws_vpclattice.CfnRule.HttpMatchProperty
TypeScript aws-cdk-lib » 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 { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
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

NameTypeDescription
headerMatches?IResolvable | IResolvable | HeaderMatchProperty[]The header matches.
method?stringThe HTTP method type.
pathMatch?IResolvable | PathMatchPropertyThe path match.

headerMatches?

Type: IResolvable | IResolvable | HeaderMatchProperty[] (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 | PathMatchProperty (optional)

The path match.