aws-cdk-lib.aws_vpclattice.CfnRule.MatchProperty

interface MatchProperty

LanguageType name
.NETAmazon.CDK.AWS.VpcLattice.CfnRule.MatchProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnRule_MatchProperty
Javasoftware.amazon.awscdk.services.vpclattice.CfnRule.MatchProperty
Pythonaws_cdk.aws_vpclattice.CfnRule.MatchProperty
TypeScript aws-cdk-lib » aws_vpclattice » CfnRule » MatchProperty

Describes a rule match.

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 matchProperty: vpclattice.CfnRule.MatchProperty = {
  httpMatch: {
    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
httpMatchIResolvable | HttpMatchPropertyThe HTTP criteria that a rule must match.

httpMatch

Type: IResolvable | HttpMatchProperty

The HTTP criteria that a rule must match.